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_17639117_21479.cpp:9:30: error: invalid types 'int[int]' for array subscript
 int a[1005][1005],b[1005[1005],c[1005][1005];
                              ^
0_0_17639117_21479.cpp:9:31: error: expected ']' before ',' token
 int a[1005][1005],b[1005[1005],c[1005][1005];
                               ^
0_0_17639117_21479.cpp: In function 'int main()':
0_0_17639117_21479.cpp:59:24: error: 'b' was not declared in this scope
                 memset(b,0,sizeof(b));
                        ^
0_0_17639117_21479.cpp: At global scope:
0_0_17639117_21479.cpp:98:11: error: redefinition of 'const int MAXO'
 const int MAXO=30;//程序使用的最大矩阵行列数
           ^
0_0_17639117_21479.cpp:7:11: note: 'const int MAXO' previously defined here
 const int MAXO=6;//程序使用的最大矩阵行列数
           ^
0_0_17639117_21479.cpp:100:5: error: redefinition of 'int n'
 int n,m;
     ^
0_0_17639117_21479.cpp:8:5: note: 'int n' previously declared here
 int n,k;
     ^
0_0_17639117_21479.cpp:102:8: error: redefinition of 'struct Matrix<T>'
 struct Matrix
        ^
0_0_17639117_21479.cpp:11:8: error: previous definition of 'struct Matrix<T>'
 struct Matrix
        ^
0_0_17639117_21479.cpp: In function 'int main()':
0_0_17639117_21479.cpp:143:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17639117_21479.cpp:52:5: note: 'int main()' previously defined here
 int main()
     ^


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-12-02 09:54:39, Gzip enabled