Problem | coinbag |
---|---|
User | YSH2020 |
Submission Time | 2023-08-13 09:23:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coinbag.cpp: In function ‘bool comp(std::pair<int, int>, std::pair<int, int>)’:
coinbag.cpp:6:5: error: expected ‘,’ or ‘;’ before ‘return’
6 | return (tmp > tmp2);
| ^~~~~~
coinbag.cpp:8:12: error: a function-definition is not allowed here before ‘{’ token
8 | int main() {
| ^
coinbag.cpp:26:1: error: expected ‘}’ at end of input
26 | }
| ^
coinbag.cpp:4:50: note: to match this ‘{’
4 | bool comp (pair <int, int> a, pair <int, int> b) {
| ^