foo.cpp: In function 'void Solve()':
foo.cpp:5:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
#define MIN(a,b)((a) > (b) ? (b) : (a))
^
foo.cpp:20:8: note: in expansion of macro 'MIN'
r[v] = MIN(r[v] , cost) ;
^
foo.cpp:5:38: error: operands to ?: have different types 'int' and 'int*'
#define MIN(a,b)((a) > (b) ? (b) : (a))
^
foo.cpp:20:8: note: in expansion of macro 'MIN'
r[v] = MIN(r[v] , cost) ;
^
foo.cpp:5:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
#define MIN(a,b)((a) > (b) ? (b) : (a))
^
foo.cpp:21:8: note: in expansion of macro 'MIN'
r[v] = MIN(r[v] , cost) ;
^
foo.cpp:5:38: error: operands to ?: have different types 'int' and 'int*'
#define MIN(a,b)((a) > (b) ? (b) : (a))
^
foo.cpp:21:8: note: in expansion of macro 'MIN'
r[v] = MIN(r[v] , cost) ;
^