| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130355 | 田祥江 | 找最大的数 | C++ | Compile Error | 0 MS | 0 KB | 399 | 2025-09-12 20:14:32 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d,e,f,g,h,i,g; int max=0; cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>g; max=a; if(a<b){ max=b; } if(b<c){ max=c; } if(c<d){ max=d; } if(d<e){ max=e; } if(e<f){ max=f; } if(f<g){ max=g; } if(g<h){ max=h; } if(h<i){ max=i; } if(i<j){ max=j; } cout<<max; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:24: error: redeclaration of 'int g'
int a,b,c,d,e,f,g,h,i,g;
^
Main.cc:5:18: note: 'int g' previously declared here
int a,b,c,d,e,f,g,h,i,g;
^
Main.cc:33:7: error: 'j' was not declared in this scope
if(i