F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38500643_32711.cpp: In function 'int main()':
0_0_38500643_32711.cpp:8:628: error: expected '}' at end of input
  typedef long long ll; typedef unsigned long long ull; int t,n,m,h[110],l[110]; double a[110][110],kk[110][110],sum; int main() { cin>>t; while(t--){ cin>>n; for(int i=1;i<=50;i++){ h[i]=min(3,n-i+1); l[i]=min(3,n-i+1); } sum=0; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; } } for(int i=1;i<=3;i++){ for(int j=1;j<=3;j++){ cin>>kk[i][j]; sum+=kk[i][j]; } } for(int i=1;i<=3;i++){ for(int j=1;j<=3;j++){ kk[i][j]/=sum; } } for(int i=1;i<=400;i++){ for(int j=1;j<=n;j++){ for(int k=1;k<=n;k++){ double res=0.0; for(int s=1;s<=h[j];s++){ for(int t=1;t<=l[k];t++){ res+=1.0*a[j+s-1][k+t-1]*kk[s][t]; } } a[j][k]=res; //cout<<res<<endl; } } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<round(a[i][j])<<" "; } cout<<endl; } } return 0; }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
0_0_38500643_32711.cpp:8:628: error: expected '}' at end of input
0_0_38500643_32711.cpp:8:628: error: expected '}' at end of input
0_0_38500643_32711.cpp:8:628: error: expected '}' at end of input
0_0_38500643_32711.cpp:8:628: error: expected '}' at end of input


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-05 16:35:41, Gzip enabled