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