fork download
  1. ////.................
  2. cout << napis[i-1];
  3. switch (k){
  4. case 1: break;
  5. case 2: cout << napis[i-1]; break;
  6. default: cout << k; break;
  7. }
  8.  
  9. ////..................
  10.  
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 ‘switch’
             switch (k){
             ^~~~~~
stdout
Standard output is empty