Compile Error

/in/foo.cc:1:2: error: invalid preprocessing directive #inciude; did you mean #include?
    1 | #inciude<iostream>
      |  ^~~~~~~
      |  include
/in/foo.cc:2:2: error: invalid preprocessing directive #imclude; did you mean #include?
    2 | #imclude<iomapip>
      |  ^~~~~~~
      |  include
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>a>>b;
      |         ^~~
/in/foo.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #inciude<iostream>
/in/foo.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<fixed<<setprecision(2)<<"C="<<a+b<<"S="<<a*b<<endl;
      |         ^~~~
/in/foo.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:8:15: error: 'fixed' was not declared in this scope
    8 |         cout<<fixed<<setprecision(2)<<"C="<<a+b<<"S="<<a*b<<endl;
      |               ^~~~~
/in/foo.cc:8:22: error: 'setprecision' was not declared in this scope
    8 |         cout<<fixed<<setprecision(2)<<"C="<<a+b<<"S="<<a*b<<endl;
      |                      ^~~~~~~~~~~~
/in/foo.cc:8:61: error: 'endl' was not declared in this scope
    8 |         cout<<fixed<<setprecision(2)<<"C="<<a+b<<"S="<<a*b<<endl;
      |                                                             ^~~~
/in/foo.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | #inciude<iostream>

信息

递交者
类型
自测
语言
C++
递交时间
2025-03-09 20:25:06
评测时间
2025-03-09 20:25:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes