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_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;
                                  ^


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-11-26 10:46:06, Gzip enabled