0_0_17022465_14204.cpp:3:1: error: 'usingnamespace' does not name a type
usingnamespace std;
^
0_0_17022465_14204.cpp:28: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_17022465_14204.cpp: In function 'int ABS(int)':
0_0_17022465_14204.cpp:31:1: error: 'elsereturn' was not declared in this scope
elsereturn x;
^
0_0_17022465_14204.cpp: In function 'int h(S)':
0_0_17022465_14204.cpp:39:22: error: 'pos' was not declared in this scope
val+=ABS(pos[c][0]-i)+ABS(pos[c][1]-j);
^
0_0_17022465_14204.cpp: In function 'bool dfs(int)':
0_0_17022465_14204.cpp:66:14: error: 'returntrue' was not declared in this scope
if(h(ts)==0) returntrue;
^
0_0_17022465_14204.cpp:67:18: error: 'returnfalse' was not declared in this scope
if(h(ts)+d>deep) returnfalse;
^
0_0_17022465_14204.cpp:86:14: error: 'returntrue' was not declared in this scope
if(dfs(d+1)) returntrue;
^
0_0_17022465_14204.cpp:92:1: error: 'returnfalse' was not declared in this scope
returnfalse;
^
0_0_17022465_14204.cpp: At global scope:
0_0_17022465_14204.cpp:113:1: error: 'charin' does not name a type
charin[100];
^
0_0_17022465_14204.cpp: In function 'int main()':
0_0_17022465_14204.cpp:115:12: error: 'in' was not declared in this scope
while(gets(in)){
^
0_0_17022465_14204.cpp:134:17: error: 'elseif' was not declared in this scope
elseif(ans[i]==1) putchar('r');
^
|