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 0.01s 5312KB
stdin
-1
stdout
Standard output is empty