messy.cpp:30:21: error: macro "REP" requires 3 arguments, but only 1 given
30 | REP(auto u : can) {
| ^
messy.cpp:6: note: macro "REP" defined here
6 | #define REP(a,i,n) for (ll i=a;i<n;i++)
|
messy.cpp:33:20: error: macro "REP" requires 3 arguments, but only 1 given
33 | REP(auto u: can) {
| ^
messy.cpp:6: note: macro "REP" defined here
6 | #define REP(a,i,n) for (ll i=a;i<n;i++)
|
messy.cpp: In function 'int adds(int, int, int)':
messy.cpp:11:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
11 | if (lo==hi) return;
| ^~~~~~
messy.cpp: In function 'void solve(int, std::vector<int>, int, int)':
messy.cpp:30:5: error: 'REP' was not declared in this scope
30 | REP(auto u : can) {
| ^~~
messy.cpp:33:8: error: expected ';' before '{' token
33 | REP(auto u: can) {
| ^ ~
| ;
messy.cpp: In function 'int adds(int, int, int)':
messy.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type]
21 | }
| ^
messy.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
messy_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~