Submission #1259377

#TimeUsernameProblemLanguageResultExecution timeMemory
1259377sofppDetecting Molecules (IOI16_molecules)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "molecules.h" using namespace std; std::vector<int> find_subset(int l, int u, std::vector<int> w){ //wi = vector<int> answer; int tw, cnt=0, idx=0, n=w.size(); tw=n*w[0]; //cout<<"YES HERE: "<<(u-l+1)<<" "<<tw<<endl; if(l>tw) return answer; while(cnt<l){ answer.emplace_back(idx); idx++; cnt+=w[0]; } if() return answer; }

Compilation message (stderr)

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:17:8: error: expected primary-expression before ')' token
   17 |     if()
      |        ^
molecules.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
molecules.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
molecules_c.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~