Problem chope
User Codebreakerguy2
Submission Time 2026-11-02 15:34:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chope.cpp: In function ‘int main()’:
chope.cpp:9:14: error: expected ‘;’ before ‘for’
9 | count = 0
| ^
| ;
10 | for (int i = 0; i < n; i++){
| ~~~
chope.cpp:10:21: error: ‘i’ was not declared in this scope
10 | for (int i = 0; i < n; i++){
| ^
chope.cpp:17:8: error: expected ‘(’ before ‘n’
17 | if n > (sum + count - 1){
| ^
| (
chope.cpp:20:5: error: ‘else’ without a previous ‘if’
20 | else {
| ^~~~