sails.cpp:7: warning: ignoring '#pragma warning ' [-Wunknown-pragmas]
7 | #pragma warning(suppress : 4996)
|
sails.cpp:14: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
14 | #pragma GCC optimization (unroll-loops)
|
sails.cpp:13:22: warning: '#pragma GCC optimize' is not a string or number [-Wpragmas]
13 | #pragma GCC optimize(Ofast)
| ^~~~~
sails.cpp:15:20: warning: '#pragma GCC option' is not a string [-Wpragmas]
15 | #pragma GCC target(avx,avx2,fma)
| ^~~
sails.cpp:16:20: warning: '#pragma GCC option' is not a string [-Wpragmas]
16 | #pragma GCC target(sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,tune=native)
| ^~~
sails.cpp:36:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
36 | #pragma GCC optimize("-fwhole-program")
| ^
sails.cpp:43:41: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
43 | #pragma GCC optimize("-fstrict-overflow")
| ^
sails.cpp:45:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
45 | #pragma GCC optimize("-fcse-skip-blocks")
| ^
sails.cpp:59:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
59 | #pragma GCC optimize("-funsafe-loop-optimizations")
| ^
sails.cpp:65:27: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
65 | inline string read_string() {
| ^
sails.cpp:65:27: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:65:27: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:65:27: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp:72:41: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
72 | template<typename T> inline void re(T& x) { x = 0; T f = 1; char ch = getchar(); while (!isdigit(ch)) { if (ch == '-') f = -1; ch = getchar(); } while (isdigit(ch)) { x = x * (1 << 1) + x * (1 << 3) + (ch - 48); ch = getchar(); } x *= f; }
| ^
sails.cpp:72:41: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:72:41: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:72:41: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp:73:57: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
73 | template<typename x, typename... y>void re(x& a, y&... b) { re(a); re(b...); }
| ^
sails.cpp:73:57: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:73:57: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:73:57: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp:74:40: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
74 | template<typename T> inline void ps(T x) { if (x < 0) { putchar('-'); x = -x; } if (x > 9) ps(x / 10); putchar(x % 10 + '0'); }
| ^
sails.cpp:74:40: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:74:40: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:74:40: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp:75:57: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
75 | template<typename x, typename... y>void ps(x& a, y&... b) { ps(a); putchar(' '); ps(b...); }
| ^
sails.cpp:75:57: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:75:57: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:75:57: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp:79:33: error: expected ']' before ')' token
79 | int N, NN = 1 << 16, t[(1 << 16)) + 5];
| ^
| ]
sails.cpp:80:29: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
80 | void modify(int i, int delta) {
| ^
sails.cpp:80:29: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:80:29: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:80:29: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp: In function 'void modify(int, int)':
sails.cpp:81:34: error: 't' was not declared in this scope
81 | for (; i <= NN; i += i & -i) t[i] += delta;
| ^
sails.cpp: At global scope:
sails.cpp:83:16: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
83 | int query(int i) {
| ^
sails.cpp:83:16: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:83:16: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:83:16: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp: In function 'int query(int)':
sails.cpp:85:35: error: 't' was not declared in this scope
85 | for (; i; i -= i & -i) sum += t[i];
| ^
sails.cpp: At global scope:
sails.cpp:88:15: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
88 | int find(int x) {
| ^
sails.cpp:88:15: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:88:15: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:88:15: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp: In function 'int find(int)':
sails.cpp:92:24: error: 't' was not declared in this scope
92 | if (j <= NN && t[j] >= x) {
| ^
sails.cpp: At global scope:
sails.cpp:100:12: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
100 | void smart() {
| ^
sails.cpp:100:12: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:100:12: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:100:12: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp: In function 'void smart()':
sails.cpp:106:50: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
106 | sort(ord.begin(), ord.end(), [&](int x, int y) {
| ^
sails.cpp:106:50: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:106:50: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:106:50: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
sails.cpp: At global scope:
sails.cpp:124:10: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
124 | int main() {
| ^
sails.cpp:124:10: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
sails.cpp:124:10: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
sails.cpp:124:10: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]