sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:69:73: warning: declaration of 'i' shadows a previous local [-Wshadow]
if(DEBUG){cout<<"Before:\n"; watch(ptr); watch(tu); watch(tv); forn(i,0,n) cout<<"loc["<<i<<"]="<<loc[i]<<'\n'; forn(i,0,n) cout<<a[i]<<" "; cout<<"\n\n"; }
^
sorting.cpp:11:29: note: in definition of macro 'forn'
#define forn(i,a,b) for(int i=(a);i<(b);i++)
^
sorting.cpp:59:11: note: shadowed declaration is here
for(int i=0;i<=mid;i++){
^
sorting.cpp:69:122: warning: declaration of 'i' shadows a previous local [-Wshadow]
if(DEBUG){cout<<"Before:\n"; watch(ptr); watch(tu); watch(tv); forn(i,0,n) cout<<"loc["<<i<<"]="<<loc[i]<<'\n'; forn(i,0,n) cout<<a[i]<<" "; cout<<"\n\n"; }
^
sorting.cpp:11:29: note: in definition of macro 'forn'
#define forn(i,a,b) for(int i=(a);i<(b);i++)
^
sorting.cpp:59:11: note: shadowed declaration is here
for(int i=0;i<=mid;i++){
^
sorting.cpp:72:72: warning: declaration of 'i' shadows a previous local [-Wshadow]
if(DEBUG){cout<<"After:\n"; watch(ptr); watch(tu); watch(tv); forn(i,0,n) cout<<"loc["<<i<<"]="<<loc[i]<<'\n'; forn(i,0,n) cout<<a[i]<<" "; cout<<"\n\n"; }
^
sorting.cpp:11:29: note: in definition of macro 'forn'
#define forn(i,a,b) for(int i=(a);i<(b);i++)
^
sorting.cpp:59:11: note: shadowed declaration is here
for(int i=0;i<=mid;i++){
^
sorting.cpp:72:121: warning: declaration of 'i' shadows a previous local [-Wshadow]
if(DEBUG){cout<<"After:\n"; watch(ptr); watch(tu); watch(tv); forn(i,0,n) cout<<"loc["<<i<<"]="<<loc[i]<<'\n'; forn(i,0,n) cout<<a[i]<<" "; cout<<"\n\n"; }
^
sorting.cpp:11:29: note: in definition of macro 'forn'
#define forn(i,a,b) for(int i=(a);i<(b);i++)
^
sorting.cpp:59:11: note: shadowed declaration is here
for(int i=0;i<=mid;i++){
^