Problem competition
User hackerman123
Submission Time 2023-02-05 23:39:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In member function ‘bool cmp::operator()(std::pair<int, int>, std::pair<int, int>)’:
competition.cpp:8:37: error: expected ‘;’ before ‘}’ token
8 | return difference_a > difference_b
| ^
| ;
9 | }
| ~
competition.cpp: In function ‘int main()’:
competition.cpp:14:5: error: declaration does not declare anything [-fpermissive]
14 | vector <pair<int,int>>;
| ^~~~~~~~~~~~~~~~~~~~~~
competition.cpp:18:9: error: ‘v’ was not declared in this scope
18 | v.push_back({physics,bio});
| ^
competition.cpp:20:10: error: ‘v’ was not declared in this scope
20 | sort(v.begin,v.end,cmp());
| ^