for(j = 0; j < k; j++) { for(i = 0; i < m; i++) { if(arr[j] == u[i]) { u1[x] = u[i]; v1[x] = v[i]; l1[x] = l[i]; x++; } else if(arr[j] == v[i]) { u1[x] = v[i]; v1[x] = u[i]; l1[x] = l[i]; x++; } }}
Standard input is empty
prog.cpp:1:1: error: expected unqualified-id before 'for' for(j = 0; j < k; j++) { ^ prog.cpp:1:12: error: 'j' does not name a type for(j = 0; j < k; j++) { ^ prog.cpp:1:19: error: 'j' does not name a type for(j = 0; j < k; j++) { ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!