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_20613695_19086.cpp: In function 'void multi()':
0_0_20613695_19086.cpp:5:304: error: expected statement at end of input
     using namespace std;int ans[5][5]={{2,3,1,1},{1,2,3,1},{1,1,2,3},{3,1,1,2}};int matrix[5][5];int a[5][5];void multi(){   for(int i=0;i<4;i++)   {       for(int j=0;j<4;j++)       {           for(int k=0;k<4;k++)           {              int t=matrix[k][j];              t<<=1;              if(t>0xFF)//225              t=(t^0x1B)%(0xFF+1);              if(ans[i][k]==1)              {                  a[i][j]^=matrix[k][j];              }              else if(ans[i][k]==2)              {                  a[i][j]^=t;              }              else if(ans[i][k]==3)              {                  t^=matrix[k][j];                  a[i][j]^=t;              }           }       }   }}int main(){    int cas;    scanf("%d",&cas);    while(cas--)    {        memset(a,0,sizeof(a));        for(int i=0;i<4;i++)        for(int j=0;j<4;j++)         scanf("%X",&matrix[i][j]);        multi();        for(int i=0;i<4;i++)        {            for(int j=0;j<4;j++)            {              if(j!=0)              cout<<' ';              printf("%02X",a[i][j]);            }          puts("");        }        if(cas != 0)        puts("");    }    return 0;}
                                                                                                                                                                                                                                                                                                                ^
0_0_20613695_19086.cpp:5:304: error: expected '}' at end of input
0_0_20613695_19086.cpp:5:304: error: expected '}' at end of input
0_0_20613695_19086.cpp:5:304: error: expected '}' at end of input
0_0_20613695_19086.cpp:5:304: 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-11-26 18:26:19, Gzip enabled