| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82046 | 杜奕辰 | 统计字符数量 | C++ | Compile Error | 0 MS | 0 KB | 272 | 2024-07-12 16:54:55 |
#include<bits/stdc++.h> using namespace std; char n[1000000]; int n2[150]; int main(){ cin>>s; int n3=strlen(n); for(int i=0;i<n3;i++){ sn[s[i]]++; } int max=0,k; for(int j='a';j<='z';j++){ if(max<n2[j]); k=j; } cout<<char(j); return 0; }
Main.cc: In function 'int main()':
Main.cc:6:7: error: 's' was not declared in this scope
cin>>s;
^
Main.cc:9:3: error: 'sn' was not declared in this scope
sn[s[i]]++;
^
Main.cc:16:13: error: 'j' was not declared in this scope
cout<