fork download
  1. #include <iostream>
  2. using namespace std;
  3. int x;
  4. int main() {
  5. cin >>x;
  6. int a=x*x;
  7. int b=x*x*x;
  8. cout<<a+b<<endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 5324KB
stdin
5
stdout
150