floppy.code: In function ‘void read_array(int, const std::vector<int>&)’:
floppy.code:8:32: error: ‘class std::stack<int>’ has no member named ‘back’
8 | while (!t.empty() && t.back() <= v[i]) {
| ^~~~
floppy.code:10:15: error: ‘class std::stack<int>’ has no member named ‘pop_back’
10 | t.pop_back();
| ^~~~~~~~
floppy.code:12:11: error: ‘class std::stack<int>’ has no member named ‘push_back’
12 | t.push_back(v[i]);
| ^~~~~~~~~
floppy.code: In function ‘std::vector<int> solve_queries(int, int, const string&, const std::vector<int>&, const std::vector<int>&)’:
floppy.code:30:22: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
30 | for (int w : g[i]) {
| ^
floppy.code:30:25: error: forming reference to reference type ‘std::vector<int>&’
30 | for (int w : g[i]) {
| ^
grader_floppy.cpp: In function ‘void my_fprintf(FILE*, const char*, ...)’:
grader_floppy.cpp:17:9: error: ‘exit’ was not declared in this scope
17 | exit(0);
| ^~~~
grader_floppy.cpp: In function ‘void my_fscanf(FILE*, int, const char*, ...)’:
grader_floppy.cpp:26:9: error: ‘exit’ was not declared in this scope
26 | exit(0);
| ^~~~
grader_floppy.cpp: In function ‘void save_to_floppy(const string&)’:
grader_floppy.cpp:51:5: error: ‘exit’ was not declared in this scope
51 | exit(0);
| ^~~~
grader_floppy.cpp: In function ‘int main(int, char**)’:
grader_floppy.cpp:91:15: error: ‘atoi’ was not declared in this scope
91 | int run = atoi(argv[1]);
| ^~~~