Compile Error

/in/foo.cc: In function 'long long int calc(int)':
/in/foo.cc:17:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |                 for (int j = buy; j < cs[i].size(); ++j) {
      |                                   ~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:39:13: error: 'inti' was not declared in this scope; did you mean 'int'?
   39 |         for(inti=max(cnt[1],1); i<=m; ++i) {
      |             ^~~~
      |             int
/in/foo.cc:39:33: error: 'i' was not declared in this scope
   39 |         for(inti=max(cnt[1],1); i<=m; ++i) {
      |                                 ^

信息

递交者
类型
递交
题目
P2856 武器强化 2024.12GESP5级T2
语言
C++
递交时间
2026-08-09 12:27:54
评测时间
2026-08-09 12:27:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes