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_36813531_21916.cpp:5:33: error: conflicting declaration 'int m [110][110]'
 int a[10010],b[10010],m[110][110],book[10010],g[10010];
                                 ^
0_0_36813531_21916.cpp:4:7: note: previous declaration as 'int m'
 int n,m,k;
       ^
0_0_36813531_21916.cpp: In function 'int f(int)':
0_0_36813531_21916.cpp:13:23: error: invalid types 'int[int]' for array subscript
   if(book[i] == 0&&m[x][i] == 1)
                       ^
0_0_36813531_21916.cpp: In function 'int main()':
0_0_36813531_21916.cpp:38:23: error: invalid conversion from 'int' to 'void*' [-fpermissive]
   memset(m,0,sizeof(m));
                       ^
In file included from 0_0_36813531_21916.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:43:18: note: initializing argument 1 of 'void* memset(void*, int, size_t)'
   void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
                  ^
0_0_36813531_21916.cpp:45:10: error: invalid types 'int[int]' for array subscript
    m[a[i]][b[i]] = 1;
          ^
0_0_36813531_21916.cpp:61:10: error: invalid types 'int[int]' for array subscript
    m[a[i]][b[i]] = 0;
          ^
0_0_36813531_21916.cpp:72:12: error: invalid types 'int[int]' for array subscript
      m[a[i]][b[i]] = 1;
            ^


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-04 04:30:17, Gzip enabled