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_22145376_4265.cpp: In function 'void read(T&)':
0_0_22145376_4265.cpp:22:2: error: 'nbsp' was not declared in this scope
     char CH;
  ^
0_0_22145376_4265.cpp: In function 'void print(T)':
0_0_22145376_4265.cpp:31:2: error: 'nbsp' was not declared in this scope
     if(!p)
  ^
0_0_22145376_4265.cpp: At global scope:
0_0_22145376_4265.cpp:40:6: error: expected constructor, destructor, or type conversion before ';' token
  
      ^
0_0_22145376_4265.cpp:42:6: error: expected constructor, destructor, or type conversion before ';' token
  
      ^
0_0_22145376_4265.cpp:45:8: error: redeclaration of 'int& Complex::nbsp'
     double x,y;
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:45:14: error: redeclaration of 'int& Complex::nbsp'
     double x,y;
              ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:45:20: error: redeclaration of 'int& Complex::nbsp'
     double x,y;
                    ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:46:2: error: redeclaration of 'int& Complex::nbsp'
     Complex(double _x = 0.0,double _y = 0.0)
  ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:46:8: error: redeclaration of 'int& Complex::nbsp'
     Complex(double _x = 0.0,double _y = 0.0)
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:46:14: error: redeclaration of 'int& Complex::nbsp'
     Complex(double _x = 0.0,double _y = 0.0)
              ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:46:20: error: redeclaration of 'int& Complex::nbsp'
     Complex(double _x = 0.0,double _y = 0.0)
                    ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:47:1: error: constructors may not be ref-qualified
     {
 ^
0_0_22145376_4265.cpp:47:1: error: expected ';' at end of member declaration
0_0_22145376_4265.cpp:47:2: error: 'nbsp' does not name a type
     {
  ^
0_0_22145376_4265.cpp:47:8: error: redeclaration of 'int& Complex::nbsp'
     {
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:47:14: error: redeclaration of 'int& Complex::nbsp'
     {
              ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:47:20: error: redeclaration of 'int& Complex::nbsp'
     {
                    ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:47:25: error: expected unqualified-id before '{' token
     {
                         ^
0_0_22145376_4265.cpp:51:2: error: redeclaration of 'int& Complex::nbsp'
     Complex operator-(const Complex &b)const
  ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:51:8: error: redeclaration of 'int& Complex::nbsp'
     Complex operator-(const Complex &b)const
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:51:14: error: redeclaration of 'int& Complex::nbsp'
     Complex operator-(const Complex &b)const
              ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:51:20: error: redeclaration of 'int& Complex::nbsp'
     Complex operator-(const Complex &b)const
                    ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:52:1: error: expected ';' at end of member declaration
     {
 ^
0_0_22145376_4265.cpp:52:2: error: 'nbsp' does not name a type
     {
  ^
0_0_22145376_4265.cpp:52:8: error: redeclaration of 'int& Complex::nbsp'
     {
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:52:14: error: redeclaration of 'int& Complex::nbsp'
     {
              ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:52:20: error: redeclaration of 'int& Complex::nbsp'
     {
                    ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:52:25: error: expected unqualified-id before '{' token
     {
                         ^
0_0_22145376_4265.cpp:55:2: error: redeclaration of 'int& Complex::nbsp'
     Complex operator+(const Complex &b)const
  ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:55:8: error: redeclaration of 'int& Complex::nbsp'
     Complex operator+(const Complex &b)const
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:55:14: error: redeclaration of 'int& Complex::nbsp'
     Complex operator+(const Complex &b)const
              ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:55:20: error: redeclaration of 'int& Complex::nbsp'
     Complex operator+(const Complex &b)const
                    ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:56:1: error: expected ';' at end of member declaration
     {
 ^
0_0_22145376_4265.cpp:56:2: error: 'nbsp' does not name a type
     {
  ^
0_0_22145376_4265.cpp:56:8: error: redeclaration of 'int& Complex::nbsp'
     {
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:56:14: error: redeclaration of 'int& Complex::nbsp'
     {
              ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:56:20: error: redeclaration of 'int& Complex::nbsp'
     {
                    ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:56:25: error: expected unqualified-id before '{' token
     {
                         ^
0_0_22145376_4265.cpp:59:2: error: redeclaration of 'int& Complex::nbsp'
     Complex operator*(const Complex &b)const
  ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:59:8: error: redeclaration of 'int& Complex::nbsp'
     Complex operator*(const Complex &b)const
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:59:14: error: redeclaration of 'int& Complex::nbsp'
     Complex operator*(const Complex &b)const
              ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:59:20: error: redeclaration of 'int& Complex::nbsp'
     Complex operator*(const Complex &b)const
                    ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:60:1: error: expected ';' at end of member declaration
     {
 ^
0_0_22145376_4265.cpp:60:2: error: 'nbsp' does not name a type
     {
  ^
0_0_22145376_4265.cpp:60:8: error: redeclaration of 'int& Complex::nbsp'
     {
        ^
0_0_22145376_4265.cpp:45:2: note: previous declaration 'int& Complex::nbsp'
     double x,y;
  ^
0_0_22145376_4265.cpp:60:14: error: redeclaration of 'int& Complex::nbsp'
     {
              ^
0_0_22145376_426


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-10-06 22:47:11, Gzip enabled