Compile Error

foo.cc: In function ‘int main()’:
foo.cc:7:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 | int main()
      |         ^~
foo.cc:7:9: note: remove parentheses to default-initialize a variable
    7 | int main()
      |         ^~
      |         --
foo.cc:7:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:8:1: error: a function-definition is not allowed here before ‘{’ token
    8 | {
      | ^
foo.cc:38:2: error: expected ‘}’ at end of input
   38 | }
      |  ^
foo.cc:4:1: note: to match this ‘{’
    4 | {
      | ^

信息

递交者
类型
递交
题目
P1051 *组成的图形(3)
语言
C++
递交时间
2024-04-06 11:15:22
评测时间
2024-04-06 11:15:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes