Problem compleecode
User YSH2020
Submission Time 2024-10-04 14:04:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

compleecode.cpp: In function ‘int solve4(std::vector<int>)’:
compleecode.cpp:47:7: error: found ‘:’ in nested-name-specifier, expected ‘::’
47 | for(i:v)res=max(res,i);
| ^
| ::
compleecode.cpp:47:6: error: ‘i’ has not been declared
47 | for(i:v)res=max(res,i);
| ^
compleecode.cpp:50:2: error: expected primary-expression before ‘return’
50 | return res;
| ^~~~~~
compleecode.cpp:47:25: error: expected ‘;’ before ‘return’
47 | for(i:v)res=max(res,i);
| ^
| ;
......
50 | return res;
| ~~~~~~
compleecode.cpp:50:2: error: expected primary-expression before ‘return’
50 | return res;
| ^~~~~~
compleecode.cpp:47:25: error: expected ‘)’ before ‘return’
47 | for(i:v)res=max(res,i);
| ~ ^
| )
......