| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82044 | 陈俊洁 | 统计字符数量 | C++ | Compile Error | 0 MS | 0 KB | 220 | 2024-07-12 16:54:39 |
#include<bits/stdc++.h> using namespace std; char s[1000000]; int sn[150]; int main() { cin>>s; int s_l=strlen(s); for(int i=0;i<s_l;i++){ if(max<sn[j]){ max=sn[j]; k=j; } } cout<<char(k); }
Main.cc: In function 'int main()': Main.cc:9:13: error: 'j' was not declared in this scope if(max