记录详情

Compile Error

foo.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
foo.cc: In function 'int main()':
foo.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin.getline(s, 100001);
      |     ^~~
foo.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    3 | #include <cstring>
  +++ |+#include <iostream>
    4 | using namespace std;
foo.cc:26:26: error: 'cout' was not declared in this scope
   26 |             if(i != imin)cout<<s[i];
      |                          ^~~~
foo.cc:26:26: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
5-8 留下最大数
比赛
2023 程序设计与竞赛(作业7:最初的综合)
语言
C++
递交时间
2023-11-11 17:57:34
评测时间
2023-11-11 17:57:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes