combo.cpp:4:55: warning: bad option '-f O2' to pragma 'optimize' [-Wpragmas]
4 | #pragma GCC optimize("O1, O2, O3, Ofast, unroll-loops")
| ^
combo.cpp:4:55: warning: bad option '-f O3' to pragma 'optimize' [-Wpragmas]
combo.cpp:4:55: warning: bad option '-f Ofast' to pragma 'optimize' [-Wpragmas]
combo.cpp:4:55: warning: bad option '-f unroll-loops' to pragma 'optimize' [-Wpragmas]
In file included from combo.cpp:7:
combo.h:5:33: warning: bad option '-f O2' to attribute 'optimize' [-Wattributes]
5 | std::string guess_sequence(int N);
| ^
combo.h:5:33: warning: bad option '-f O3' to attribute 'optimize' [-Wattributes]
combo.h:5:33: warning: bad option '-f Ofast' to attribute 'optimize' [-Wattributes]
combo.h:5:33: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
combo.h:5:33: warning: bad option '-f O2' to attribute 'optimize' [-Wattributes]
combo.h:5:33: warning: bad option '-f O3' to attribute 'optimize' [-Wattributes]
combo.h:5:33: warning: bad option '-f Ofast' to attribute 'optimize' [-Wattributes]
combo.h:5:33: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
combo.h:7:24: warning: bad option '-f O2' to attribute 'optimize' [-Wattributes]
7 | int press(std::string p);
| ^
combo.h:7:24: warning: bad option '-f O3' to attribute 'optimize' [-Wattributes]
combo.h:7:24: warning: bad option '-f Ofast' to attribute 'optimize' [-Wattributes]
combo.h:7:24: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
combo.h:7:24: warning: bad option '-f O2' to attribute 'optimize' [-Wattributes]
combo.h:7:24: warning: bad option '-f O3' to attribute 'optimize' [-Wattributes]
combo.h:7:24: warning: bad option '-f Ofast' to attribute 'optimize' [-Wattributes]
combo.h:7:24: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
combo.cpp:48:28: warning: bad option '-f O2' to attribute 'optimize' [-Wattributes]
48 | string guess_sequence(int N) {
| ^
combo.cpp:48:28: warning: bad option '-f O3' to attribute 'optimize' [-Wattributes]
combo.cpp:48:28: warning: bad option '-f Ofast' to attribute 'optimize' [-Wattributes]
combo.cpp:48:28: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:86:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
86 | if (press(cur) == ans.size() + 1)
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
combo.cpp:91:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | if (press(cur) == ans.size() + 1)
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~