Problem sumint
User Jinseo
Submission Time 2023-05-18 11:53:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:11:18: error: expected ‘;’ before ‘<’ token
11 | for(int i = 0, i<N; i++){
| ^
| ;
sumint.cpp:11:18: error: expected primary-expression before ‘<’ token
sumint.cpp:12:15: error: missing template arguments before ‘[’ token
12 | cin >> array[i];
| ^
sumint.cpp:14:15: error: missing template arguments before ‘[’ token
14 | sum += array[i];
| ^
sumint.cpp:17:10: error: ‘sum’ was not declared in this scope
17 | cout << sum;
| ^~~