Submission #471360

#TimeUsernameProblemLanguageResultExecution timeMemory
471360grimzzz404Best Place (NOI17_bestplace)C++17
Compilation error
0 ms0 KiB
/**
 *	 Author: grimzzz404
**/


#include <bits/stdc++.h>
using namespace std;

#define endl '\n'

void solve();

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int t = 1;
    //cin >> t;
    FOR(t)
	{
        //cout << "Test Case #" << i + 1 << '\n';
        solve();
    }
    return 0;
}
void solve()
{
    int n;
    cin >> n;
    int one[n];
    int two[n];
    for (int i = 0; i < n; i++)
    {
        cin >> one[i] >> two[i];
    }
    sort(one,one+n);
    sort(two,two+n);
    int c = n/2;
    cout << one[c] << " " << two[c];
  
}

Compilation message (stderr)

bestplace.cpp: In function 'int main()':
bestplace.cpp:19:5: error: 'FOR' was not declared in this scope
   19 |     FOR(t)
      |     ^~~