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