fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float s;
  6. float t;
  7. float v;
  8. cin>>s;
  9. cin>>t;
  10. v=s/t;
  11. cout<<v;
  12. if (v>150)
  13. {cout<<"duża prędkość";}
  14. else
  15. {cout<<"mała prędkość"
  16. // your code goes here
  17. return 0;
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:15:28: error: expected ‘;’ before ‘return’
  {cout<<"mała prędkość"
                            ^
                            ;
prog.cpp:17:2:
  return 0;
  ~~~~~~                     
prog.cpp:18:1: error: expected ‘}’ at end of input
 }
 ^
prog.cpp:4:12: note: to match this ‘{’
 int main() {
            ^
stdout
Standard output is empty