Compile Error

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

信息

递交者
类型
递交
题目
P2555 小杨的H字矩阵2级2 2023.12
语言
C++
递交时间
2026-05-25 20:38:50
评测时间
2026-05-25 20:38:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes