fork download
  1. #include <bits/stdc++.h>
  2. #define ll long long
  3. using namespace std;
  4. int main()
  5. {
  6. long long x;
  7. cin >> x;
  8. cout << x*x + 2*x + 1 ;
  9. return 0;
  10. }
Success #stdin #stdout 0s 5324KB
stdin
5
stdout
36