Problem sumint
User ToiletBrIcker
Submission Time 2024-06-18 10:20:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:6: error: ‘i’ was not declared in this scope
7 | for(i=0,i>a,i++){
| ^
sumint.cpp:11:1: error: expected primary-expression at end of input
11 | }
| ^
sumint.cpp:11:2: error: expected ‘;’ at end of input
11 | }
| ~^
| ;
sumint.cpp:11:1: error: expected primary-expression at end of input
11 | }
| ^
sumint.cpp:11:2: error: expected ‘)’ at end of input
11 | }
| ~^
| )
sumint.cpp:7:5: note: to match this ‘(’
7 | for(i=0,i>a,i++){
| ^
sumint.cpp:11:1: error: expected statement at end of input
11 | }
| ^
sumint.cpp:11:1: error: expected ‘}’ at end of input
sumint.cpp:2:11: note: to match this ‘{’
2 | int main(){
| ^