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:26:1: error: expected '}' at end of input
   26 | }
      | ^
foo.cc:5:1: note: to match this '{'
    5 | {
      | ^
foo.cc:11:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 | scanf("%d",&n);
      | ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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