Language: C++

const int MAX=1e5;

int main(){
	lli a[7];
	rep(i,7)cin>>a[i];
	lli ans=0;
	lli i=a[0]%2,j=a[3]%2,l=a[4]%2;
	if(i==0&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4];
	if(i==1&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
	if(i==0&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
	if(i==1&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-2;
	if(i==0&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
	if(i==1&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-2;
   	if(i==1&&j==1&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
   	if(i==0&&j==1&&l==1){
   		if(i>=2)ans=a[0]+a[1]+a[3]+a[4];
   		else ans=a[0]+a[1]+a[3]+a[4]-2;
   		}
    cout<<ans*2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'lli' was not declared in this scope
    4 |         lli a[7];
      |         ^~~
a.cc:5:13: error: 'i' was not declared in this scope
    5 |         rep(i,7)cin>>a[i];
      |             ^
a.cc:5:9: error: 'rep' was not declared in this scope
    5 |         rep(i,7)cin>>a[i];
      |         ^~~
a.cc:6:12: error: expected ';' before 'ans'
    6 |         lli ans=0;
      |            ^~~~
      |            ;
a.cc:7:12: error: expected ';' before 'i'
    7 |         lli i=a[0]%2,j=a[3]%2,l=a[4]%2;
      |            ^~
      |            ;
a.cc:8:18: error: 'j' was not declared in this scope
    8 |         if(i==0&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4];
      |                  ^
a.cc:8:24: error: 'l' was not declared in this scope
    8 |         if(i==0&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4];
      |                        ^
a.cc:8:29: error: 'ans' was not declared in this scope
    8 |         if(i==0&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4];
      |                             ^~~
a.cc:8:33: error: 'a' was not declared in this scope
    8 |         if(i==0&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4];
      |                                 ^
a.cc:9:18: error: 'j' was not declared in this scope
    9 |         if(i==1&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                  ^
a.cc:9:24: error: 'l' was not declared in this scope
    9 |         if(i==1&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                        ^
a.cc:9:29: error: 'ans' was not declared in this scope
    9 |         if(i==1&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                             ^~~
a.cc:9:33: error: 'a' was not declared in this scope
    9 |         if(i==1&&j==0&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                                 ^
a.cc:10:18: error: 'j' was not declared in this scope
   10 |         if(i==0&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                  ^
a.cc:10:24: error: 'l' was not declared in this scope
   10 |         if(i==0&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                        ^
a.cc:10:29: error: 'ans' was not declared in this scope
   10 |         if(i==0&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                             ^~~
a.cc:10:33: error: 'a' was not declared in this scope
   10 |         if(i==0&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                                 ^
a.cc:11:18: error: 'j' was not declared in this scope
   11 |         if(i==1&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-2;
      |                  ^
a.cc:11:24: error: 'l' was not declared in this scope
   11 |         if(i==1&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-2;
      |                        ^
a.cc:11:29: error: 'ans' was not declared in this scope
   11 |         if(i==1&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-2;
      |                             ^~~
a.cc:11:33: error: 'a' was not declared in this scope
   11 |         if(i==1&&j==0&&l==1)ans=a[0]+a[1]+a[3]+a[4]-2;
      |                                 ^
a.cc:12:18: error: 'j' was not declared in this scope
   12 |         if(i==0&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                  ^
a.cc:12:24: error: 'l' was not declared in this scope
   12 |         if(i==0&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                        ^
a.cc:12:29: error: 'ans' was not declared in this scope
   12 |         if(i==0&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                             ^~~
a.cc:12:33: error: 'a' was not declared in this scope
   12 |         if(i==0&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                                 ^
a.cc:13:18: error: 'j' was not declared in this scope
   13 |         if(i==1&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-2;
      |                  ^
a.cc:13:24: error: 'l' was not declared in this scope
   13 |         if(i==1&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-2;
      |                        ^
a.cc:13:29: error: 'ans' was not declared in this scope
   13 |         if(i==1&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-2;
      |                             ^~~
a.cc:13:33: error: 'a' was not declared in this scope
   13 |         if(i==1&&j==1&&l==0)ans=a[0]+a[1]+a[3]+a[4]-2;
      |                                 ^
a.cc:14:18: error: 'j' was not declared in this scope
   14 |         if(i==1&&j==1&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                  ^
a.cc:14:24: error: 'l' was not declared in this scope
   14 |         if(i==1&&j==1&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                        ^
a.cc:14:29: error: 'ans' was not declared in this scope
   14 |         if(i==1&&j==1&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                             ^~~
a.cc:14:33: error: 'a' was not declared in this scope
   14 |         if(i==1&&j==1&&l==1)ans=a[0]+a[1]+a[3]+a[4]-1;
      |                                 ^
a.cc:15:18: error: 'j' was not declared in this scope
   15 |         if(i==0&&j==1&&l==1){
      |                  ^
a.cc:15:24: error: 'l' was not declared in this scope
   15 |         if(i==0&&j==1&&l==1){
      |                        ^
a.cc:16:25: error: 'ans' was not declared in this scope
   16 |                 if(i>=2)ans=a[0]+a[1]+a[3]+a[4];
      |                         ^~~
a.cc:16:29: error: 'a' was not declared in this scope
   16 |                 if(i>=2)ans=a[0]+a[1]+a[3]+a[4];
      |                             ^
a.cc:17:22: error: 'ans' was not declared in this scope
   17 |                 else ans=a[0]+a[1]+a[3]+a[4]-2;
      |                      ^~~
a.cc:17:26: error: 'a' was not declared in this scope
   17 |                 else ans=a[0]+a[1]+a[3]+a[4]-2;
      |                          ^
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<ans*2;
      |     ^~~~
a.cc:19:11: error: 'ans' was not declared in this scope
   19 |     cout<<ans*2;
      |           ^~~