sorting.cpp: In function 'void Calc()':
sorting.cpp:31:6: warning: unused variable 'Mx' [-Wunused-variable]
int Mx = 0, ck = 0, i, j;
^~
sorting.cpp:31:14: warning: unused variable 'ck' [-Wunused-variable]
int Mx = 0, ck = 0, i, j;
^~
sorting.cpp:31:22: warning: unused variable 'i' [-Wunused-variable]
int Mx = 0, ck = 0, i, j;
^
sorting.cpp: In function 'int main()':
sorting.cpp:98:38: warning: unused variable 'c' [-Wunused-variable]
int t = D[i - 1][j] + Cost[j][i], c = 0;
^
sorting.cpp:113:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::pair<int, int> >::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", RR.size());
~~~~~~~~~^
sorting.cpp:114:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < RR.size(); i++)printf("%d %d\n", RR[i].first, RR[i].second);
~~^~~~~~~~~~~
sorting.cpp:61:12: warning: unused variable 'k' [-Wunused-variable]
int i, j, k;
^
sorting.cpp:62:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
sorting.cpp:64:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &ord[i].a);
~~~~~^~~~~~~~~~~~~~~~~