0_0_34863372_7240.cpp:23:10: error: missing terminating ' character
if( tmp[i] == 'x’ ) { zeroPos = i; break; } //返回空格的位置
^
0_0_34863372_7240.cpp: In function 'int NewStatus(int, char)':
0_0_34863372_7240.cpp:21:30: error: 'sprintf' was not declared in this scope
sprintf(tmp,"%09d",status); //需要保留前导0
^
0_0_34863372_7240.cpp:24:6: error: expected primary-expression before 'switch'
switch( move)
^
0_0_34863372_7240.cpp:24:6: error: expected ')' before 'switch'
0_0_34863372_7240.cpp: In function 'bool Bfs(int)':
0_0_34863372_7240.cpp:50:6: error: 'set' was not declared in this scope
set<int> expanded;
^
0_0_34863372_7240.cpp:50:10: error: expected primary-expression before 'int'
set<int> expanded;
^
0_0_34863372_7240.cpp:52:6: error: 'expanded' was not declared in this scope
expanded.insert(status);
^
0_0_34863372_7240.cpp: In function 'int main()':
0_0_34863372_7240.cpp:71:12: error: 'cin' was not declared in this scope
while( cin.getline(line1,48))
^
0_0_34863372_7240.cpp:74:23: error: 'atoi' was not declared in this scope
if( Bfs(atoi(line1)))
^
0_0_34863372_7240.cpp:81:48: error: 'cout' was not declared in this scope
for( int i = moves -1; i >= 0; i -- ) cout << result[i];
^
0_0_34863372_7240.cpp:82:9: error: 'cout' was not declared in this scope
cout<<endl;
^
0_0_34863372_7240.cpp:82:15: error: 'endl' was not declared in this scope
cout<<endl;
^
0_0_34863372_7240.cpp:84:10: error: 'cout' was not declared in this scope
else cout << "unsolvable" << endl;
^
0_0_34863372_7240.cpp:84:34: error: 'endl' was not declared in this scope
else cout << "unsolvable" << endl;
^
|