| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61672 | 夏轩淇 | 19众数 | C++ | Compile Error | 0 MS | 0 KB | 292 | 2023-12-10 13:13:41 |
#include<iostream> using namespace std; int main(){ int n; cin>>n; int a[1001],tmp,b[1001]; for(int i=1;i<=n;i++){ cin>>tmp; b[i]=tmp; a[tmp]++; } int zzs=0,max=-1000000; for(int i=1;i<=1001;i++){ if(b[i]>max){ max=b[i]; } } cout<<zzs; return 0; }
Main.cc:12:2: error: stray '\357' in program
int zzs=0,max=-1000000;
^
Main.cc:12:2: error: stray '\274' in program
Main.cc:12:2: error: stray '\214' in program
Main.cc: In function 'int main()':
Main.cc:12:14: error: expected ',' or ';' before 'max'
int zzs=0,max=-1000000;
^
Main.cc:14:11: error: invalid operands of types 'int' and '' to binary 'operator>'
if(b[i]>max){
^
Main.cc:15:7: error: overloaded function with no contextual type information
max=b[i];
^