knapsack.cpp:2:28: warning: bad option '-favx2' to pragma 'optimize' [-Wpragmas]
2 | #pragma GCC optimize("avx2")
| ^
knapsack.cpp:12:48: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
12 | template<typename T> bool smin(T& a, const T& b) { if (b < a) { a = b; return true; } return false;}
| ^
knapsack.cpp:13:48: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
13 | template<typename T> bool smax(T& a, const T& b) { if (a < b) { a = b; return true; } return false;}
| ^
knapsack.cpp:14:82: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
14 | template <class A, class B> ostream &operator<<(ostream &out, const pair<A, B> &a){return out << a.first << " " << a.second;}
| ^
knapsack.cpp:15:67: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
15 | template<typename T> istream &operator>>(istream &in, vector<T> &v) { for (auto &x: v) in >> x; return in; }
| ^
knapsack.cpp:16:73: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
16 | template<typename T>ostream &operator<<(ostream &out, const vector<T> &v) { for (const T &x: v) out << x << ' ';return out;}
| ^
knapsack.cpp:25:35: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
25 | inline int gen_random(int l, int r) {
| ^
knapsack.cpp:28:16: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
28 | void pbit(int a) {
| ^
knapsack.cpp:31:13: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
31 | signed main() {
| ^
knapsack.cpp: In function 'int main()':
knapsack.cpp:8:18: warning: bad option '-favx2' to attribute 'optimize' [-Wattributes]
8 | #define int long long
| ^~~~
knapsack.cpp:43:54: note: in expansion of macro 'int'
43 | function<int(int, int)> f = [&](int i, int W) -> int {
| ^~~