fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <clocale>
  4. using namespace std;
  5. int main()
  6. {
  7. setlocale (0, "Russian");
  8. int xbegin, xend;
  9. float Dx, y;
  10. cout<<"Введите xbegin и xend!";
  11. cin>>xbegin>>xend;
  12. Dx=((xend-xbegin)/10);
  13. do{
  14. if (xbegin<=-1)
  15. y=1;
  16. else if ((-1<xbegin)||(xbegin<=1))
  17. y=(9*xbegin*xbegin*xbegin*xbegin*xbegin);
  18. else
  19. y=(xbegin*xbegin)*8;
  20. cout<<xbegin<<y;
  21. xbegin=xbegin+Dx;
  22. while (xbegin<=xend)
  23. }
  24. return 0;
  25. }
  26.  
  27.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:23:1: error: expected primary-expression before '}' token
 }
 ^
prog.cpp:24:8: error: expected 'while' before numeric constant
 return 0;
        ^
prog.cpp:24:8: error: expected '(' before numeric constant
prog.cpp:24:9: error: expected ')' before ';' token
 return 0;
         ^
stdout
Standard output is empty