제출 #1019856

#제출 시각아이디문제언어결과실행 시간메모리
1019856vjudge1Detecting Molecules (IOI16_molecules)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #define int long long using namespace std; int find_subset(int l, int u, vector <int> w) { if (l%w[0]==0) { return w; } else { return {}; } } signed main() { int t; cin >> t; while(t--) { solve(); } }

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

molecules.cpp: In function 'long long int find_subset(long long int, long long int, std::vector<long long int>)':
molecules.cpp:8:16: error: cannot convert 'std::vector<long long int>' to 'long long int' in return
    8 |         return w;
      |                ^
molecules.cpp: In function 'int main()':
molecules.cpp:18:9: error: 'solve' was not declared in this scope
   18 |         solve();
      |         ^~~~~