Language: C++

//AUTHOR:BlackBox Inc.//
#include<bits/stdc++.h>
#include<unordered_map>
#include<tr1/unordered_map>
#define ll long long
#define ull unsigned long long
#define vi vector<int>
#define vlli vector<long long int>
#define vvi vector<vector<int>>
#define endl "\n"
#define vpii vector<pair<int,int>>
#define vs vector<string>
#define lin1(x) ll int x; x = scan();
#define lin2(x,y) ll int x, y; x = scan(), y = scan();
#define lin3(x,y,z) ll int x, y, z; x = scan(), y = scan(), z = scan();
#define pb(x) push_back(x)
#define makep(x,y) make_pair(x,y)
#define mx(a,b) (a)>(b)?(a):(b)
#define mn(a,b) (a)<(b)?(a):(b)
#define fori(s,e) for(i=s;i<=e;i++)
#define forj(s,e) for(j=s;j<=e;j++)
#define fork(s,e) for(k=s;k<=e;k++)
#define rep(i,s,e) for(int i=s;i<=e;i++)
#define brep(i,s,e) for(int i=s;i>=e;i--)
#define all(x) x.begin(),x.end()
#define mem(x,y) memset(x,y,sizeof(x));
#define bits1(x) __builtin_popcount(x)
#define pi 3.14159265358979323846264338327950
#define MOD7 1000000007
#define MOD9 1000000009
#define cn cin>>
#define co cout<<
#define fast std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
using namespace std;
using namespace std::tr1;

int main()
// {
// #ifndef RAHUL
//     freopen("input.txt","r",stdin);
//     freopen("output.txt","w",stdout);
// #endif

long long x;
cin>>x;
std::vector<int> v(x);

for (int i = 0; i < x; ++i)
{
	/* code */
	cin>>v[i];
}


std::vector<int> v2(x);
for (int i = 0; i < x; ++i)
{
	/* code */
	cin>>v2[i];
}

if(x==1){
	cout<<"0"<<endl;
}
else{
	int max1=INT_MIN;
for (int i = 0; i < x-1; ++i)
{
	/* code */
	for(int j=i+1;j<x;j++){
		max1=max(max1,(((v[i]+v[j])-(v2[i]+v2[j]))));
	}
}

cout<<max1<<endl;
}

return 0;

}


Compiler output:
a.cc:44:1: error: expected initializer before 'long'
   44 | long long x;
      | ^~~~
a.cc:45:1: error: 'cin' does not name a type; did you mean 'cn'?
   45 | cin>>x;
      | ^~~
      | cn
a.cc:46:20: error: 'x' was not declared in this scope
   46 | std::vector<int> v(x);
      |                    ^
a.cc:48:1: error: expected unqualified-id before 'for'
   48 | for (int i = 0; i < x; ++i)
      | ^~~
a.cc:48:17: error: 'i' does not name a type; did you mean 'vi'?
   48 | for (int i = 0; i < x; ++i)
      |                 ^
      |                 vi
a.cc:48:24: error: expected unqualified-id before '++' token
   48 | for (int i = 0; i < x; ++i)
      |                        ^~
a.cc:55:21: error: 'x' was not declared in this scope
   55 | std::vector<int> v2(x);
      |                     ^
a.cc:56:1: error: expected unqualified-id before 'for'
   56 | for (int i = 0; i < x; ++i)
      | ^~~
a.cc:56:17: error: 'i' does not name a type; did you mean 'vi'?
   56 | for (int i = 0; i < x; ++i)
      |                 ^
      |                 vi
a.cc:56:24: error: expected unqualified-id before '++' token
   56 | for (int i = 0; i < x; ++i)
      |                        ^~
a.cc:62:1: error: expected unqualified-id before 'if'
   62 | if(x==1){
      | ^~
a.cc:65:1: error: expected unqualified-id before 'else'
   65 | else{
      | ^~~~
a.cc:78:1: error: expected unqualified-id before 'return'
   78 | return 0;
      | ^~~~~~
a.cc:80:1: error: expected declaration before '}' token
   80 | }
      | ^