molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:19:14: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'push_back'
19 | a[i].push_back({w[i] i});
| ^~~~~~~~~
molecules.cpp:19:30: error: expected '}' before 'i'
19 | a[i].push_back({w[i] i});
| ~ ^
molecules.cpp:19:29: error: expected ')' before 'i'
19 | a[i].push_back({w[i] i});
| ~ ^~
| )
molecules.cpp:19:32: error: expected primary-expression before ')' token
19 | a[i].push_back({w[i] i});
| ^
molecules.cpp:20:5: warning: no return statement in function returning non-void [-Wreturn-type]
20 | }
| ^
molecules.cpp: At global scope:
molecules.cpp:21:9: error: expected constructor, destructor, or type conversion before '(' token
21 | sort(a.begin(), a.end());
| ^
molecules.cpp:23:24: error: 'n' was not declared in this scope
23 | vector<int> suffix(n), ans;
| ^
molecules.cpp:24:5: error: 'suffix' does not name a type
24 | suffix[n-1] = a[n-1];
| ^~~~~~
molecules.cpp:26:5: error: expected unqualified-id before 'for'
26 | for(int i=n-2; i>=0; --i){
| ^~~
molecules.cpp:26:20: error: 'i' does not name a type
26 | for(int i=n-2; i>=0; --i){
| ^
molecules.cpp:26:26: error: expected unqualified-id before '--' token
26 | for(int i=n-2; i>=0; --i){
| ^~
molecules.cpp:32:5: error: expected unqualified-id before 'for'
32 | for(int i=0; i<n; ++i){
| ^~~
molecules.cpp:32:20: error: 'n' was not declared in this scope
32 | for(int i=0; i<n; ++i){
| ^
molecules.cpp:32:20: error: 'n' was not declared in this scope
molecules.cpp:32:20: error: 'n' was not declared in this scope
molecules.cpp:32:20: error: 'n' was not declared in this scope
molecules.cpp:32:20: error: 'n' was not declared in this scope
molecules.cpp:32:20: error: 'n' was not declared in this scope
molecules.cpp:32:20: error: 'n' was not declared in this scope
molecules.cpp:32:20: error: 'n' was not declared in this scope
molecules.cpp:32:20: error: 'n' was not declared in this scope
molecules.cpp:32:18: error: 'i' does not name a type
32 | for(int i=0; i<n; ++i){
| ^
molecules.cpp:32:23: error: expected unqualified-id before '++' token
32 | for(int i=0; i<n; ++i){
| ^~
molecules.cpp:63:5: error: expected unqualified-id before 'return'
63 | return ans;
| ^~~~~~
molecules.cpp:64:1: error: expected declaration before '}' token
64 | }
| ^
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
| ^~~~