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
|