Problem sumint
User havinaaaaash
Submission Time 2024-06-01 22:53:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:6:17: error: expected ‘;’ before ‘int’
6 | scanf("%d", &n)
| ^
| ;
7 | int array[n];
| ~~~
sumint.cpp:9:21: error: missing template arguments before ‘[’ token
9 | cin >> array[i];
| ^
sumint.cpp:10:15: error: missing template arguments before ‘[’ token
10 | sum += array[i];
| ^