Problem compleecode
User dacashew
Submission Time 2024-05-25 09:28:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

compleecode.cpp: In function ‘int solve2(int)’:
compleecode.cpp:27:18: error: expected initializer before ‘a’
27 | #define res z,z a
| ^
compleecode.cpp:30:9: note: in expansion of macro ‘res’
30 | int res = 0;
| ^~~
compleecode.cpp:27:18: error: expected ‘;’ before ‘a’
27 | #define res z,z a
| ^
compleecode.cpp:31:12: note: in expansion of macro ‘res’
31 | return res;
| ^~~
compleecode.cpp: In function ‘int solve4(std::vector<int>)’:
compleecode.cpp:27:18: error: expected initializer before ‘a’
27 | #define res z,z a
| ^
compleecode.cpp:47:6: note: in expansion of macro ‘res’
47 | int res = 0;
| ^~~
compleecode.cpp:27:18: error: expected ‘;’ before ‘a’
27 | #define res z,z a
| ^
compleecode.cpp:50:2: note: in expansion of macro ‘res’
50 |