fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int k;
  6.  
  7. readln (k);
  8. if(k<4){
  9. cout<<0;
  10. }else{
  11. k:=k-3;
  12. cout<<k;
  13. }
  14. return 0;
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:5: error: ‘readln’ was not declared in this scope
     readln (k);
     ^~~~~~
prog.cpp:7:5: note: suggested alternative: ‘fread’
     readln (k);
     ^~~~~~
     fread
prog.cpp:11:7: error: expected primary-expression before ‘=’ token
     k:=k-3;
       ^
stdout
Standard output is empty