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_37281564_6152.cpp: In function 'int main()':
0_0_37281564_6152.cpp:7:11: error: 'cin' was not declared in this scope
     while(cin>>n&&n){
           ^
0_0_37281564_6152.cpp:8:9: error: 'string' was not declared in this scope
         string s,s1="",s2="" ;
         ^
0_0_37281564_6152.cpp:11:21: error: 'getchar' was not declared in this scope
             getchar();
                     ^
0_0_37281564_6152.cpp:12:25: error: 's' was not declared in this scope
             getline(cin,s);
                         ^
0_0_37281564_6152.cpp:12:26: error: 'getline' was not declared in this scope
             getline(cin,s);
                          ^
0_0_37281564_6152.cpp:16:21: error: 's1' was not declared in this scope
                     s1=s1+"O ";
                     ^
0_0_37281564_6152.cpp:20:21: error: 's2' was not declared in this scope
                     s2=s2+"O ";
                     ^
0_0_37281564_6152.cpp:26:21: error: 's1' was not declared in this scope
                     s1=s1+"X ";
                     ^
0_0_37281564_6152.cpp:30:21: error: 's2' was not declared in this scope
                     s2=s2+"X ";
                     ^
0_0_37281564_6152.cpp:36:21: error: 's1' was not declared in this scope
                     s1=s1+"O ";
                     ^
0_0_37281564_6152.cpp:40:21: error: 's2' was not declared in this scope
                     s2=s2+"O ";
                     ^
0_0_37281564_6152.cpp:45:20: error: 's2' was not declared in this scope
         if(n%2==1){s2=s2+"- ";}
                    ^
0_0_37281564_6152.cpp:47:13: error: 'cout' was not declared in this scope
             cout<<i+1<<" ";
             ^
0_0_37281564_6152.cpp:49:20: error: 'cout' was not declared in this scope
         if(n%2==1){cout<<(n+1)/2<<" ";}
                    ^
0_0_37281564_6152.cpp:50:9: error: 'cout' was not declared in this scope
         cout<<"Score"<<endl;
         ^
0_0_37281564_6152.cpp:50:24: error: 'endl' was not declared in this scope
         cout<<"Score"<<endl;
                        ^
0_0_37281564_6152.cpp:51:15: error: 's1' was not declared in this scope
         cout<<s1<<sum1<<endl;
               ^
0_0_37281564_6152.cpp:52:15: error: 's2' was not declared in this scope
         cout<<s2<<sum2<<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-23 02:27:22, Gzip enabled