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_32885388_22889.cpp: In function 'll read()':
0_0_32885388_22889.cpp:7:49: error: 'getchar' was not declared in this scope
     ll x = 0, f = 1; register char ch = getchar();
                                                 ^
0_0_32885388_22889.cpp: At global scope:
0_0_32885388_22889.cpp:12:1: error: 'string' does not name a type
 string str[MAXN];
 ^
0_0_32885388_22889.cpp:13:16: error: 'string' does not name a type
 bool cmp(const string &a,const string &b){
                ^
0_0_32885388_22889.cpp:13:32: error: 'string' does not name a type
 bool cmp(const string &a,const string &b){
                                ^
0_0_32885388_22889.cpp: In function 'bool cmp(const int&, const int&)':
0_0_32885388_22889.cpp:14:14: error: request for member 'length' in 'a', which is of non-class type 'const int'
     return a.length()<b.length();
              ^
0_0_32885388_22889.cpp:14:25: error: request for member 'length' in 'b', which is of non-class type 'const int'
     return a.length()<b.length();
                         ^
0_0_32885388_22889.cpp: At global scope:
0_0_32885388_22889.cpp:17:5: error: 'string' does not name a type
     string pre,suf;
     ^
0_0_32885388_22889.cpp:20:14: error: expected ')' before 'a'
     Q(string a,string b,int _id){
              ^
0_0_32885388_22889.cpp:123:1: error: expected '}' at end of input
 }
 ^
0_0_32885388_22889.cpp:19:9: error: expected unqualified-id at end of input
     Q(){};
         ^


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 11:10:45, Gzip enabled