fork download
  1. #include <iostream>
  2. #include < cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a = 0 ;
  7. int b = 0 ;
  8. int c = 0 ;
  9. int x = 1 ;
  10. int y = 0 ;
  11. cin >> a
  12. cin >> b
  13. cin >> c
  14.  
  15. while (x <= 10 ) {
  16. y= (a * pow(x,2) -( b * x) + c );
  17. x = x + 1 ;
  18. }
  19. cout << y << endl ;
  20. }
  21.  
  22.  
  23. return 0;
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:18: fatal error:  cmath: No such file or directory
 #include < cmath>
                  ^
compilation terminated.
stdout
Standard output is empty