Problem ssoca
User wtnetlegend
Submission Time 2025-11-28 16:22:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ssoca.cpp: In function ‘int main()’:
ssoca.cpp:5:5: error: ‘ios_base’ has not been declared
5 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
ssoca.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin.tie(NULL);
| ^~~
ssoca.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
ssoca.cpp:6:13: error: ‘NULL’ was not declared in this scope
6 | cin.tie(NULL);
| ^~~~
ssoca.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
+++ |+#include <cstddef>
1 | using namespace std;
ssoca.cpp:21:18: error: ‘cout’ was not declared in this scope
21 | if (l%n != 0) cout << pfsum[r%n] - pfsum[(l-1)%n] << '\n';
| ^~~~
ssoca.cpp:21:18: note: ‘std::cout’