QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#94833#6184. Atcoder Problem00Compile Error//C++144.0kb2023-04-07 22:51:152023-04-07 22:51:16

Details

answer.code: In function ‘std::vector<ii> conv(std::vector<ii>, std::vector<ii>)’:
answer.code:138:122: warning: narrowing conversion of ‘(((1 * ((long long int)a.std::vector<ii>::operator[](((std::vector<ii>::size_type)i)).ii::c)) * ((long long int)cb.std::vector<ii>::operator[](((std::vector<ii>::size_type)k)).ii::c)) % ((long long int)((int)mod)))’ from ‘long long int’ to ‘int’ [-Wnarrowing]
  138 |                         fz0k(k,cb.size()) res.push_back((ii){((a[i].x^cb[k].x)>>a[i].k)<<a[i].k,a[i].k,1ll*a[i].c*cb[k].c%mod});
      |                                                                                                        ~~~~~~~~~~~~~~~~~~^~~~
answer.code:144:122: warning: narrowing conversion of ‘(((1 * ((long long int)b.std::vector<ii>::operator[](((std::vector<ii>::size_type)j)).ii::c)) * ((long long int)ca.std::vector<ii>::operator[](((std::vector<ii>::size_type)k)).ii::c)) % ((long long int)((int)mod)))’ from ‘long long int’ to ‘int’ [-Wnarrowing]
  144 |                         fz0k(k,ca.size()) res.push_back((ii){((b[j].x^ca[k].x)>>b[j].k)<<b[j].k,b[j].k,1ll*b[j].c*ca[k].c%mod});
      |                                                                                                        ~~~~~~~~~~~~~~~~~~^~~~
answer.code: In function ‘int main()’:
answer.code:160:35: error: ‘tag’ was not declared in this scope; did you mean ‘tar’?
  160 |                         if(it->x<=tag&&tar<it->x+(1ll<<it->k)){
      |                                   ^~~
      |                                   tar