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)提供评测服务