Problem | badpotato |
---|---|
User | CX |
Submission Time | 2024-07-25 15:58:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
badpotato.cpp: In function ‘int main()’:
badpotato.cpp:8:15: error: expected ‘;’ before ‘<’ token
8 | for(int i=0,i<n,i+=1){
| ^
| ;
badpotato.cpp:8:15: error: expected primary-expression before ‘<’ token
badpotato.cpp:8:22: error: expected ‘;’ before ‘)’ token
8 | for(int i=0,i<n,i+=1){
| ^
| ;
badpotato.cpp:15:15: error: expected ‘;’ before ‘<’ token
15 | for(int i=0,i<n;i+=1){
| ^
| ;
badpotato.cpp:15:15: error: expected primary-expression before ‘<’ token
badpotato.cpp:18:2: error: ‘else’ without a previous ‘if’
18 | else{
| ^~~~
badpotato.cpp:19:23: error: ‘i’ was not declared in this scope
19 | current=current+arr[i];
| ^
badpotato.cpp:24:12: error: expected ‘}’ at end of input
24 | cout<<best;