Compile Error

foo.cc:3:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      |      ^
foo.cc: In function 'int main()':
foo.cc:16:1: error: expected '}' at end of input
   16 | }
      | ^
foo.cc:4:1: note: to match this '{'
    4 | {
      | ^
foo.cc:8:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |   scanf("%d",&n);
      |   ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1041 *组成的图形(1)
语言
C++
递交时间
2022-07-09 17:45:19
评测时间
2022-07-09 17:45:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes