记录详情

Compile Error

foo.cc: In function ‘void fohuj()’:
foo.cc:18:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   18 |                 for(int i=0;i<b[x].size();i++)qa[b[x][i]]--;
      |                             ~^~~~~~~~~~~~
foo.cc:20:72: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   20 |                 for(int i=1;i<=n;i++){if(qa[i]==1){flag=1;for(int j=0;j<a[i].size();j++)if(!vis[a[i][j]]){p.push(a[i][j]);ans[i]=a[i][j];vis2[i]=1;qj++;break;}break;}}
      |                                                                       ~^~~~~~~~~~~~
foo.cc:20:138: error: ‘vis2’ was not declared in this scope; did you mean ‘vis’?
   20 |                 for(int i=1;i<=n;i++){if(qa[i]==1){flag=1;for(int j=0;j<a[i].size();j++)if(!vis[a[i][j]]){p.push(a[i][j]);ans[i]=a[i][j];vis2[i]=1;qj++;break;}break;}}
      |                                                                                                                                          ^~~~
      |                                                                                                                                          vis

信息

递交者
类型
递交
题目
烦人的幻灯片(slides)
语言
C++
递交时间
2024-05-09 13:33:27
评测时间
2024-05-09 13:33:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes