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_16776847_3332.cpp: In function 'bool bfs(int, int, int, int)':
0_0_16776847_3332.cpp:39:5: error: expected initializer before 'q'
     q.push(a);
     ^
0_0_16776847_3332.cpp:40:12: error: 'q' was not declared in this scope
     while(!q.empty())
            ^
0_0_16776847_3332.cpp: In function 'int main()':
0_0_16776847_3332.cpp:100:37: error: invalid conversion from 'int' to 'void*' [-fpermissive]
             memset(a, (b), sizeof(a))
                                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
                 from 0_0_16776847_3332.cpp:3:
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_16776847_3332.cpp:101:13: error: expected ';' before 'if'
             if(bfs(a,b,c,d))printf("YES\n");
             ^
0_0_16776847_3332.cpp:102:13: error: 'else' without a previous 'if'
             else printf("NO\n");
             ^


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-23 11:16:12, Gzip enabled