fork download
  1. int main() {#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
180 1
compilation info
prog.cpp:1:13: error: stray ‘#’ in program
 int main() {#include <iostream>
             ^
prog.cpp: In function ‘int main()’:
prog.cpp:1:14: error: ‘include’ was not declared in this scope
 int main() {#include <iostream>
              ^~~~~~~
prog.cpp:1:23: error: ‘iostream’ was not declared in this scope
 int main() {#include <iostream>
                       ^~~~~~~~
prog.cpp:2:1: error: expected primary-expression before ‘using’
 using namespace std;
 ^~~~~
prog.cpp:4:12: error: a function-definition is not allowed here before ‘{’ token
 int main() {
            ^
prog.cpp:18:1: error: expected ‘}’ at end of input
 }
 ^
prog.cpp:1:12: note: to match this ‘{’
 int main() {#include <iostream>
            ^
stdout
Standard output is empty