Problem toxic2
User reyj
Submission Time 2024-07-14 10:21:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic2.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
2 | #include toxic2.h
| ^~~~~~
toxic2.cpp: In function ‘void determine_type(int)’:
toxic2.cpp:6:12: error: request for member ‘push_back’ in ‘0’, which is of non-class type ‘int’
6 | #define pb push_back
| ^~~~~~~~~
toxic2.cpp:15:25: note: in expansion of macro ‘pb’
15 | if (query_machine((0).pb(i))[0] == 2) {
| ^~
toxic2.cpp:15:7: error: ‘query_machine’ was not declared in this scope
15 | if (query_machine((0).pb(i))[0] == 2) {
| ^~~~~~~~~~~~~
toxic2.cpp:20:2: error: ‘answer_type’ was not declared in this scope
20 | answer_type(ans);
| ^~~~~~~~~~~