Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
哪位大哥帮我看看为什么我得不可以,调试的时候明明可以运行啊!!!#include<iostream.h> #include<math.h> void main() { int i,t,a[21][5],d=0; cin>>t; for(i=0;i<=t;i++) { cin>>a[i][0]; cin>>a[i][1]; cin>>a[i][2]; cin>>a[i][3]; } for(i=0;i<=t;i++) { if(((a[i][2]-a[i][1])==d)&&((a[i][3]-a[i][2])==d)&&((a[i][1]-a[i][0])==d)) { a[i][4]=2*a[i][3]-a[i][2]; } else { a[i][4]=a[i][3]*a[i][3]/a[i][2]; } cout<<a[i][0]<<" "<<a[i][1]<<" "<<a[i][2]<<" "<<a[i][3]<<" "<<a[i][4]<<endl; } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator