Problem problemsetter
User thelusidian
Submission Time 2025-01-06 17:35:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

problemsetter.cpp: In function ‘int main()’:
problemsetter.cpp:4:34: error: a function-definition is not allowed here before ‘{’ token
4 | bool compare(int a[2], int b[2]){
| ^
problemsetter.cpp:18:16: error: request for member ‘begin’ in ‘contests’, which is of non-class type ‘int [c][2]’
18 | sort(contests.begin(), contests.end(), compare);
| ^~~~~
problemsetter.cpp:18:34: error: request for member ‘end’ in ‘contests’, which is of non-class type ‘int [c][2]’
18 | sort(contests.begin(), contests.end(), compare);
| ^~~
problemsetter.cpp:18:41: error: ‘compare’ was not declared in this scope
18 | sort(contests.begin(), contests.end(), compare);
| ^~~~~~~