Compile Error

foo.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<iostream>
      |  ^~~~~~
      |  include
foo.cc: In function 'int main()':
foo.cc:6:2: error: 'cin' was not declared in this scope
    6 |  cin>>n;
      |  ^~~
foo.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #includ<iostream>
foo.cc:10:3: error: 'sum' was not declared in this scope; did you mean 'sym'?
   10 |   sum+=t;
      |   ^~~
      |   sym
foo.cc:13:2: error: 'cout' was not declared in this scope
   13 |  cout<<sum;
      |  ^~~~
foo.cc:13:2: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:13:8: error: 'sum' was not declared in this scope; did you mean 'sym'?
   13 |  cout<<sum;
      |        ^~~
      |        sym
foo.cc:5:8: warning: unused variable 'sym' [-Wunused-variable]
    5 |  int n,sym=0,t;
      |        ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1033 任意整数的数字之和。
语言
C++
递交时间
2022-07-11 20:32:25
评测时间
2022-07-11 20:32:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes