fork(1) download
  1. ////.................
  2. cout << napis[i-1];
  3. if (k > 2)
  4. cout << k;
  5.  
  6. else if (k == 2)
  7. cout << napis[i-1];
  8.  
  9.  
  10. ////..................
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
aabbbbccccccccdd
aaaabbbbbbccdddddddcc
compilation info
prog.cpp:2:13: error: ‘cout’ does not name a type
             cout << napis[i-1];
             ^~~~
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)
             ^~~~
stdout
Standard output is empty