fork download
  1. #include <SFML/System.hpp>
  2. #include <iostream>
  3.  
  4. int main()
  5. {
  6. sf::Clock Clock;
  7. while (Clock.GetElapsedTime() < 5.f)
  8. {
  9. std::cout << Clock.GetElapsedTime() << std::endl;
  10. sf::Sleep(0.5f);
  11. }
  12.  
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:27: error: SFML/System.hpp: No such file or directory
prog.cpp: In function ‘int main()’:
prog.cpp:6: error: ‘sf’ has not been declared
prog.cpp:6: error: expected `;' before ‘Clock’
prog.cpp:7: error: ‘Clock’ was not declared in this scope
prog.cpp:10: error: ‘sf’ has not been declared
stdout
Standard output is empty