Problem sumint
User senkyte
Submission Time 2024-02-05 16:37:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:6:18: error: expected ‘;’ before ‘<’ token
6 | for(int i = 0, i<total;, i++){
| ^
| ;
sumint.cpp:6:18: error: expected primary-expression before ‘<’ token
sumint.cpp:6:25: error: expected primary-expression before ‘,’ token
6 | for(int i = 0, i<total;, i++){
| ^
sumint.cpp:11:13: error: ‘newtotal’ was not declared in this scope; did you mean ‘total’?
11 | std::cout<<newtotal;
| ^~~~~~~~
| total