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

Compile Error

compleecode.cpp: In function ‘int solve2(int)’:
compleecode.cpp:27:13: error: expected unqualified-id before ‘=’ token
27 | #define res=0 res=a
| ^
compleecode.cpp:30:9: note: in expansion of macro ‘res’
30 | int res = 0;
| ^~~
compleecode.cpp:27:13: error: expected primary-expression before ‘=’ token
27 | #define res=0 res=a
| ^
compleecode.cpp:31:12: note: in expansion of macro ‘res’
31 | return res;
| ^~~
compleecode.cpp:27:16: error: expected ‘;’ before ‘res’
27 | #define res=0 res=a
| ^~~
compleecode.cpp:31:12: note: in expansion of macro ‘res’
31 | return res;
| ^~~
compleecode.cpp:27:16: error: ‘res’ was not declared in this scope
27 | #define res=0 res=a
| ^~~
compleecode.cpp:31:12: note: in expansion of macro ‘res’
31 | return res;
|