Problem toxic2
User PlayVoltz
Submission Time 2024-12-27 11:17:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

toxic2.cpp: In function ‘void determine_type(int)’:
toxic2.cpp:20:21: error: ‘toxic’ was not declared in this scope
20 | if (res.back()==1)toxic=0;
| ^~~~~
toxic2.cpp:22:4: error: ‘toxic’ was not declared in this scope
22 | toxic=n-1;
| ^~~~~
toxic2.cpp:30:23: error: ‘toxic’ was not declared in this scope
30 | if (res.back()>500)toxic=0;
| ^~~~~
toxic2.cpp:31:9: error: ‘toxic’ was not declared in this scope
31 | else toxic=res.size()-1;
| ^~~~~
toxic2.cpp:34:26: error: ‘toxic’ was not declared in this scope
34 | else if (res.back()>500)toxic=0;
| ^~~~~
toxic2.cpp:35:7: error: ‘toxic’ was not declared in this scope
35 | else toxic=res.size()-500;
| ^~~~~
toxic2.cpp:43:14: error: ‘toxic’ was not declared in this scope
43 | query.pb(toxic);
| ^~~~