Submission #783847

#TimeUsernameProblemLanguageResultExecution timeMemory
783847AlfraganusDetecting Molecules (IOI16_molecules)C++14
0 / 100
1 ms340 KiB
#include "molecules.h" // #include "grader.cpp" #include<bits/stdc++.h> using namespace std; vector<int> find_subset(int l, int u, vector<int> w) { vector<int> ans; if(u % w[0] == 0 and u / w[0] <= (int)w.size()) ans.resize(u / w[0]); for(int i = 0; i < ans.size(); i ++)ans[i] = i; return ans; }

Compilation message (stderr)

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:10:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |     for(int i = 0; i < ans.size(); i ++)ans[i] = i;
      |                    ~~^~~~~~~~~~~~
#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...