JK.cpp: In function 'int main()':
JK.cpp:55:6: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &i : v){
^
JK.cpp:55:12: error: ISO C++ forbids declaration of 'i' with no type [-fpermissive]
for(auto &i : v){
^
JK.cpp:55:16: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for(auto &i : v){
^
JK.cpp:56:5: error: request for member 'first' in 'i', which is of non-class type 'int'
i.first = disj.find(i.first);
^
JK.cpp:56:25: error: request for member 'first' in 'i', which is of non-class type 'int'
i.first = disj.find(i.first);
^
JK.cpp:57:5: error: request for member 'second' in 'i', which is of non-class type 'int'
i.second = disj.find(i.second);
^
JK.cpp:57:26: error: request for member 'second' in 'i', which is of non-class type 'int'
i.second = disj.find(i.second);
^
JK.cpp:58:8: error: request for member 'first' in 'i', which is of non-class type 'int'
if(i.first > i.second) swap(i.first, i.second);
^
JK.cpp:58:18: error: request for member 'second' in 'i', which is of non-class type 'int'
if(i.first > i.second) swap(i.first, i.second);
^
JK.cpp:58:33: error: request for member 'first' in 'i', which is of non-class type 'int'
if(i.first > i.second) swap(i.first, i.second);
^
JK.cpp:58:42: error: request for member 'second' in 'i', which is of non-class type 'int'
if(i.first > i.second) swap(i.first, i.second);
^
JK.cpp:62:6: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &i : v){
^
JK.cpp:62:12: error: ISO C++ forbids declaration of 'i' with no type [-fpermissive]
for(auto &i : v){
^
JK.cpp:62:16: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for(auto &i : v){
^
JK.cpp:63:9: error: request for member 'second' in 'i', which is of non-class type 'int'
deg[i.second]++;
^
JK.cpp:64:9: error: request for member 'second' in 'i', which is of non-class type 'int'
gph[i.second].push_back(i.first);
^
JK.cpp:64:29: error: request for member 'first' in 'i', which is of non-class type 'int'
gph[i.second].push_back(i.first);
^
JK.cpp:81:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(tmp > k) tmp = k+1;
^
JK.cpp:85:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(tmp < k){
^
JK.cpp:96:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &j : gph[i]){
^
JK.cpp:96:15: error: ISO C++ forbids declaration of 'j' with no type [-fpermissive]
for(auto &j : gph[i]){
^
JK.cpp:96:19: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for(auto &j : gph[i]){
^
JK.cpp:99:10: warning: unused variable 'prvx' [-Wunused-variable]
lint prvx = x;
^