Problem | prefixsums |
---|---|
User | hitarthdangra |
Submission Time | 2025-06-17 14:27:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:5:15: error: ‘synch_with_stdio’ is not a member of ‘std::ios_base’
5 | ios_base::synch_with_stdio(0);
| ^~~~~~~~~~~~~~~~
prefixsums.cpp:6:12: error: expected ‘;’ before ‘cout’
6 | cin.tie(0)
| ^
| ;
7 | cout.tie(0)
| ~~~~
prefixsums.cpp:10:12: error: ‘N’ was not declared in this scope
10 | cin >> N >> Q;
| ^
prefixsums.cpp:10:17: error: ‘Q’ was not declared in this scope
10 | cin >> N >> Q;
| ^
prefixsums.cpp:14:21: error: missing template arguments before ‘[’ token
14 | cin >> array[i];
| ^
prefixsums.cpp:23:28: error: missing template arguments before ‘[’ token
23 | answer += array[j];
| ^