Problem | prefixsums |
---|---|
User | zsinfo2010 |
Submission Time | 2024-02-23 14:24:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp:6:11: error: array bound is not an integer constant before ‘]’ token
6 | int no[n+1];
| ^
prefixsums.cpp:7:12: error: array bound is not an integer constant before ‘]’ token
7 | int sum[n+1];
| ^
prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:15:16: error: ‘no’ was not declared in this scope; did you mean ‘n’?
15 | cin >> no[i];
| ^~
| n
prefixsums.cpp:17:5: error: ‘sum’ was not declared in this scope
17 | sum[0] = 0;
| ^~~