Compile Error

foo.cc:1:2: error: invalid preprocessing directive #includea; did you mean #include?
    1 | #includea <iostream>
      |  ^~~~~~~~
      |  include
foo.cc: In function 'int main()':
foo.cc:8:2: error: 'cin' was not declared in this scope
    8 |  cin>>n;
      |  ^~~
foo.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    2 | #include <cstdio>
  +++ |+#include <iostream>
    3 | 
foo.cc:8:7: error: 'n' was not declared in this scope
    8 |  cin>>n;
      |       ^
foo.cc:9:6: error: 'i' was not declared in this scope
    9 |  for(i=1;i<=n;i++)
      |      ^
foo.cc:11:7: error: 'j' was not declared in this scope
   11 |   for(j=1,j<=2*i-1;j++)
      |       ^
foo.cc:11:23: error: expected ';' before ')' token
   11 |   for(j=1,j<=2*i-1;j++)
      |                       ^
      |                       ;
foo.cc:13:4: error: 'cout' was not declared in this scope
   13 |    cout<<"*";
      |    ^~~~
foo.cc:13:4: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout<<endl;
      |   ^~~~
foo.cc:15:3: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:15:9: error: 'endl' was not declared in this scope
   15 |   cout<<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 | 
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1049 *组成的图形(1)
语言
C++
递交时间
2021-12-18 18:21:05
评测时间
2021-12-18 18:21:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes