记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:2: error: 'cin' was not declared in this scope
  cin>>a>>b>>c;
  ^~~
/in/foo.cc:5:2: note: suggested alternative: 'main'
  cin>>a>>b>>c;
  ^~~
  main
/in/foo.cc:7:4: error: 'cout' was not declared in this scope
   {cout<<c<<endl;
    ^~~~
/in/foo.cc:7:13: error: 'endl' was not declared in this scope
   {cout<<c<<endl;
             ^~~~
/in/foo.cc:7:13: note: suggested alternative: 'enum'
   {cout<<c<<endl;
             ^~~~
             enum
/in/foo.cc:11:4: error: 'cout' was not declared in this scope
    cout<<b<<endl;
    ^~~~
/in/foo.cc:11:13: error: 'endl' was not declared in this scope
    cout<<b<<endl;
             ^~~~
/in/foo.cc:11:13: note: suggested alternative: 'enum'
    cout<<b<<endl;
             ^~~~
             enum
/in/foo.cc:14:9: error: 'cout' was not declared in this scope
   else {cout<<a<<endl;}
         ^~~~
/in/foo.cc:14:18: error: 'endl' was not declared in this scope
   else {cout<<a<<endl;}
                  ^~~~
/in/foo.cc:14:18: note: suggested alternative: 'enum'
   else {cout<<a<<endl;}
                  ^~~~
                  enum
/in/foo.cc:16:2: error: 'getchar' was not declared in this scope
  getchar();
  ^~~~~~~
/in/foo.cc:16:2: note: suggested alternative: 'char'
  getchar();
  ^~~~~~~
  char

信息

递交者
类型
递交
题目
大三元
语言
C++
递交时间
2017-10-25 12:32:36
评测时间
2017-10-25 12:32:36
评测机
分数
0
总耗时
20ms
峰值内存
3.168 MiB