Problem | prefixsums |
---|---|
User | Teeskit |
Submission Time | 2025-08-21 16:37:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:16:17: error: array must be initialized with a brace-enclosed initializer
16 | int A[N][i] = v;
| ^
prefixsums.cpp:18:24: error: ‘J’ was not declared in this scope
18 | for(int j = 0; j < Q; J ++) {
| ^
prefixsums.cpp:21:19: error: redeclaration of ‘std::pair<int, int> j’
21 | pair<int, int>j(l, r);
| ^
prefixsums.cpp:18:10: note: ‘int j’ previously declared here
18 | for(int j = 0; j < Q; J ++) {
| ^
prefixsums.cpp:22:8: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
22 | cout >> A[l] + A[r] >> "\n";
| ~~~~ ^~ ~~~~~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
prefixsums.cpp:22: