/ WHOJ /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:8:19: error: two or more data types in declaration of 'i'
    8 |     for (auto int i=0;i<n;++i)
      |                   ^
foo.cc:8:23: error: 'i' was not declared in this scope
    8 |     for (auto int i=0;i<n;++i)
      |                       ^
foo.cc:16:18: error: two or more data types in declaration of 'i'
   16 |     for(auto int i=1;i<n;++i)
      |                  ^
foo.cc:16:22: error: 'i' was not declared in this scope
   16 |     for(auto int i=1;i<n;++i)
      |                      ^
foo.cc:17:20: error: two or more data types in declaration of 'j'
   17 |       for(auto int j=v-w[i];j>=0;--j)
      |                    ^
foo.cc:17:29: error: 'j' was not declared in this scope
   17 |       for(auto int j=v-w[i];j>=0;--j)
      |                             ^
foo.cc:29:18: error: two or more data types in declaration of 'j'
   29 |     for(auto int j=v;j>=0;--j)
      |                  ^
foo.cc:29:22: error: 'j' was not declared in this scope
   29 |     for(auto int j=v;j>=0;--j)
      |                      ^
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1212 [NOIP2001 普及组] 装箱问题
题目数据
下载
语言
C++
递交时间
2022-06-14 19:48:40
评测时间
2022-06-14 19:48:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes