QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#707493 | #9177. String and Nails | tamir | Compile Error | / | / | C++14 | 367b | 2024-11-03 16:13:34 | 2024-11-03 16:13:38 |
Judging History
answer
#include<bits/stdc++.h>
#define ll long long
#define ff first
#define ss second
using namespace std;
ll n,i;
pair<ll,ll> p[200005];
int main(){
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
cin >> n;
for(i=1;i<=n;i++) cin >> p[i].ff >> p[i].ss;
sort(a+1,a+n+1);
cout << "YES\n";
for(i=1;i<n;i++) cout << p[i].ff << " " << p[i].ss << "\n";
}
詳細信息
answer.code: In function ‘int main()’: answer.code:12:14: error: ‘a’ was not declared in this scope 12 | sort(a+1,a+n+1); | ^