Compile Error

foo.cc:1:2: error: stray '#' in program
    1 | 1#include<iostream>
      |  ^
foo.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1#include<iostream>
      | ^
foo.cc: In function 'int main()':
foo.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>n>>x;
      |     ^~~
foo.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    2 | #include<cstdio>
  +++ |+#include <iostream>
    3 | using namespace std;
foo.cc:27:5: error: 'cout' was not declared in this scope
   27 |     cout<<sum<<endl;
      |     ^~~~
foo.cc:27:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:27:16: error: 'endl' was not declared in this scope
   27 |     cout<<sum<<endl;
      |                ^~~~
foo.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
    2 | #include<cstdio>
  +++ |+#include <ostream>
    3 | using namespace std;
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1115 满足条件的3位整数(2)
语言
C++
递交时间
2022-02-10 15:49:07
评测时间
2022-02-10 15:49:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes