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_32499296_724.cpp: In function 'void dfs(int)':
0_0_32499296_724.cpp:15:11: error: reference to 'count' is ambiguous
  if(Chen==count) return true;
           ^
0_0_32499296_724.cpp:4:5: note: candidates are: int count
 int count;
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_32499296_724.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdbool:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:56,
                 from 0_0_32499296_724.cpp:1:
0_0_32499296_724.cpp:15:25: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if(Chen==count) return true;
                         ^
0_0_32499296_724.cpp:20:23: error: invalid types 'int[int]' for array subscript
   flag[i][Node[Chen].y]=0;
                       ^
0_0_32499296_724.cpp:22:23: error: invalid types 'int[int]' for array subscript
   flag[i][Node[Chen].x]=0;
                       ^
0_0_32499296_724.cpp:23:25: error: 'chen' was not declared in this scope
  for(int i=culcate(Node[chen].x);i<=culcate(Node[Chen].x);i++);
                         ^
0_0_32499296_724.cpp:25:9: error: 'pan' was not declared in this scope
    flag[pan[i][k]]=0;
         ^
0_0_32499296_724.cpp:25:13: error: 'i' was not declared in this scope
    flag[pan[i][k]]=0;
             ^
0_0_32499296_724.cpp:29:4: error: 'pan' was not declared in this scope
    pan[x][y]=i;
    ^
0_0_32499296_724.cpp:30:11: error: 'chen' was not declared in this scope
    if(dfs(chen+1))
           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdbool:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:56,
                 from 0_0_32499296_724.cpp:1:
0_0_32499296_724.cpp:31:11: error: return-statement with a value, in function returning 'void' [-fpermissive]
    return true;
           ^
0_0_32499296_724.cpp: In function 'int main()':
0_0_32499296_724.cpp:37:10: error: expected unqualified-id before numeric constant
  for(int 1;i<=9;i++){
          ^
0_0_32499296_724.cpp:37:10: error: expected ';' before numeric constant
0_0_32499296_724.cpp:37:12: error: 'i' was not declared in this scope
  for(int 1;i<=9;i++){
            ^
0_0_32499296_724.cpp:37:16: error: expected ')' before ';' token
  for(int 1;i<=9;i++){
                ^
0_0_32499296_724.cpp:37:17: error: 'i' was not declared in this scope
  for(int 1;i<=9;i++){
                 ^
0_0_32499296_724.cpp:51:10: error: could not convert 'dfs(0)' from 'void' to 'bool'
  if(dfs(0)){
          ^
0_0_32499296_724.cpp:54:11: error: 'pan' was not declared in this scope
     cout<<pan[i][k];
           ^
0_0_32499296_724.cpp:57:5: error: expected ';' before 'else'
     else
     ^


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-09-28 22:19:53, Gzip enabled