Problem fenwicktree_easy
User huyleisme
Submission Time 2024-02-08 09:27:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree_easy.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include bits/stdc++.h
| ^~~~
fenwicktree_easy.cpp: In function ‘int main()’:
fenwicktree_easy.cpp:4:2: error: ‘ios_base’ has not been declared
4 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
fenwicktree_easy.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin.tie(0);
| ^~~
fenwicktree_easy.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #include bits/stdc++.h
fenwicktree_easy.cpp:6:2: error: ‘cout’ was not declared in this scope
6 | cout.tie(0);
| ^~~~
fenwicktree_easy.cpp:6:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fenwicktree_easy.cpp:22:9: error: ‘j’ was not declared in this scope
22 | for (j = x; j < y;