Problem compleecode
User f0restf1re
Submission Time 2024-05-26 17:01:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

compleecode.cpp: In function ‘int solve2(int)’:
compleecode.cpp:28:14: error: declaration of ‘int a’ shadows a parameter
28 | #define res a;
| ^
compleecode.cpp:31:9: note: in expansion of macro ‘res’
31 | int res = 0;
| ^~~
compleecode.cpp:31:13: error: expected primary-expression before ‘=’ token
31 | int res = 0;
| ^
compleecode.cpp: In function ‘int solve4(std::vector<int>)’:
compleecode.cpp:47:10: error: expected primary-expression before ‘=’ token
47 | int res = 0;
| ^
compleecode.cpp:50:40: error: expected primary-expression before ‘=’ token
50 | for (long long i=0;i<v.size();i++) res=max(v[i],res);
| ^
compleecode.cpp:50:47: error: ‘i’ was not declared in this scope
50 | for (long long i=0;i<v.size();i++) res=max(v[i],res);
|