Compile Error

foo.cc:1:2: error: invalid preprocessing directive #inc
    1 | #inc#include<iostream>
      |  ^~~
foo.cc: In function 'int main()':
foo.cc:18:5: error: 'cin' was not declared in this scope
   18 |     cin>>n;
      |     ^~~
foo.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #inc#include<iostream>
foo.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<climblt(n) << endl;
      |     ^~~~
foo.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:19:25: error: 'endl' was not declared in this scope
   19 |     cout<<climblt(n) << endl;
      |                         ^~~~
foo.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | #inc#include<iostream>
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1096 6-3 上楼梯的走法
语言
C++
递交时间
2023-11-05 16:29:33
评测时间
2023-11-05 16:29:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes