记录详情

Compile Error

foo.cc: In function 'bool Judge1(int, int, int, int, std::string)':
foo.cc:30:1: error: a function-definition is not allowed here before '{' token
   30 | {
      | ^
foo.cc:41:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   41 | int main()
      |         ^~
foo.cc:41:9: note: remove parentheses to default-initialize a variable
   41 | int main()
      |         ^~
      |         --
foo.cc:41:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:42:1: error: a function-definition is not allowed here before '{' token
   42 | {
      | ^
foo.cc:45:2: error: expected '}' at end of input
   45 | }
      |  ^
foo.cc:7:1: note: to match this '{'
    7 | {
      | ^
foo.cc:45:2: warning: control reaches end of non-void function [-Wreturn-type]
   45 | }
      |  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1424 1-2 狗和猫
语言
C++
递交时间
2023-07-03 09:55:46
评测时间
2023-07-03 09:55:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes