Submission #320736

# Submission time Handle Problem Language Result Execution time Memory
320736 2020-11-09T16:23:18 Z prasanth30 Best Place (NOI17_bestplace) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
int main(){
#define int long long  int
  int n;cin>>n;
  vector<int> x,y;
  for(int i=0;i<n;++i)
    {
    int a,b;cin>>a>>b;
    x.pb(a);y.pb(b);
    }
  sort(x.begin(),x.end());
  sort(y.begin(),y.end());
  cout<<x[n/2]<<" "<<y[n/2];
  return 0;
}

Compilation message

bestplace.cpp:6:2: error: stray '\302' in program
    6 |   int n;cin>>n;
      |  ^
bestplace.cpp:6:3: error: stray '\240' in program
    6 |   int n;cin>>n;
      |   ^
bestplace.cpp:5:23: error: stray '\302' in program
    5 | #define int long long  int
      |                       ^
bestplace.cpp:6:4: note: in expansion of macro 'int'
    6 |   int n;cin>>n;
      |    ^~~
bestplace.cpp:5:24: error: stray '\240' in program
    5 | #define int long long  int
      |                        ^
bestplace.cpp:6:4: note: in expansion of macro 'int'
    6 |   int n;cin>>n;
      |    ^~~
bestplace.cpp:7:2: error: stray '\302' in program
    7 |   vector<int> x,y;
      |  ^
bestplace.cpp:7:3: error: stray '\240' in program
    7 |   vector<int> x,y;
      |   ^
bestplace.cpp:5:23: error: stray '\302' in program
    5 | #define int long long  int
      |                       ^
bestplace.cpp:7:11: note: in expansion of macro 'int'
    7 |   vector<int> x,y;
      |           ^~~
bestplace.cpp:5:24: error: stray '\240' in program
    5 | #define int long long  int
      |                        ^
bestplace.cpp:7:11: note: in expansion of macro 'int'
    7 |   vector<int> x,y;
      |           ^~~
bestplace.cpp:8:2: error: stray '\302' in program
    8 |   for(int i=0;i<n;++i)
      |  ^
bestplace.cpp:8:3: error: stray '\240' in program
    8 |   for(int i=0;i<n;++i)
      |   ^
bestplace.cpp:5:23: error: stray '\302' in program
    5 | #define int long long  int
      |                       ^
bestplace.cpp:8:8: note: in expansion of macro 'int'
    8 |   for(int i=0;i<n;++i)
      |        ^~~
bestplace.cpp:5:24: error: stray '\240' in program
    5 | #define int long long  int
      |                        ^
bestplace.cpp:8:8: note: in expansion of macro 'int'
    8 |   for(int i=0;i<n;++i)
      |        ^~~
bestplace.cpp:9:2: error: stray '\302' in program
    9 |     {
      |  ^
bestplace.cpp:9:3: error: stray '\240' in program
    9 |     {
      |   ^
bestplace.cpp:9:5: error: stray '\302' in program
    9 |     {
      |     ^
bestplace.cpp:9:6: error: stray '\240' in program
    9 |     {
      |      ^
bestplace.cpp:10:2: error: stray '\302' in program
   10 |     int a,b;cin>>a>>b;
      |  ^
bestplace.cpp:10:3: error: stray '\240' in program
   10 |     int a,b;cin>>a>>b;
      |   ^
bestplace.cpp:10:5: error: stray '\302' in program
   10 |     int a,b;cin>>a>>b;
      |     ^
bestplace.cpp:10:6: error: stray '\240' in program
   10 |     int a,b;cin>>a>>b;
      |      ^
bestplace.cpp:5:23: error: stray '\302' in program
    5 | #define int long long  int
      |                       ^
bestplace.cpp:10:7: note: in expansion of macro 'int'
   10 |     int a,b;cin>>a>>b;
      |       ^~~
bestplace.cpp:5:24: error: stray '\240' in program
    5 | #define int long long  int
      |                        ^
bestplace.cpp:10:7: note: in expansion of macro 'int'
   10 |     int a,b;cin>>a>>b;
      |       ^~~
bestplace.cpp:11:2: error: stray '\302' in program
   11 |     x.pb(a);y.pb(b);
      |  ^
bestplace.cpp:11:3: error: stray '\240' in program
   11 |     x.pb(a);y.pb(b);
      |   ^
bestplace.cpp:11:5: error: stray '\302' in program
   11 |     x.pb(a);y.pb(b);
      |     ^
bestplace.cpp:11:6: error: stray '\240' in program
   11 |     x.pb(a);y.pb(b);
      |      ^
bestplace.cpp:12:2: error: stray '\302' in program
   12 |     }
      |  ^
bestplace.cpp:12:3: error: stray '\240' in program
   12 |     }
      |   ^
bestplace.cpp:12:5: error: stray '\302' in program
   12 |     }
      |     ^
bestplace.cpp:12:6: error: stray '\240' in program
   12 |     }
      |      ^
bestplace.cpp:13:2: error: stray '\302' in program
   13 |   sort(x.begin(),x.end());
      |  ^
bestplace.cpp:13:3: error: stray '\240' in program
   13 |   sort(x.begin(),x.end());
      |   ^
bestplace.cpp:14:2: error: stray '\302' in program
   14 |   sort(y.begin(),y.end());
      |  ^
bestplace.cpp:14:3: error: stray '\240' in program
   14 |   sort(y.begin(),y.end());
      |   ^
bestplace.cpp:15:2: error: stray '\302' in program
   15 |   cout<<x[n/2]<<" "<<y[n/2];
      |  ^
bestplace.cpp:15:3: error: stray '\240' in program
   15 |   cout<<x[n/2]<<" "<<y[n/2];
      |   ^
bestplace.cpp:16:2: error: stray '\302' in program
   16 |   return 0;
      |  ^
bestplace.cpp:16:3: error: stray '\240' in program
   16 |   return 0;
      |   ^