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