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_25132197_6582.cpp:7:14: error: 'BASE' does not name a type
 static const BASE=100000000;
              ^
0_0_25132197_6582.cpp:8:14: error: 'WIDTH' does not name a type
 static const WIDTH=8;
              ^
0_0_25132197_6582.cpp:9:1: error: 'vector' does not name a type
 vector<int> s;
 ^
0_0_25132197_6582.cpp:21:28: error: 'string' does not name a type
 BigInteger operator=(const string& str)
                            ^
0_0_25132197_6582.cpp:34:1: error: 'ostream' does not name a type
 ostream& operator<<(ostream& out,const BigInteger& x)
 ^
0_0_25132197_6582.cpp:45:1: error: 'istream' does not name a type
 istream& operator>>(istream& in,BigInteger& x)
 ^
0_0_25132197_6582.cpp:79:1: error: expected '}' at end of input
 }
 ^
0_0_25132197_6582.cpp: In member function 'BigInteger BigInteger::operator=(long long int)':
0_0_25132197_6582.cpp:13:1: error: 's' was not declared in this scope
 s.clear();
 ^
0_0_25132197_6582.cpp:16:17: error: 'BASE' was not declared in this scope
 s.push_back(num%BASE);
                 ^
0_0_25132197_6582.cpp: In member function 'BigInteger BigInteger::operator=(const int&)':
0_0_25132197_6582.cpp:23:1: error: 's' was not declared in this scope
 s.clear();
 ^
0_0_25132197_6582.cpp:24:16: error: request for member 'length' in 'str', which is of non-class type 'const int'
 int x,len=(str.length()-1)/WIDTH+1;
                ^
0_0_25132197_6582.cpp:24:28: error: 'WIDTH' was not declared in this scope
 int x,len=(str.length()-1)/WIDTH+1;
                            ^
0_0_25132197_6582.cpp:27:13: error: request for member 'length' in 'str', which is of non-class type 'const int'
 int end=str.length()-i*WIDTH;
             ^
0_0_25132197_6582.cpp:29:12: error: request for member 'substr' in 'str', which is of non-class type 'const int'
 sscanf(str.substr(start,end-start).c_str,"%d",&x);
            ^
0_0_25132197_6582.cpp: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
0_0_25132197_6582.cpp:55:3: error: 'struct BigInteger' has no member named 's'
 c.s.clear();
   ^
0_0_25132197_6582.cpp:56:13: error: 'g' was not declared in this scope
 for(int i=0;g=0;i++)
             ^
0_0_25132197_6582.cpp:58:18: error: 'size' was not declared in this scope
 if(g==0&&i>=size()&&i>=b.size())break;
                  ^
0_0_25132197_6582.cpp:58:26: error: 'const struct BigInteger' has no member named 'size'
 if(g==0&&i>=size()&&i>=b.size())break;
                          ^
0_0_25132197_6582.cpp:60:6: error: 's' was not declared in this scope
 if(i<s.size())x+=s[i];
      ^
0_0_25132197_6582.cpp:61:8: error: 'const struct BigInteger' has no member named 's'
 if(i<b.s.size())x+=b.s[i];
        ^
0_0_25132197_6582.cpp:61:22: error: 'const struct BigInteger' has no member named 's'
 if(i<b.s.size())x+=b.s[i];
                      ^
0_0_25132197_6582.cpp:62:3: error: 'struct BigInteger' has no member named 's'
 c.s.push_back(x%BASE);
   ^
0_0_25132197_6582.cpp:62:17: error: 'BASE' was not declared in this scope
 c.s.push_back(x%BASE);
                 ^
0_0_25132197_6582.cpp: In member function 'int BigInteger::main()':
0_0_25132197_6582.cpp:71:1: error: 'cin' was not declared in this scope
 cin>>number;
 ^
0_0_25132197_6582.cpp:71:1: note: suggested alternative:
In file included from 0_0_25132197_6582.cpp:1: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_25132197_6582.cpp:75:1: error: 'cout' was not declared in this scope
 cout<<"Case "<<i+1<<":"<<endl;
 ^
0_0_25132197_6582.cpp:75:1: note: suggested alternative:
In file included from 0_0_25132197_6582.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
0_0_25132197_6582.cpp:75:26: error: 'endl' was not declared in this scope
 cout<<"Case "<<i+1<<":"<<endl;
                          ^
0_0_25132197_6582.cpp:75:26: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_25132197_6582.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^
0_0_25132197_6582.cpp: At global scope:
0_0_25132197_6582.cpp:79: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-23 09:49:05, Gzip enabled