Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129112 罗安博 字符串中最大的数字II C++ Compile Error 0 MS 0 KB 219 2025-08-22 10:00:41

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; string a; string b; int main() { cin>>a; int len=a.size(); char max='0'; for(int i=0;i<=len;i++){ if(a[i]!='.'&&a[i]>max){ max=a[i]; } cout<<max; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:14:1: error: expected '}' at end of input
 }
 ^