Language: C++

/*  Praney Rai
  IIT(ISM) Dhanbad */
// Welcome (:

#include <stdio.h>
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

using namespace __gnu_pbds;
using namespace std;

#define loop(i,a,b) for(ll i=(a); i<(b); i++)
#define rep(i, b) for(ll i=(0); i<(b); i++)
#define rep1(i, b) for (ll i=1; i<b; i++)
#define rrep(i, n) for(ll i=(n-1); i>=0; i--)
#define loopi(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define apac freopen("input.txt","r",stdin); freopen("output.txt","w",stdout)
#define fill(a,v)	memset(a, v, sizeof(a))
#define si(n)	scanf("%lld",&n)
#define sc(n)   scanf("%c",&n)
#define sd(n)   scanf("%lf",&n)
#define pln(x) 	printf("%lld\n", x)
#define pr(x) 	printf("%lld ", x)
#define nl	printf("\n")
#define all(x) x.begin(), x.end()
#define remax(a,b) (a)=max((a),(b));
#define remin(a,b) (a)=min((a),(b));
#define xx first
#define yy second
#define pb push_back
#define ppb pop_back
#define eb emplace_back
#define rtn return
#define exit exit(0)
#define sz(x) ((ll)(x).size())
#define Max(x,y) ((x)>(y)?(x):(y))
#define Min(x,y) ((x)<(y)?(x):(y))
#define Mid(s,e) (s+(e-s)/2)
#define Abs(a , b)	Max(a-b,b-a)
#define kuch cout << "kuch bhi\n"
#define debug(x) cout << #x << ": " << x << "\n"
#define fout(a, b) cout << fixed << setprecision((b)) << (a)
#ifdef _WIN32
	#define pc putchar
	#define gc getchar
#else
	#define pc putchar_unlocked
	#define gc getchar_unlocked
#endif

typedef long long ll;
typedef long double db;
typedef unsigned long long ull;
typedef std::string str;
typedef vector<ll> vi;
typedef pair<ll,ll> pll;
typedef vector<pll> vpll;
typedef vector<vi> MATRIX;

//const. list--->>>
const int MOD7 = int(1e9) + 7;
const int MOD9 = int(1e9) + 9;
const db Pi = 3.1415926535897932384626433832795;
const db eps = 0.000000001;
const ll Inf = 0x7FFFFFFFFFFFFFFF;

/* int dx[] = {1,-1,0,0} , dy[] = {0,0,1,-1}; */ // 4 Direction
/* int dx[] = {1,-1,0,0,1,1,-1,-1} , dy[] = {0,0,1,-1,1,-1,1,-1}; */ // 8 Direction
/* int dx[] = {1,-1,1,-1,2,2,-2,-2} , dy[] = {2,2,-2,-2,1,-1,1,-1}; */ // Knight Direction
/* int dx[] = {2,-2,1,1,-1,-1} , dy[] = {0,0,1,-1,1,-1}; */ // Hexagonal Direction

//Fast-I/O--->>>
inline str sin() {str s=""; while (1) {char c = gc(); if(c==' '|| c=='\n') break; s += c; } rtn s;}
inline ll in() {int n=0; ll x=0; char c = gc(); if(c == '-') n=1; while (c < '0' || c > '9') {c=gc(); if (c == '-') n = 1; }
	while (c >= '0' && c <= '9') {x = (x << 3) + (x << 1) + c - '0'; c = gc();} if (n) x = -x; rtn x;}
inline void put (ll a) {int n = (a < 0 ? 1 : 0); if (n) a = -a; char b[20]; int i = 0; do {b[i++] = a % 10 + '0'; a /= 10;}
	while (a); if (n) pc('-'); i--; while (i >= 0) pc(b[i--]); pc(' ');}
inline void putln(ll a) {int n = (a < 0 ? 1 : 0); if(n) a = -a; char b[20]; int i = 0; do{b[i++] = a % 10 + '0'; a /= 10;}
	while (a); if (n) pc('-'); i--; while (i >= 0) pc(b[i--]); pc('\n');}

//Other Utilities--->>>
inline ll fmm (ll a, ll b, ll m = MOD7) {ll r = 0; a %= m; b %= m; while (b > 0) {if (b & 1) {r += a; r %= m;} a += a; a %= m; b >>= 1;}rtn r % m;}
inline ll fme (ll a, ll b, ll m = MOD7) {ll r = 1; a %= m; while (b > 0) {if (b & 1){r *= a; r %= m;} a *= a; a %= m; b >>= 1;} rtn r % m;}
inline ll sfme (ll a, ll b, ll m = MOD7) {ll r = 1; a %= m; while (b > 0) {if (b & 1) r = fmm(r, a, m); a = fmm(a, a, m); b >>= 1;} rtn r % m;}
// For primefactorization after sieve
/*
bool v[nu]; int sp[nu];
void Sieve() {for (ll i = 2; i < nu; i += 2) sp[i] = 2; for (ll i = 3; i < nu; i += 2){if (!v[i]){sp[i] = i;
	for (ll j = i; (j*i) < nu; j += 2){if (!v[j*i])	v[j*i] = true, sp[j*i] = i;}}}}
vi fctz(ll k) {vi ans; while(k>1) {ans.push_back(sp[k]); k /= sp[k];} rtn ans;}
/*ll fact[1000001], invfact[1000001];
inline void init (ll MOD = MOD7){ll i; fact[0] = 1; for (i = 1; i <= 1000000; i++) fact[i] = (fact[i - 1] * i) % MOD;
	invfact[1000000] = fme (fact[1000000], MOD - 2, MOD); for (i = 1000000 - 1; i >= 0; i--) invfact[i] = (invfact[i + 1] * (i + 1)) % MOD;}
inline ll nCk (ll n, ll k, ll MOD = MOD7){rtn (((fact[n] * invfact[k]) % MOD) * invfact[n - k]) % MOD;}
inline ll nPk (ll n, ll k, ll MOD = MOD7){rtn ((fact[n] * invfact[k]) % MOD);}*/
//nCk in O(k)
ll NCK (ll n, ll k, ll MOD = MOD7) {ll res = 1; if (k > n - k) k = n - k; rep (i, k) {res *= (n - i); res /= (i+1);} rtn res % MOD;}
template <class T> T gcd (T a, T b) {if (b == 0) rtn a; rtn gcd (b, a % b);}
inline void eGCD(ll a, ll b, ll &x, ll &y) {if (b == 0) {x = 1, y = 0; rtn;} ll x1, y1; eGCD (b, a % b, x1, y1); x = y1; y = x1 - (a / b) * y1;}
template <class T> T lcm(T a, T b){rtn (a * b) / gcd(a, b);}
inline MATRIX mul (MATRIX &A, MATRIX &B, ll m = MOD7) {ll n = A.size(), i , j, k; MATRIX C(n, vector<ll>(n));
	for (i = 0; i < n; i++) for (j = 0; j < n; j++) for (k = 0; k < n; k++) C[i][j] = (C[i][j] + A[i][k] * B[k][j]) % m; rtn C;}
inline MATRIX Mpow (MATRIX &A, ll x, ll m = MOD7) {ll n = A.size(), i; MATRIX B(n, vi(n)); for (i = 0; i < n; i++) B[i][i] = 1;
	while (x > 0) {if (x % 2) B = mul (B, A, m); x /= 2; A = mul (A, A, m);} rtn B;}
inline bool isSub (str &txt, str &s) {int pos = -1; bool ok = true; for (int i = 0; ok && i!=s.size(); i++) {ok = (pos = txt.find(s[i], pos+1)) != string::npos;} rtn ok;}
inline int countOne (ll n) {int count = 0; while (n) {n = n & (n-1); count++;} rtn count;}
inline str srev (str &s){str demo = ""; for (int i = s.length() - 1; i >= 0; i--) demo += s[i]; rtn demo;}
inline str tb (ll i) {str ans = ""; str arr = "01"; while (i) {ans += arr[i%2]; i = i / 2;} rtn srev(ans);}
inline ll maxSub (ll a[],ll n) {ll e = -Inf, s = 0; rep (i, n) {s += a[i]; if (e < s) e = s; if (s < 0) s = 0;} rtn e;}
inline ll minSub (ll a[],ll n) {ll e = Inf, s = 0; rep (i, n) {s += a[i]; if (e > s) e = s; if(s > 0) s = 0;} rtn e;}
template<class T> inline T Pow(T a, ll b){T c(1); while (b) {if (b & 1) c *= a; a *= a, b >>= 1;} rtn c;}
inline ll pp(int x) {ll r = 1; rep (i, x) r = r * 2LL; rtn r;}
//seive of Eratosthenes(prime's marked with 0)
/*ll isPrime[1000100];
void pinit() {isPrime[0] = 1, isPrime[1] = 1; for (ll i = 2; i * i <= 1000100; i++) {if (!isPrime[i]) {for (ll j = i*i; j < 1000100; j += i) isPrime[j] = 1;}}}*/
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

const ll nu = 100100;

int main() {
	std::ios_base::sync_with_stdio(false);
	std::cin.tie(NULL);
	std::cout.tie(NULL);
	ll n = 0, m = 0, k = 0, lo = 0, hi = 0, mi = Inf, mx = -Inf, sum = 0, ans = 0, cnt=0, t = 0, v1 = 0, v2 = 0, x1 = 0, x2 = 0, x3 = 0, y1 = 0, y2 = 0, y3 = 0, curr = 0,
	q = 0, x = 0, y = 0, p = 0;
	str s, s1, s2;
	char c, c1, c2, *ptr;
	bool ok, okay;
	db dub=0;
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    cin >> n << x;
    cout << n * n - x;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:134:14: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'll' {aka 'long long int'})
  134 |     cin >> n << x;
      |     ~~~~~~~~ ^~ ~
      |         |       |
      |         |       ll {aka long long int}
      |         std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
a.cc:134:14: note: candidate: 'operator<<(int, ll {aka long long int})' (built-in)
  134 |     cin >> n << x;
      |     ~~~~~~~~~^~~~
a.cc:134:14: note:   no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
                 from a.cc:6:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
 1715 |     operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
  125 |     operator<<(byte __b, _IntegerType __shift) noexcept
      |     ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note:   template argument deduction/substitution failed:
a.cc:134:9: note:   cannot convert 'std::cin.std::basic_istream<char>::operator>>(n)' (type 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'}) to type 'std::byte'
  134 |     cin >> n << x;
      |     ~~~~^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
  763 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
 4077 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
 1687 |     operator<<(std::basic_ostream<_CharT, _Traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
                 from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
  339 |     operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
      |     ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
In file included from /usr/include/c++/14/memory:80,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
   70 |     operator<<(std::basic_ostream<_Ch, _Tr>& __os,
      |     ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
  563 |     operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
  573 |     operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
  579 |     operator<<(basic_ostream<char, _Traits>& __out, char __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
  134 |     cin >> n << x;
      |                 ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
  590 |     operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
  134 |     cin >> n << x;
      |                 ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
  595 |     operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
  134 |     cin >> n << x;
      |                 ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
  654 |     operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
      |     ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
  134 |     cin >> n << x;
      |                 ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
  307 |     operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
      |     ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note:   template argument deduction/substitution failed:
a.cc:134:17: note:   'std::basic_istream<char>::__istream_type'