QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#382354 | #7782. Ursa Minor | riconduongcung | Compile Error | / | / | C++20 | 9.7kb | 2024-04-08 12:57:55 | 2024-04-08 12:57:55 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:54:31: error: uninitialized ‘const mod’ [-fpermissive] 54 | const long long base = 19937, mod; | ^~~ answer.code: In function ‘int32_t main()’: answer.code:123:7: error: assignment of read-only variable ‘mod’ 123 | mod = MODS[rnd(1, MODS.size()) - 1]; answer.code:113:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 113 | freopen("task.inp", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ answer.code:114:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 114 | freopen("task.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:119:13: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 119 | freopen (task".inp", "r", stdin); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ answer.code:120:13: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 120 | freopen (task".out", "w", stdout); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~