fork download
  1. #include <cmath>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. const int N = 10;
  8.  
  9. const float h = 1.0f/N;
  10. float x = 0.0f;
  11.  
  12. // to `do` fortrana bedzie zdaje sie takie:
  13. for (int i = 1; i <= N; ++i) {
  14. x *= h;
  15. cout << sin(x) << " ";
  16. cin.get();
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:15: error: ‘cout’ was not declared in this scope
prog.cpp:16: error: ‘cin’ was not declared in this scope
prog.cpp:16: error: expected `}' at end of input
prog.cpp:16: error: expected `}' at end of input
stdout
Standard output is empty