/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int max(int, int)':
foo.cc:8:5: error: 'returna' was not declared in this scope
    8 |     returna>b?a:b;
      |     ^~~~~~~
foo.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
foo.cc: In function 'void dp(int)':
foo.cc:14:5: error: 'intj' was not declared in this scope; did you mean 'int'?
   14 |     intj,l=s-1;
      |     ^~~~
      |     int
foo.cc:14:10: error: 'l' was not declared in this scope
   14 |     intj,l=s-1;
      |          ^
foo.cc:18:13: error: 'j' was not declared in this scope
   18 |         for(j=1;j<=s&&l>=val[j];j++)//由于之前已经做过之前的背包,并且回溯后做过的背包也不会对结果产生影响,可以优化节省时间
      |             ^
foo.cc: In function 'void dfs(int)':
foo.cc:27:5: error: 'intv' was not declared in this scope; did you mean 'int'?
   27 |     intv;
      |     ^~~~
      |     int
foo.cc:33:17: error: 'v' was not declared in this scope
   33 |             for(v=1;v<=k;v++)
      |                 ^
foo.cc:38:9: error: 'v' was not declared in this scope
   38 |     for(v=maxv[s-1]+1;v>val[s-1];v--)
      |         ^
foo.cc: In function 'int main()':
foo.cc:47:5: error: 'inti' was not declared in this scope; did you mean 'int'?
   47 |     inti;
      |     ^~~~
      |     int
foo.cc:50:9: error: 'i' was not declared in this scope
   50 |     for(i=1;i<=n;i++)
      |         ^
foo.cc:54:9: error: 'i' was not declared in this scope
   54 |     for(i=2;i<=k;i++)
      |         ^
foo.cc:48:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   48 |     scanf("%d%d",&n,&k);
      |     ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1179 邮票面值设计
语言
C++
递交时间
2021-12-19 20:45:02
评测时间
2021-12-19 20:45:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes