Problem towers_noi
User Kkkkkkkkaaaaaaaa
Submission Time 2026-03-03 22:33:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

towers_noi.cpp: In function ‘void add(int)’:
towers_noi.cpp:11:4: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘int’)
11 | v1[y[p]].insert(x[p]);
| ^
towers_noi.cpp:13:7: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘int’)
13 | if(v1[y[p]].size()>2){
| ^
towers_noi.cpp: In function ‘int main()’:
towers_noi.cpp:38:8: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘int’)
38 | if(v1[cur].size()<=2) continue;
| ^
towers_noi.cpp:40:16: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘int’)
40 | for(auto i:v1[cur]){
| ^
towers_noi.cpp:41:13: error: no match for ‘operator[]’ (operand types are ‘std::set<int>’ and ‘int’)
41 | if(i!=*v1[cur].begin() and i!=*v1[cur].rbegin()) d.push_back(i);
| ^
towers_noi.cpp:41: