这道题我编译过不了但是在不会修,麻烦大佬看一下怎么搞。
#include<bits/stdc++.h> using namespace std; string a[10000]; int main() { int n,x,maxx=-1; cin>>n; for(int i=1;i<=n;i++) { cin>>x; if(x>maxx) { a=x+maxx; } else { a=a+x; } } cout<<a; return 0; }