fork download
  1. for(j = 0; j < k; j++) {
  2. for(i = 0; i < m; i++) {
  3. if(arr[j] == u[i]) {
  4. u1[x] = u[i];
  5. v1[x] = v[i];
  6. l1[x] = l[i];
  7. x++;
  8. } else if(arr[j] == v[i]) {
  9. u1[x] = v[i];
  10. v1[x] = u[i];
  11. l1[x] = l[i];
  12. x++;
  13. }
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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++) {
                   ^
stdout
Standard output is empty