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_22160426_13048.cpp:10:7: error: expected nested-name-specifier before 'namespace'
 using namespace std;
       ^
0_0_22160426_13048.cpp:11:1: error: 'string' does not name a type
 string x[100007];
 ^
0_0_22160426_13048.cpp:48:1: error: expected '}' at end of input
 }
 ^
0_0_22160426_13048.cpp: In member function 'int obj::main()':
0_0_22160426_13048.cpp:13:11: error: 'cin' was not declared in this scope
     int n;cin.tie(0);
           ^
0_0_22160426_13048.cpp:13:11: note: suggested alternative:
In file included from 0_0_22160426_13048.cpp:3:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
0_0_22160426_13048.cpp:14:5: error: 'ios' has not been declared
     ios::sync_with_stdio(0);
     ^
0_0_22160426_13048.cpp:23:21: error: request for member 'size' in '((obj*)this)->obj::x[i]', which is of non-class type 'int'
             if(x[i].size()>x[k].size())
                     ^
0_0_22160426_13048.cpp:23:33: error: request for member 'size' in '((obj*)this)->obj::x[k]', which is of non-class type 'int'
             if(x[i].size()>x[k].size())
                                 ^
0_0_22160426_13048.cpp:29:29: error: request for member 'c_str' in '((obj*)this)->obj::x[i]', which is of non-class type 'int'
                     if(x[i].c_str()[p]==0) goto B;
                             ^
0_0_22160426_13048.cpp:30:29: error: request for member 'c_str' in '((obj*)this)->obj::x[k]', which is of non-class type 'int'
                     if(x[k].c_str()[j+p]==0) goto WA;
                             ^
0_0_22160426_13048.cpp:31:29: error: request for member 'c_str' in '((obj*)this)->obj::x[i]', which is of non-class type 'int'
                     if(x[i].c_str()[p]!=x[k].c_str()[j+p]) break;
                             ^
0_0_22160426_13048.cpp:31:46: error: request for member 'c_str' in '((obj*)this)->obj::x[k]', which is of non-class type 'int'
                     if(x[i].c_str()[p]!=x[k].c_str()[j+p]) break;
                                              ^
0_0_22160426_13048.cpp:39:19: error: request for member 'c_str' in '((obj*)this)->obj::x[k]', which is of non-class type 'int'
         puts(x[k].c_str());
                   ^
0_0_22160426_13048.cpp: At global scope:
0_0_22160426_13048.cpp:48:1: error: expected unqualified-id at end of input
 }
 ^


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-18 03:25:25, Gzip enabled