| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156790 | 刘杨国卿 | 整数去重 | C++ | Compile Error | 0 MS | 0 KB | 207 | 2026-07-11 09:38:26 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10001],n,y; cin>>n; for(int i=1;i<=n;i++){ cin>>y; if(a[y]==0){ a[y]=1; cout<<y<<" "; } } return;
Main.cc: In function 'int main()':
Main.cc:13:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
return;
^
Main.cc:13:7: error: expected '}' at end of input
return;
^