| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146680 | 汪义罗 | 字符串中最大的数字II | C++ | Compile Error | 0 MS | 0 KB | 250 | 2026-01-29 14:55:03 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[10001]; cin>>a; int m=a[0]-'\0'; int i=0; while(a[i]!='\0'){ if(a[i]=='.'){ i++; continue; }else if(a[i]-'0'>m) m=a[i]-'0'; } i++; } return 0;
Main.cc:19:1: error: expected unqualified-id before 'return' return 0; ^