| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153425 | 孔声豪 | 19买画笔 | C++ | Compile Error | 0 MS | 0 KB | 257 | 2026-05-17 11:15:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int t[1000001]={}i,n,a,j; cin>>n; for(int i=1;i<=n,i++){ cin>>a; t[a]++; } for( j=1;j<=100,i++){ if(t[j]==1){ break; } } cout<<j; return 0; }
Main.cc: In function 'int main()':
Main.cc:4:22: error: expected ',' or ';' before 'i'
int t[1000001]={}i,n,a,j;
^
Main.cc:5:10: error: 'n' was not declared in this scope
cin>>n;
^
Main.cc:6:25: error: expected ';' before ')' token
for(int i=1;i<=n,i++){
^
Main.cc:7:7: error: 'a' was not declared in this scope
cin>>a;
^
Main.cc:10:10: error: 'j' was not declared in this scope
for( j=1;j<=100,i++){
^
Main.cc:10:21: error: 'i' was not declared in this scope
for( j=1;j<=100,i++){
^
Main.cc:10:24: error: expected ';' before ')' token
for( j=1;j<=100,i++){
^
Main.cc:15:11: error: 'j' was not declared in this scope
cout<