Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105458 | 林嘉乐 | 字符串中最大的数字 | C++ | Compile Error | 0 MS | 0 KB | 207 | 2025-01-13 16:41:09 |
#include<bits/stdc++.h> using namespace std; int main() { char a[12],b; cin>>a; int n; n=strlen(a); for(int i=1;i<n;i++){ b=a[0]; if(a[i]>b) b=a[i] } cout<<b<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:13:2: error: expected ';' before '}' token } ^