| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 320736 | prasanth30 | Best Place (NOI17_bestplace) | C++14 | 컴파일 에러 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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;
}
컴파일 시 표준 에러 (stderr) 메시지
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;
| ^