fork(1) download
  1. ////.................
  2.  
  3. if (k > 2)
  4. cout << napis[i-1] << k;
  5.  
  6. else if (k == 2)
  7. cout << napis[i-1] << napis[i-1];
  8.  
  9. else
  10. cout << napis[i-1];
  11. ////..................
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
aabbbbccccccccdd
aaaabbbbbbccdddddddcc
compilation info
prog.cpp:3:13: error: expected unqualified-id before ‘if’
             if (k > 2)
             ^~
prog.cpp:6:13: error: expected unqualified-id before ‘else’
             else if (k == 2)
             ^~~~
prog.cpp:9:13: error: expected unqualified-id before ‘else’
             else
             ^~~~
stdout
Standard output is empty