Problem bestplace
User OSoverspike
Submission Time 2023-04-23 11:37:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bestplace.cpp: In function ‘int main()’:
bestplace.cpp:17:11: error: request for member ‘push_back’ in ‘x’, which is of non-class type ‘long long int’
17 | x.push_back(temp1);
| ^~~~~~~~~
bestplace.cpp:18:11: error: request for member ‘push_back’ in ‘y’, which is of non-class type ‘long long int’
18 | y.push_back(temp2);
| ^~~~~~~~~
bestplace.cpp:20:10: error: ‘temp1’ was not declared in this scope
20 | sort(temp1.begin(), temp1.end());
| ^~~~~
bestplace.cpp:21:10: error: ‘temp2’ was not declared in this scope
21 | sort(temp2.begin(), temp2.end());
| ^~~~~
bestplace.cpp:23:22: error: invalid types ‘long long int[long long int]’ for array subscript
23 | cout << x[n/2] << " " << y[n/2];
| ^
bestplace.cpp:23:39: error: invalid types ‘long long int[long long int]’ for array subscript
2