Problem chope
User AaravRastogi
Submission Time 2025-12-05 14:46:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chope.cpp: In function ‘int main()’:
chope.cpp:13:29: error: expected ‘)’ before ‘}’ token
13 | if (A[i] == 2 & smt >= l-1}{z = 1;}
| ~ ^
| )
chope.cpp:13:29: error: expected primary-expression before ‘}’ token
chope.cpp:14:3: error: ‘else’ without a previous ‘if’
14 | else {smt += A[i] + 1;}}
| ^~~~
chope.cpp:14:18: error: ‘i’ was not declared in this scope
14 | else {smt += A[i] + 1;}}
| ^
chope.cpp: At global scope:
chope.cpp:16:5: error: expected unqualified-id before ‘return’
16 | return 0;}
| ^~~~~~
chope.cpp:16:14: error: expected declaration before ‘}’ token
16 | return 0;}
| ^