记录详情

Compile Error

/in/foo.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<iostream>
      |  ^~~~~~
      |  include
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>xmin>>xmax;
      |         ^~~
/in/foo.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #inclde<iostream>
/in/foo.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<a<<endl;
      |         ^~~~
/in/foo.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:13:18: error: 'endl' was not declared in this scope
   13 |         cout<<a<<endl;
      |                  ^~~~
/in/foo.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | #inclde<iostream>

信息

递交者
类型
递交
题目
A2-1 循环结构入门:数列求和
比赛
2025程序设计与竞赛作业赛第一场(整装出发)
语言
C++
递交时间
2025-09-27 18:59:46
评测时间
2025-10-03 02:06:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes