commuter_pass.cpp:47:54: error: stray '#' in program
47 | #pragma GCC optimize("-fdelete-null-pointer-checks") #include<bits/stdc++.h>
| ^
commuter_pass.cpp:22:39: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
22 | #pragma GCC optimize("-fwhole-program")
| ^
commuter_pass.cpp:29:41: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
29 | #pragma GCC optimize("-fstrict-overflow")
| ^
commuter_pass.cpp:31:41: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
31 | #pragma GCC optimize("-fcse-skip-blocks")
| ^
commuter_pass.cpp:45:51: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
45 | #pragma GCC optimize("-funsafe-loop-optimizations")
| ^
commuter_pass.cpp:47:55: error: '#pragma GCC optimize' string is badly formed
47 | #pragma GCC optimize("-fdelete-null-pointer-checks") #include<bits/stdc++.h>
| ^~~~~~~
commuter_pass.cpp:75:14: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
75 | void suncuti() {
| ^
commuter_pass.cpp:75:14: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:75:14: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:75:14: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp: In function 'void suncuti()':
commuter_pass.cpp:76:5: error: 'ios_base' has not been declared
76 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
commuter_pass.cpp:77:5: error: 'cin' was not declared in this scope
77 | cin.tie(nullptr);
| ^~~
commuter_pass.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | #pragma GCC target("avx")
commuter_pass.cpp:78:5: error: 'cout' was not declared in this scope
78 | cout.tie(nullptr);
| ^~~~
commuter_pass.cpp:78:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
commuter_pass.cpp: At global scope:
commuter_pass.cpp:81:10: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
81 | void fre() {
| ^
commuter_pass.cpp:81:10: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:81:10: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:81:10: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp: In function 'void fre()':
commuter_pass.cpp:82:8: error: 'fopen' was not declared in this scope
82 | if(fopen("name.INP", "r")) {
| ^~~~~
commuter_pass.cpp:1:1: note: 'fopen' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | #pragma GCC target("avx")
commuter_pass.cpp:83:34: error: 'stdin' was not declared in this scope
83 | freopen("name.INP", "r", stdin);
| ^~~~~
commuter_pass.cpp:83:34: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
commuter_pass.cpp:83:9: error: 'freopen' was not declared in this scope
83 | freopen("name.INP", "r", stdin);
| ^~~~~~~
commuter_pass.cpp:84:34: error: 'stdout' was not declared in this scope
84 | freopen("name.OUT", "w", stdout);
| ^~~~~~
commuter_pass.cpp:84:34: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
commuter_pass.cpp: At global scope:
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:1:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
+++ |+#include <utility>
1 | #pragma GCC target("avx")
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:90:4: note: in expansion of macro 'pii'
90 | vt<pii>kt[maxn];
| ^~~
commuter_pass.cpp:68:12: error: 'vector' does not name a type
68 | #define vt vector
| ^~~~~~
commuter_pass.cpp:90:1: note: in expansion of macro 'vt'
90 | vt<pii>kt[maxn];
| ^~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:94:5: note: in expansion of macro 'pii'
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:94:1: error: 'map' does not name a type
94 | map<pii, int>seen;
| ^~~
commuter_pass.cpp:98:10: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
98 | void dij() {
| ^
commuter_pass.cpp:98:10: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:98:10: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:98:10: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp: In function 'void dij()':
commuter_pass.cpp:99:5: error: 'fill' was not declared in this scope; did you mean 'fi'?
99 | fill(dp, dp + maxn, 1e18);
| ^~~~
| fi
commuter_pass.cpp:100:5: error: 'memset' was not declared in this scope
100 | memset(trace, -1, sizeof(trace));
| ^~~~~~
commuter_pass.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+++ |+#include <cstring>
1 | #pragma GCC target("avx")
commuter_pass.cpp:67:13: error: 'pair' was not declared in this scope
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:102:20: note: in expansion of macro 'pii'
102 | priority_queue<pii, vt<pii>, greater<pii>>q;
| ^~~
commuter_pass.cpp:67:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
67 | #define pii pair<int, int>
| ^~~~
commuter_pass.cpp:102:20: note: in expansion of macro 'pii'
102 | priority_queue<pii, vt<pii>, greater<pii>>q;
| ^~~
commuter_pass.cpp:102:5: error: 'priority_queue' was not declared in this scope
102 | priority_queue<pii, vt<pii>, greater<pii>>q;
| ^~~~~~~~~~~~~~
commuter_pass.cpp:1:1: note: 'std::priority_queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
+++ |+#include <queue>
1 | #pragma GCC target("avx")
commuter_pass.cpp:48:13: error: expected primary-expression before 'long'
48 | #define int long long
| ^~~~
commuter_pass.cpp:67:18: note: in expansion of macro 'int'
67 | #define pii pair<int, int>
| ^~~
commuter_pass.cpp:102:20: note: in expansion of macro 'pii'
102 | priority_queue<pii, vt<pii>, greater<pii>>q;
| ^~~
commuter_pass.cpp:103:5: error: 'q' was not declared in this scope
103 | q.push({0, A});
| ^
commuter_pass.cpp:107:19: error: 'u' was not declared in this scope
107 | if(c > dp[u]) continue;
| ^
commuter_pass.cpp:108:22: error: 'kt' was not declared in this scope; did you mean 'st'?
108 | for(auto v : kt[u]) {
| ^~
| st
commuter_pass.cpp:108:25: error: 'u' was not declared in this scope
108 | for(auto v : kt[u]) {
| ^
commuter_pass.cpp: At global scope:
commuter_pass.cpp:68:12: error: 'vector' does not name a type
68 | #define vt vector
| ^~~~~~
commuter_pass.cpp:119:1: note: in expansion of macro 'vt'
119 | vt<int>path;
| ^~
commuter_pass.cpp:121:10: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
121 | void bfs() {
| ^
commuter_pass.cpp:121:10: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:121:10: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:121:10: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp: In function 'void bfs()':
commuter_pass.cpp:122:5: error: 'fill' was not declared in this scope; did you mean 'fi'?
122 | fill(dp, dp + maxn, 1e18);
| ^~~~
| fi
commuter_pass.cpp:124:5: error: 'deque' was not declared in this scope
124 | deque<int>d;
| ^~~~~
commuter_pass.cpp:1:1: note: 'std::deque' is defined in header '<deque>'; did you forget to '#include <deque>'?
+++ |+#include <deque>
1 | #pragma GCC target("avx")
commuter_pass.cpp:48:13: error: expected primary-expression before 'long'
48 | #define int long long
| ^~~~
commuter_pass.cpp:124:11: note: in expansion of macro 'int'
124 | deque<int>d;
| ^~~
commuter_pass.cpp:125:5: error: 'd' was not declared in this scope
125 | d.pf(C);
| ^
commuter_pass.cpp:129:22: error: 'kt' was not declared in this scope; did you mean 'st'?
129 | for(auto v : kt[u]) {
| ^~
| st
commuter_pass.cpp:131:16: error: 'seen' was not declared in this scope; did you mean 'se'?
131 | if(seen[{v.fi, u}] || seen[{u, v.fi}]) cost = cost;
| ^~~~
| se
commuter_pass.cpp: At global scope:
commuter_pass.cpp:142:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
142 | main() {
| ^~~~
commuter_pass.cpp:142:6: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
142 | main() {
| ^
commuter_pass.cpp:142:6: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:142:6: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp:142:6: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
commuter_pass.cpp: In function 'int main()':
commuter_pass.cpp:145:5: error: 'cin' was not declared in this scope
145 | cin >> n >> m;
| ^~~
commuter_pass.cpp:145:5: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
commuter_pass.cpp:156:9: error: 'kt' was not declared in this scope; did you mean 'st'?
156 | kt[u].pb({v, w});
| ^~
| st
commuter_pass.cpp:166:9: error: 'path' was not declared in this scope
166 | path.pb(kit);
| ^~~~
commuter_pass.cpp:170:13: error: 'path' was not declared in this scope
170 | reverse(path.begin(), path.end());
| ^~~~
commuter_pass.cpp:170:5: error: 'reverse' was not declared in this scope
170 | reverse(path.begin(), path.end());
| ^~~~~~~
commuter_pass.cpp:174:9: error: 'seen' was not declared in this scope; did you mean 'se'?
174 | seen[{path[i], path[i - 1]}] = seen[{path[i - 1], path[i]}] = 1;
| ^~~~
| se
commuter_pass.cpp:179:5: error: 'cout' was not declared in this scope
179 | cout << dp[D];
| ^~~~
commuter_pass.cpp:179:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?