제출 #425323

#제출 시각아이디문제언어결과실행 시간메모리
425323dreezyDetecting Molecules (IOI16_molecules)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "molecules.h" using namespace std; #define pb push_back vector<int> find_subset(int l, int u, vector<int> w) { vector<int> ans; if( w[0] == l){ ans.pb(0); } return return ans; } /***************/

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

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:12:12: error: expected primary-expression before 'return'
   12 |     return return ans;
      |            ^~~~~~
molecules.cpp:12:11: error: expected ';' before 'return'
   12 |     return return ans;
      |           ^~~~~~~
      |           ;