/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:2: error: 'cin' was not declared in this scope
    5 |  cin>>N;
      |  ^~~
/in/foo.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | using namespace std;
/in/foo.cc:8:25: error: 'cout' was not declared in this scope
    8 |   if(int((R+0.5)/1)==I) cout<<"Correct"<<endl;
      |                         ^~~~
/in/foo.cc:8:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:8:42: error: 'endl' was not declared in this scope
    8 |   if(int((R+0.5)/1)==I) cout<<"Correct"<<endl;
      |                                          ^~~~
/in/foo.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | using namespace std;
/in/foo.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<"Not Correct"<<endl;
      |        ^~~~
/in/foo.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:9:29: error: 'endl' was not declared in this scope
    9 |   else cout<<"Not Correct"<<endl;
      |                             ^~~~
/in/foo.cc:9:29: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?

信息

递交者
类型
递交
语言
C++
递交时间
2023-10-17 19:54:36
评测时间
2023-10-17 19:54:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes