Problem sumint
User Rigiddivot251112
Submission Time 2026-06-22 16:23:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:9:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
9 | ans += x;
| ^~~
| abs
sumint.cpp: At global scope:
sumint.cpp:12:1: error: ‘cout’ does not name a type
12 | cout << ans
| ^~~~