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_37886143_32469.cpp: In function 'void menset1()':
0_0_37886143_32469.cpp:9:3: error: reference to 'list' is ambiguous
   list[i] = 0;
   ^
0_0_37886143_32469.cpp:4:33: note: candidates are: bool list [1005]
 bool ma[1005][1005] ,can[1005] ,list[1005];
                                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:78,
                 from 0_0_37886143_32469.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^
0_0_37886143_32469.cpp: In function 'int main()':
0_0_37886143_32469.cpp:38:4: error: reference to 'list' is ambiguous
    list[a] = 1;
    ^
0_0_37886143_32469.cpp:4:33: note: candidates are: bool list [1005]
 bool ma[1005][1005] ,can[1005] ,list[1005];
                                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:78,
                 from 0_0_37886143_32469.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^
0_0_37886143_32469.cpp:39:4: error: reference to 'list' is ambiguous
    list[b] = 1;
    ^
0_0_37886143_32469.cpp:4:33: note: candidates are: bool list [1005]
 bool ma[1005][1005] ,can[1005] ,list[1005];
                                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:78,
                 from 0_0_37886143_32469.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^
0_0_37886143_32469.cpp:42:7: error: reference to 'list' is ambiguous
    if(list[i] == 0)
       ^
0_0_37886143_32469.cpp:4:33: note: candidates are: bool list [1005]
 bool ma[1005][1005] ,can[1005] ,list[1005];
                                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:78,
                 from 0_0_37886143_32469.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note:                 template<class _Tp, class _Alloc> class std::list
     class list : protected _List_base<_Tp, _Alloc>
           ^
0_0_37886143_32469.cpp:60:3: error: jump to label 'a1' [-fpermissive]
   a1 : continue;
   ^
0_0_37886143_32469.cpp:43:30: error:   from here [-fpermissive]
    cout << "NO" <<endl; goto a1;
                              ^
0_0_37886143_32469.cpp:55:7: error:   crosses initialization of 'int aa'
   int aa=rand()%2;
       ^


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 19:07:08, Gzip enabled