QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#802053 | #9794. ICPC Shenyang in NEU, the Tenth Consecutive Year | ert# | Compile Error | / | / | C++14 | 615b | 2024-12-07 11:38:03 | 2024-12-07 11:38:03 |
Judging History
This is the latest submission verdict.
- [2024-12-07 11:38:03]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2024-12-07 11:38:03]
- Submitted
answer
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using u64 = unsigned long long;
using u32 = unsigned;
using pii = pair<int,int>;
void solve(){
for ( int i = 1923; i <= 2022; i++){
cout << "? " << i << endl;
int t;
cin >> t;
if ( t == 1){
cout << "! " << i << endl;
return ;
}
}
cout << "! " << 2023 << endl;
return;
}
int main(){
// cin.tie(nullptr);
// ios::sync_with_stdio(false);
int t;
cin >> t;
bool label = false;
while(t--){
solve();
}
if ( label)
cout << "沈阳热身赛天才(sg)出题人(bushi)"
return 0;
}
详细
answer.code: In function ‘int main()’: answer.code:33:50: error: expected ‘;’ before ‘return’ 33 | cout << "沈阳热身赛天才(sg)出题人(bushi)" | ^ | ; 34 | 35 | return 0; | ~~~~~~