记录详情

Compile Error

/in/foo.cc: In member function 'void CComplex::print()':
/in/foo.cc:11:4: error: 'cout' was not declared in this scope
    cout<<x<<endl;
    ^~~~
/in/foo.cc:11:13: error: 'endl' was not declared in this scope
    cout<<x<<endl;
             ^~~~
/in/foo.cc:13:4: error: 'cout' was not declared in this scope
    cout<<x<<"+"<<y<<"i"<<endl;
    ^~~~
/in/foo.cc:13:26: error: 'endl' was not declared in this scope
    cout<<x<<"+"<<y<<"i"<<endl;
                          ^~~~
/in/foo.cc:15:4: error: 'cout' was not declared in this scope
    cout<<x<<y<<"i"<<endl;
    ^~~~
/in/foo.cc:15:21: error: 'endl' was not declared in this scope
    cout<<x<<y<<"i"<<endl;
                     ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:2: error: 'cin' was not declared in this scope
  cin>>x1>>y1;
  ^~~

信息

递交者
类型
递交
题目
P1012 OO2-2 复数类的比较运算符重载
语言
C++
递交时间
2019-04-27 11:09:40
评测时间
2019-04-27 11:09:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes