Problem chimera
User G92
Submission Time 2024-07-29 17:07:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chimera.cpp: In function ‘void initialise(int, int, std::vector<int>)’:
chimera.cpp:16:16: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘int’)
16 | b.push_back(a[i]);
| ^
chimera.cpp: In function ‘int query(int, int)’:
chimera.cpp:26:17: error: expected ‘;’ before ‘}’ token
26 | a.insert(b[i])
| ^
| ;
27 | }
| ~