Problem | competition |
---|---|
User | hackerman123 |
Submission Time | 2023-02-05 23:38:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp: In member function ‘bool cmp::operator()(std::pair<int, int>, std::pair<int, int>)’:
competition.cpp:6:3: error: ‘difference_a’ was not declared in this scope
6 | difference_a = a.first - a.second;
| ^~~~~~~~~~~~
competition.cpp:7:3: error: ‘difference_b’ was not declared in this scope
7 | difference_b = b.first - b.second;
| ^~~~~~~~~~~~
competition.cpp:8:37: error: expected ‘;’ before ‘}’ token
8 | return difference_a > difference_b
| ^
| ;
9 | }
| ~
competition.cpp: In function ‘int main()’:
competition.cpp:15:5: error: expected unqualified-id before ‘for’
15 | for (int i = 0; i < n; i++){
| ^~~
competition.cpp:15:21: error: ‘i’ was not declared in this scope
15 | for (int i = 0; i < n; i++){
|