fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a,b,c;
  7.  
  8. cin >> a;
  9. cin >> b;
  10. cin >> c;
  11.  
  12. int i = 1;
  13. int computation;
  14.  
  15. while(i < 11)
  16. {
  17. computation = a * i * i - b * i + c
  18.  
  19. cout << "x=" << i << " " << "y=" << computation << endl;
  20. }
  21. }
  22. return 0;
  23. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
5
3
2
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:19:2: error: expected ‘;’ before ‘cout’
  cout << "x=" << i << " " << "y=" << computation << endl;
  ^~~~
prog.cpp: At global scope:
prog.cpp:22:2: error: expected unqualified-id before ‘return’
  return 0;
  ^~~~~~
prog.cpp:23:1: error: expected declaration before ‘}’ token
 }
 ^
stdout
Standard output is empty