Problem prefixsums
User damirerere
Submission Time 2025-09-18 07:25:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:3:7: error: ‘std::ios_base’ has not been declared
3 | std::ios_base::sync_with_stdio(false);
| ^~~~~~~~
prefixsums.cpp:4:7: error: ‘cin’ is not a member of ‘std’
4 | std::cin.tie(NULL);
| ^~~
prefixsums.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
prefixsums.cpp:4:15: error: ‘NULL’ was not declared in this scope
4 | std::cin.tie(NULL);
| ^~~~
prefixsums.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | int main() {
prefixsums.cpp:7:7: error: ‘cin’ is not a member of ‘std’
7 | std::cin >> n >> q;
| ^~~
prefixsums.cpp:7:7: note: ‘std::cin’ is defined in header ‘<iostr