Problem prefixsums
User Kiameimon
Submission Time 2024-01-11 20:48:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp:6:1: error: expected initializer before ‘namespace’
6 | namespace IO {
| ^~~~~~~~~
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:100:17: error: ‘IO’ has not been declared
100 | #define cin IO::fast_input
| ^~
prefixsums.cpp:179:16: note: in expansion of macro ‘cin’
179 | int32_t n, q; cin >> n >> q;
| ^~~
prefixsums.cpp:181:2: error: ‘SQRT’ was not declared in this scope
181 | SQRT = (int32_t)sqrt(n);
| ^~~~
prefixsums.cpp:100:17: error: ‘IO’ has not been declared
100 | #define cin IO::fast_input
| ^~
prefixsums.cpp:186:3: note: in expansion of macro ‘cin’
186 | cin >> arr[x];
| ^~~
prefixsums.cpp:187:3: error: ‘block’ was not declared in this scope; did you mean ‘std::filesystem::file_type::block’?
187 | block[ptr] += arr[x];
| ^~~~~
| std::filesy