Problem party
User AndyChen
Submission Time 2026-08-23 19:33:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party.cpp: In function ‘int main()’:
party.cpp:9:27: error: template argument 1 is invalid
9 | vector<pair<int, int> o;
| ^
party.cpp:9:27: error: template argument 2 is invalid
party.cpp:15:15: error: ‘class std::set<long long int>’ has no member named ‘push_back’
15 | v.push_back(two);
| ^~~~~~~~~
party.cpp:18:15: error: ‘class std::set<long long int>’ has no member named ‘push_back’
18 | v.push_back(one);
| ^~~~~~~~~
party.cpp:21:13: error: ‘o’ was not declared in this scope
21 | o.push_back({one, two});
| ^
party.cpp:24:25: error: ‘o’ was not declared in this scope
24 | for (int i = 0; i < o.size(); i++){
| ^
party.cpp:26:18: error: no match for ‘operator[]’ (operand types are ‘std::set<long long int>’ and ‘long long int’)