Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92567 | 只因你太美(Ikun 真爱粉) | 22数字最多的字符串 | C++ | Compile Error | 0 MS | 0 KB | 580 | 2024-10-05 17:14:47 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() #include<string> using namespace std; int main(){ int aa=0,bb=0; string a,b; cin>>a>>b; for(int i=0;i<n;i++){ if(a[i]>='0'&&a[i]<='9'){ aa++; } if(b[i]>='0'&&b[i]<='9'){ bb++; } } if(aa>bb){ cout<<a[aa]; }else{ cout<<b[bb]; } return 0; }
Main.cc: In function 'int main()': Main.cc:11:19: error: 'n' was not declared in this scope for(int i=0;i