Problem sumint
User yq
Submission Time 2026-06-25 21:50:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:6:2: error: ‘arr’ was not declared in this scope
6 | arr<int>a(d);
| ^~~
sumint.cpp:6:6: error: expected primary-expression before ‘int’
6 | arr<int>a(d);
| ^~~
sumint.cpp:7:16: error: expected ‘;’ before ‘<’ token
7 | for(int i=0, i<d, i++){
| ^
| ;
sumint.cpp:7:16: error: expected primary-expression before ‘<’ token
sumint.cpp:7:23: error: expected ‘;’ before ‘)’ token
7 | for(int i=0, i<d, i++){
| ^
| ;