| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61767 | 邸礼诚 | 19从小到大进行排序 | C++ | Compile Error | 0 MS | 0 KB | 263 | 2023-12-10 16:43:45 |
#include<iostream> using namespace std; int main() { int t[100001]={0}; int n,shu; cin>>n; for(int i=0;i<n;i++){ cin>>shu; t[shu]++; } int zs=1; for(int i=1;i<=100000;i++){ if(t[i]!>t[zs]){ zs=i; } } cout<<zs; return 0; }
Main.cc: In function 'int main()':
Main.cc:14:10: error: expected ')' before '!' token
if(t[i]!>t[zs]){
^