QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#61554 | #1371. Missing Number | Silverhorse7# | Compile Error | / | / | C++20 | 358b | 2022-11-14 05:51:46 | 2022-11-14 05:51:48 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2022-11-14 05:51:48]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2022-11-14 05:51:46]
- 提交
answer
#include<bits/stdc++.h>
using namespace std;
const int N =2e5;
signed main(){
int n;
cin>>n;
string s;
cin>>s;
for (int i = 1; i <= n; i++) {
string tmp;
for (int j = 1; j <= n; j++) {
if (i != j)
t += to_string(j);
}
if(t==s)
return cout<<i,0;
}
cout<<n+1;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:13:13: error: ‘t’ was not declared in this scope 13 | t += to_string(j); | ^ answer.code:15:12: error: ‘t’ was not declared in this scope 15 | if(t==s) | ^