Problem toxic
User Ok
Submission Time 2024-01-07 14:39:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic.cpp: In function ‘bool iquery(std::vector<int>)’:
toxic.cpp:97:9: error: ‘ind’ was not declared in this scope; did you mean ‘int’?
97 | ind.push_back(v.back());
| ^~~
| int
toxic.cpp:102:9: error: ‘sas’ was not declared in this scope
102 | sas.push_back(v.size() + 1);
| ^~~
toxic.cpp:104:25: error: ‘ind’ was not declared in this scope; did you mean ‘int’?
104 | v.push_back(ind[i]);
| ^~~
| int
toxic.cpp:108:19: error: too few arguments to function ‘bool squery(std::vector<int>, bool)’
108 | num = squery(v);
| ^
toxic.cpp:38:6: note: declared here
38 | bool squery(vector<int> v, bool streng){
| ^~~~~~
toxic.cpp:111:16: error: ‘ind’ was not declared in this scope; did you mean ‘int’?
111 | while(!ind.empty()){
|