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_17021736_8339.cpp:4:1: error: 'usingnamespace' does not name a type
 usingnamespace std;
 ^
0_0_17021736_8339.cpp:20:12: error: 'booloperator' does not name a type
     friend booloperator< (const S& a,const S& b){
            ^
0_0_17021736_8339.cpp:25:1: error: 'constint' does not name a type
 constint fac[]={1,1,2,6,24,120,720,5040,40320};
 ^
0_0_17021736_8339.cpp: In function 'int inv_hash(S)':
0_0_17021736_8339.cpp:39:18: error: 'fac' was not declared in this scope
             ans+=fac[i*3+j]*cnt;
                  ^
0_0_17021736_8339.cpp: At global scope:
0_0_17021736_8339.cpp:45:1: error: 'constint' does not name a type
 constint pos[][2]={{0,0},{0,1},{0,2},{1,0},{1,1},{1,2},{2,0},{2,1},{2,2}};
 ^
0_0_17021736_8339.cpp: In function 'int h(S)':
0_0_17021736_8339.cpp:53:22: error: 'pos' was not declared in this scope
             val+=ABS(pos[c][0]-i)+ABS(pos[c][1]-j);
                      ^
0_0_17021736_8339.cpp: At global scope:
0_0_17021736_8339.cpp:59:1: error: 'constint' does not name a type
 constint dir[4][2]={{1,0},{0,1},{-1,0},{0,-1}};
 ^
0_0_17021736_8339.cpp: In function 'bool bfs()':
0_0_17021736_8339.cpp:63:5: error: 'priority_queue' was not declared in this scope
     priority_queue<S> que;
     ^
0_0_17021736_8339.cpp:63:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_17021736_8339.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:370:11: note:   'std::priority_queue'
     class priority_queue
           ^
0_0_17021736_8339.cpp:63:21: error: expected primary-expression before '>' token
     priority_queue<S> que;
                     ^
0_0_17021736_8339.cpp:63:23: error: 'que' was not declared in this scope
     priority_queue<S> que;
                       ^
0_0_17021736_8339.cpp:71:18: error: 'dir' was not declared in this scope
             v.x+=dir[i][0];
                  ^
0_0_17021736_8339.cpp:82:12: error: 'elseif' was not declared in this scope
 elseif(i==1) op[ihv]='r';
            ^
0_0_17021736_8339.cpp:85:12: error: 'returntrue' was not declared in this scope
 if(ihv==0) returntrue;
            ^
0_0_17021736_8339.cpp:89:1: error: 'returnfalse' was not declared in this scope
 returnfalse;
 ^
0_0_17021736_8339.cpp: At global scope:
0_0_17021736_8339.cpp:108:1: error: 'charin' does not name a type
 charin[100];
 ^
0_0_17021736_8339.cpp: In function 'int main()':
0_0_17021736_8339.cpp:111:12: error: 'in' was not declared in this scope
 while(gets(in)){
            ^


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-22 09:55:10, Gzip enabled