Problem | snakecode |
---|---|
User | Potato3218 |
Submission Time | 2022-12-22 22:57:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snakecode.cpp: In function ‘void code(int, std::string*, int*)’:
snakecode.cpp:4:12: error: ‘long_double’ was not declared in this scope
4 | #define ld long_double
| ^~~~~~~~~~~
snakecode.cpp:12:40: note: in expansion of macro ‘ld’
12 | operations.emplace_back(S[i], (ld)V[i]);
| ^~
snakecode.cpp: In function ‘double query(int, int, int)’:
snakecode.cpp:4:12: error: ‘long_double’ was not declared in this scope
4 | #define ld long_double
| ^~~~~~~~~~~
snakecode.cpp:18:2: note: in expansion of macro ‘ld’
18 | ld A = (ld)_A;
| ^~
snakecode.cpp:21:6: error: expected ‘;’ before ‘val’
21 | ld val = (ld)_val;
| ^~~
snakecode.cpp:23:13: error: ‘A’ was not declared in this scope
23 | A += val;
| ^
snakecode.cpp:23:18: error: ‘val’ was not declared in this scope; did you mean ‘_val’