Problem competition
User G
Submission Time 2024-02-16 23:46:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:12:11: error: expected primary-expression before ‘int’
12 | pair <int,int> pair1=pair[i];
| ^~~
competition.cpp:13:10: error: expected primary-expression before ‘int’
13 | pair<int,int> pair2=pair[i+1];
| ^~~
competition.cpp:14:15: error: ‘pair1’ was not declared in this scope; did you mean ‘pair’?
14 | pair[i+1]=pair1;
| ^~~~~
| pair
competition.cpp:15:13: error: ‘pair2’ was not declared in this scope; did you mean ‘pair’?
15 | pair[i]=pair2;
| ^~~~~
| pair