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)提供评测服务