shortcut.cpp: In function 'void Out(std::vector<int>)':
shortcut.cpp:15:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,a,b) for(ll i=a; i<b; i++)
shortcut.cpp:24:29:
void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}
~~~~~~~~~~~~
shortcut.cpp:24:25: note: in expansion of macro 'REP'
void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}
^~~
shortcut.cpp: In member function 'll WG::Djikstra(ll)':
shortcut.cpp:46:43: warning: overflow in implicit constant conversion [-Woverflow]
vector<ll> d; REP(i,0,N) {d.pb(INF);}
^
shortcut.cpp:15:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,a,b) for(ll i=a; i<b; i++)
shortcut.cpp:56:17:
REP(i,0,adj[cur].size())
~~~~~~~~~~~~~~~~~~~
shortcut.cpp:56:13: note: in expansion of macro 'REP'
REP(i,0,adj[cur].size())
^~~
shortcut.cpp: In function 'll find_shortcut(int, std::vector<int>, std::vector<int>, int)':
shortcut.cpp:69:4: error: ambiguating new declaration of 'll find_shortcut(int, std::vector<int>, std::vector<int>, int)'
ll find_shortcut(int n, std::vector<int> lll, std::vector<int> ddd, int ccc)
^~~~~~~~~~~~~
In file included from shortcut.cpp:10:0:
shortcut.h:4:11: note: old declaration 'long long int find_shortcut(int, std::vector<int>, std::vector<int>, int)'
long long find_shortcut(int n, std::vector <int> l, std::vector <int> d, int c);
^~~~~~~~~~~~~
shortcut.cpp:15:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,a,b) for(ll i=a; i<b; i++)
shortcut.cpp:74:9:
REP(i,0,lll.size()) {l.pb((ll) lll[i]);}
~~~~~~~~~~~~~~
shortcut.cpp:74:5: note: in expansion of macro 'REP'
REP(i,0,lll.size()) {l.pb((ll) lll[i]);}
^~~
shortcut.cpp:15:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,a,b) for(ll i=a; i<b; i++)
shortcut.cpp:75:9:
REP(i,0,ddd.size()) {r.pb((ll) ddd[i]);}
~~~~~~~~~~~~~~
shortcut.cpp:75:5: note: in expansion of macro 'REP'
REP(i,0,ddd.size()) {r.pb((ll) ddd[i]);}
^~~
shortcut.cpp:15:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,a,b) for(ll i=a; i<b; i++)
shortcut.cpp:77:9:
REP(i,0,l.size())
~~~~~~~~~~~~
shortcut.cpp:77:5: note: in expansion of macro 'REP'
REP(i,0,l.size())
^~~
shortcut.cpp:15:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,a,b) for(ll i=a; i<b; i++)
shortcut.cpp:82:9:
REP(i,0,r.size())
~~~~~~~~~~~~
shortcut.cpp:82:5: note: in expansion of macro 'REP'
REP(i,0,r.size())
^~~
shortcut.cpp:21:13: warning: overflow in implicit constant conversion [-Woverflow]
#define INF 100000000000000000LL
^
shortcut.cpp:88:12: note: in expansion of macro 'INF'
ll ans=INF;
^~~
shortcut.cpp:21:13: warning: overflow in implicit constant conversion [-Woverflow]
#define INF 100000000000000000LL
^
shortcut.cpp:95:21: note: in expansion of macro 'INF'
ll mav=-INF; REP(i,0,2*N) {mav=max(mav,G.Djikstra(i));}
^~~