sorting.cpp: In function 'void Out(std::vector<long long int>)':
sorting.cpp:11:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,a,b) for(ll i=a; i<b; i++)
sorting.cpp:20:29:
void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}
~~~~~~~~~~~~
sorting.cpp:20:25: note: in expansion of macro 'REP'
void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}
^~~
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:28:19: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
S[X[i]] = c2; S[Y[i]] = c1;
^~
sorting.cpp:28:33: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
S[X[i]] = c2; S[Y[i]] = c1;
^~
sorting.cpp:35:16: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
P[i] = i; Q[i] = pos[i];
^
sorting.cpp:35:31: warning: conversion to 'int' from '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' may alter its value [-Wconversion]
P[i] = i; Q[i] = pos[i];
^
sorting.cpp:37:16: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
S[i] = c2; S[pos[i]] = c1;
^~
sorting.cpp:37:32: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
S[i] = c2; S[pos[i]] = c1;
^~