Problem | prefixsums |
---|---|
User | Teeskit |
Submission Time | 2025-08-21 16:36:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:14:17: error: array must be initialized with a brace-enclosed initializer
14 | int A[N][i] = v;
| ^
prefixsums.cpp:16:24: error: ‘J’ was not declared in this scope
16 | for(int j = 0; j < Q; J ++) {
| ^
prefixsums.cpp:19:19: error: redeclaration of ‘std::pair<int, int> j’
19 | pair<int, int>j(l, r);
| ^
prefixsums.cpp:16:10: note: ‘int j’ previously declared here
16 | for(int j = 0; j < Q; J ++) {
| ^
prefixsums.cpp:20:11: error: ‘A’ was not declared in this scope
20 | cout >> A[l] + A[r] >> "\n";
| ^
prefixsums.cpp:21:2: error: expected ‘}’ at end of input
21 | }
| ^
prefixsums.cpp:3:15: note: to match this ‘{’
3 | signed main() {
| ^