Problem | prefixsums |
---|---|
User | supercel980 |
Submission Time | 2024-07-26 16:51:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:5:58: error: expected ‘;’ before ‘long’
5 | cin.tie(0); ios_base::sync_with_stdio(0); cout.tie(0)
| ^
| ;
6 | long long A, Q, c, d;
| ~~~~
prefixsums.cpp:7:12: error: ‘A’ was not declared in this scope
7 | cin >> A >> Q;
| ^
prefixsums.cpp:7:17: error: ‘Q’ was not declared in this scope
7 | cin >> A >> Q;
| ^
prefixsums.cpp:9:5: error: ‘presum’ was not declared in this scope
9 | presum[0] = 0;
| ^~~~~~
prefixsums.cpp:12:16: error: ‘arr’ was not declared in this scope
12 | cin >> arr[i];
| ^~~
prefixsums.cpp:16:16: error: ‘c’ was not declared i