Submission #531324

#TimeUsernameProblemLanguageResultExecution timeMemory
531324devariaotaBest Place (NOI17_bestplace)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; signed main(){ cin.tie(0) -> ios_base::sync_with_stdio(0); int n; cin >> n; vector<int> x(n), y(n); for(int i=0;i<n;i++) { cin >> x[i] >> y[i]; } sort(x.begin(), x.end()); sort(y.begin(), y.end()); cout << x[n/2] << " " << y[n/2] << ' '; }

Compilation message (stderr)

bestplace.cpp:16:40: warning: missing terminating ' character
   16 |     cout << x[n/2] << " " << y[n/2] << '
      |                                        ^
bestplace.cpp:16:40: error: missing terminating ' character
bestplace.cpp:17:1: warning: missing terminating ' character
   17 | ';
      | ^
bestplace.cpp:17:1: error: missing terminating ' character
   17 | ';
      | ^~
bestplace.cpp: In function 'int main()':
bestplace.cpp:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^