제출 #1001740

#제출 시각아이디문제언어결과실행 시간메모리
1001740ayankarimovaDetecting Molecules (IOI16_molecules)C++14
9 / 100
1 ms504 KiB
#include "molecules.h" #include <bits/stdc++.h> using namespace std; #define ll long long std::vector<int> find_subset(int l, int u, std::vector<int> w) { vector<int>ans; ll v=w[0]; ll num=(l+v-1)/v; if(num*v<=u && num<=w.size()){ for(int i=0; i<num; i++) ans.push_back(i); return ans; } return ans; } /* {} [] */

컴파일 시 표준 에러 (stderr) 메시지

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:9:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |     if(num*v<=u && num<=w.size()){
      |                    ~~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...