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_39255129_21489.cpp:3:229: error: missing terminating ' character
    3 | using namespace std; int n; string s; int main(){ cin>>n; for(int i=1;i<=n;i++){ getline(cin,s); int start=0,end=s.size(); for(int j=0;j<s.size();j++){ if(s[j]==' '){ end=j-1; for(int z=end;z>=start;z--){ cout<<s[i]; } cout<<" "'; start=j+1; } } cout<<endl; } return 0; }
      |                                                                                                                                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_39255129_21489.cpp: In function 'int main()':
0_0_39255129_21489.cpp:3:229: error: expected ';' at end of input
    3 | using namespace std; int n; string s; int main(){ cin>>n; for(int i=1;i<=n;i++){ getline(cin,s); int start=0,end=s.size(); for(int j=0;j<s.size();j++){ if(s[j]==' '){ end=j-1; for(int z=end;z>=start;z--){ cout<<s[i]; } cout<<" "'; start=j+1; } } cout<<endl; } return 0; }
      |                                                                                                                                                                                                                                     ^
      |                                                                                                                                                                                                                                     ;
0_0_39255129_21489.cpp:3:229: error: expected '}' at end of input
    3 | using namespace std; int n; string s; int main(){ cin>>n; for(int i=1;i<=n;i++){ getline(cin,s); int start=0,end=s.size(); for(int j=0;j<s.size();j++){ if(s[j]==' '){ end=j-1; for(int z=end;z>=start;z--){ cout<<s[i]; } cout<<" "'; start=j+1; } } cout<<endl; } return 0; }
      |                                                                                                                                                                      ~                                                              ^
0_0_39255129_21489.cpp:3:229: error: expected '}' at end of input
    3 | using namespace std; int n; string s; int main(){ cin>>n; for(int i=1;i<=n;i++){ getline(cin,s); int start=0,end=s.size(); for(int j=0;j<s.size();j++){ if(s[j]==' '){ end=j-1; for(int z=end;z>=start;z--){ cout<<s[i]; } cout<<" "'; start=j+1; } } cout<<endl; } return 0; }
      |                                                                                                                                                       ~                                                                             ^
0_0_39255129_21489.cpp:3:229: error: expected '}' at end of input
    3 | using namespace std; int n; string s; int main(){ cin>>n; for(int i=1;i<=n;i++){ getline(cin,s); int start=0,end=s.size(); for(int j=0;j<s.size();j++){ if(s[j]==' '){ end=j-1; for(int z=end;z>=start;z--){ cout<<s[i]; } cout<<" "'; start=j+1; } } cout<<endl; } return 0; }
      |                                                                                ~                                                                                                                                                    ^
0_0_39255129_21489.cpp:3:229: error: expected '}' at end of input
    3 | using namespace std; int n; string s; int main(){ cin>>n; for(int i=1;i<=n;i++){ getline(cin,s); int start=0,end=s.size(); for(int j=0;j<s.size();j++){ if(s[j]==' '){ end=j-1; for(int z=end;z>=start;z--){ cout<<s[i]; } cout<<" "'; start=j+1; } } cout<<endl; } return 0; }
      |                                                 ~                                                                                                                                                                                   ^


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-12-03 04:17:33, Gzip enabled