Submission #491416

#TimeUsernameProblemLanguageResultExecution timeMemory
491416arnav_mehtaBest Place (NOI17_bestplace)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
long long n,x,y;

/*
thinking...
6
1 0
3 0
5 0
7 0
9 0
11 0
to find x,y
we can do it by MEAN!
*/
long long int sx;
long long int sy;
long long int main()
{
    cin>>n;
    for(long long int i =0;i<n;++i){
        cin>>x>>y;
        sx+=x;
        sy+=y;
    }
    cout<<floor(sx/n)<<" "<<floor(sy/n);



}

Compilation message (stderr)

bestplace.cpp:19:11: error: '::main' must return 'int'
   19 | long long int main()
      |           ^~~