pipes.cpp: In function 'void sub2::solve()':
pipes.cpp:20:13: error: expected primary-expression before 'long'
20 | #define int long long
| ^~~~
pipes.cpp:19:16: note: in expansion of macro 'int'
19 | #define szz(s) int(s.size())
| ^~~
pipes.cpp:62:15: note: in expansion of macro 'szz'
62 | while(szz(q)){
| ^~~
pipes.cpp:62:15: error: expected ')' before 'long'
62 | while(szz(q)){
| ~^
| )
pipes.cpp:20:13: error: expected primary-expression before 'long'
20 | #define int long long
| ^~~~
pipes.cpp:19:16: note: in expansion of macro 'int'
19 | #define szz(s) int(s.size())
| ^~~
pipes.cpp:62:15: note: in expansion of macro 'szz'
62 | while(szz(q)){
| ^~~
pipes.cpp:20:13: error: expected primary-expression before 'long'
20 | #define int long long
| ^~~~
pipes.cpp:15:42: note: in definition of macro 'FOR'
15 | #define FOR(i, a, b) for(int i = a; i <= b; ++i)
| ^
pipes.cpp:19:16: note: in expansion of macro 'int'
19 | #define szz(s) int(s.size())
| ^~~
pipes.cpp:89:19: note: in expansion of macro 'szz'
89 | FOR(i, 0, szz(st) - 2){
| ^~~
pipes.cpp:20:13: error: expected ';' before 'long'
20 | #define int long long
| ^~~~
pipes.cpp:15:42: note: in definition of macro 'FOR'
15 | #define FOR(i, a, b) for(int i = a; i <= b; ++i)
| ^
pipes.cpp:19:16: note: in expansion of macro 'int'
19 | #define szz(s) int(s.size())
| ^~~
pipes.cpp:89:19: note: in expansion of macro 'szz'
89 | FOR(i, 0, szz(st) - 2){
| ^~~
pipes.cpp:20:13: error: expected primary-expression before 'long'
20 | #define int long long
| ^~~~
pipes.cpp:15:42: note: in definition of macro 'FOR'
15 | #define FOR(i, a, b) for(int i = a; i <= b; ++i)
| ^
pipes.cpp:19:16: note: in expansion of macro 'int'
19 | #define szz(s) int(s.size())
| ^~~
pipes.cpp:89:19: note: in expansion of macro 'szz'
89 | FOR(i, 0, szz(st) - 2){
| ^~~
pipes.cpp:20:13: error: expected ')' before 'long'
20 | #define int long long
| ^~~~
pipes.cpp:15:42: note: in definition of macro 'FOR'
15 | #define FOR(i, a, b) for(int i = a; i <= b; ++i)
| ^
pipes.cpp:19:16: note: in expansion of macro 'int'
19 | #define szz(s) int(s.size())
| ^~~
pipes.cpp:89:19: note: in expansion of macro 'szz'
89 | FOR(i, 0, szz(st) - 2){
| ^~~
pipes.cpp:15:25: note: to match this '('
15 | #define FOR(i, a, b) for(int i = a; i <= b; ++i)
| ^
pipes.cpp:89:9: note: in expansion of macro 'FOR'
89 | FOR(i, 0, szz(st) - 2){
| ^~~
pipes.cpp:20:13: error: expected primary-expression before 'long'
20 | #define int long long
| ^~~~
pipes.cpp:15:42: note: in definition of macro 'FOR'
15 | #define FOR(i, a, b) for(int i = a; i <= b; ++i)
| ^
pipes.cpp:19:16: note: in expansion of macro 'int'
19 | #define szz(s) int(s.size())
| ^~~
pipes.cpp:89:19: note: in expansion of macro 'szz'
89 | FOR(i, 0, szz(st) - 2){
| ^~~
pipes.cpp:89:13: error: 'i' was not declared in this scope
89 | FOR(i, 0, szz(st) - 2){
| ^
pipes.cpp:15:47: note: in definition of macro 'FOR'
15 | #define FOR(i, a, b) for(int i = a; i <= b; ++i)
| ^
pipes.cpp: In function 'int main()':
pipes.cpp:17:47: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | #define inp(name) if(fopen(name, "r")) freopen(name, "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~
pipes.cpp:121:5: note: in expansion of macro 'inp'
121 | inp("in.txt");
| ^~~