| Problem | competition |
|---|---|
| User | wahjsodhowasd |
| Submission Time | 2026-02-13 21:57:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘int main()’:
competition.cpp:11:3: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’
11 | v.first.push_back(x);}
| ^~~~~
competition.cpp:14:3: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘second’
14 | v.second.push_back(y);
| ^~~~~~
competition.cpp:17:42: error: expected primary-expression before ‘)’ token
17 | sort(diff.begin(),diff.end(),greater<int>)
| ^
competition.cpp:18:14: error: ‘i’ was not declared in this scope
18 | for (int i=0;i<a;i++){
| ^
competition.cpp: At global scope:
competition.cpp:20:1: error: ‘Ans’ does not name a type
20 | Ans+=accumulate(v.second.begin(),v.second.end(),0);}
| ^~~
competition.cpp:20:52: error: expected declaration before ‘}’ token
20 | Ans+=accumulate(v.second.begin(),v.second