Problem | artswap |
---|---|
User | LCJLY |
Submission Time | 2024-03-01 00:04:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
artswap.cpp: In function ‘void artswap(int, long long int, int, int)’:
artswap.cpp:45:6: error: ‘pii’ was not declared in this scope
45 | set<pii>l;
| ^~~
artswap.cpp:45:9: error: template argument 1 is invalid
45 | set<pii>l;
| ^
artswap.cpp:45:9: error: template argument 2 is invalid
artswap.cpp:45:9: error: template argument 3 is invalid
artswap.cpp:46:9: error: template argument 2 is invalid
46 | set<pii>r;
| ^
artswap.cpp:46:9: error: template argument 3 is invalid
artswap.cpp:67:6: error: request for member ‘insert’ in ‘l’, which is of non-class type ‘int’
67 | l.insert({hold,x});
| ^~~~~~
artswap.cpp:70:6: error: request for member ‘insert’ in ‘r’, which is of non-class type ‘int’
70 | r.insert({-hold,x});
| ^~~~~~
artswap.cpp:75:14: error: ‘begin’ was not declared in this scope
75 | for(auto it:l) d.push_back(it.s