/ Vijos /

记录详情

Compile Error

foo.cc: In function ‘int w(int, int, int)’:
foo.cc:9:37: warning: left operand of comma operator has no effect [-Wunused-value]
    9 |         else if(a<b and b<c)return (a,b,c-1)+w(a,b-1,c-1)-w(a,b-1,c-1);
      |                                     ^
foo.cc:9:43: warning: right operand of comma operator has no effect [-Wunused-value]
    9 |         else if(a<b and b<c)return (a,b,c-1)+w(a,b-1,c-1)-w(a,b-1,c-1);
      |                                           ^
foo.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main()
      |         ^~
foo.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main()
      |         ^~
      |         --
foo.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:12:1: error: a function-definition is not allowed here before ‘{’ token
   12 | {
      | ^
foo.cc:14:2: error: expected ‘}’ at end of input
   14 | }
      |  ^
foo.cc:6:1: note: to match this ‘{’
    6 | {
      | ^
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
P1080 Function(Function(F...
语言
C++
递交时间
2024-03-31 21:36:35
评测时间
2024-03-31 21:36:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes