| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61734 | 夏轩淇 | 19买画笔 | C++ | Compile Error | 0 MS | 0 KB | 279 | 2023-12-10 16:15:48 |
#include<iostream> using namespace std; int main(){ int n; cin>>n; int a[100000000000000000000000000000000]={0},tmp; for(int i;i<n;i++){ cin>>tmp; a[tmp]++; } int zzs; for(int i=0;i<101;i++){ if(a[i]==1){ zzs=i; } } cout<<zzs; return 0; }
Main.cc:6:8: warning: integer constant is too large for its type
int a[100000000000000000000000000000000]={0},tmp;
^
Main.cc: In function 'int main()':
Main.cc:6:41: error: size of array 'a' is too large
int a[100000000000000000000000000000000]={0},tmp;
^
Main.cc:9:3: error: 'a' was not declared in this scope
a[tmp]++;
^
Main.cc:13:6: error: 'a' was not declared in this scope
if(a[i]==1){
^