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:35:2: error: expected '}' at end of input
   35 | }
      |  ^
foo.cc:4:1: note: to match this '{'
    4 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1020 3个数排序
语言
C++
递交时间
2023-11-18 16:58:46
评测时间
2023-11-18 16:58:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes