Language: C++

#include <bits/stdc++.h>
#define ll long long 
using namespace std;
int main ( )
{
	long long  n;
	cin>>n;
	long long  a[n];
	long long  s=1;
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0)
		{
			cout<<0;
			return 0;
		}
	}
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0)
		{
			cout<<0;
			return 0;
		}
	}
	for(int i=1;i<=n;i++)
	{ 
		if(s==0)
		{
			cout<<0;
			return 0;
		 } 
		if(1000000000000000000ll/s<a[i]){
			cout<<"-1";
			return 0;
		}
		else
		{
			s*=a[i];
		}
	}
	cout<<s;
	return 0;
 } #include <bits/stdc++.h>
#define ll long long 
using namespace std;
int main ( )
{
	long long  n;
	cin>>n;
	long long  a[n];
	long long  s=1;
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0)
		{
			cout<<0;
			return 0;
		}
	}
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0)
		{
			cout<<0;
			return 0;
		}
	}
	for(int i=1;i<=n;i++)
	{ 
		if(s==0)
		{
			cout<<0;
			return 0;
		 } 
		if(1000000000000000000ll/s<a[i]){
			cout<<"-1";
			return 0;
		}
		else
		{
			s*=a[i];
		}
	}
	cout<<s;
	return 0;
 } #include <bits/stdc++.h>
#define ll long long 
using namespace std;
int main ( )
{
	long long  n;
	cin>>n;
	long long  a[n];
	long long  s=1;
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0)
		{
			cout<<0;
			return 0;
		}
	}
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0)
		{
			cout<<0;
			return 0;
		}
	}
	for(int i=1;i<=n;i++)
	{ 
		if(s==0)
		{
			cout<<0;
			return 0;
		 } 
		if(1000000000000000000ll/s<a[i]){
			cout<<"-1";
			return 0;
		}
		else
		{
			s*=a[i];
		}
	}
	cout<<s;
	return 0;
 } #include <bits/stdc++.h>
#define ll long long 
using namespace std;
int main ( )
{
	long long  n;
	cin>>n;
	long long  a[n];
	long long  s=1;
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0)
		{
			cout<<0;
			return 0;
		}
	}
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0)
		{
			cout<<0;
			return 0;
		}
	}
	for(int i=1;i<=n;i++)
	{ 
		if(s==0)
		{
			cout<<0;
			return 0;
		 } 
		if(1000000000000000000ll/s<a[i]){
			cout<<"-1";
			return 0;
		}
		else
		{
			s*=a[i];
		}
	}
	for(int j=1;j<=k;j++)
	{
		for(int z=1;z<=k;z++)
		{
			cout<<z;
			if(k<=n)
			{
				k++;
			 } 
		}
	}
	for(int l=1;l>=m;l++)
	cout<<s;
	{
		for(int j=1;j<=n;j++)
		
		{
			
		}
	}
	return 0;
	for(int d=1;d<=n;d++)
	{
		if(d<=d)
		{
			d++;
		}
		else if(d>n)
		{
			d--;
		}
	}
	cout<<d;	for(int j=1;j<=k;j++)
	{
		for(int z=1;z<=k;z++)
		{
			cout<<z;
			if(k<=n)
			{
				k++;
			 } 
		}
	}
	for(int l=1;l>=m;l++)
	cout<<s;
	{
		for(int j=1;j<=n;j++)
		
		{
			
		}
	}
	return 0;
	for(int d=1;d<=n;d++)
	{
		if(d<=d)
		{
			d++;
		}
		else if(d>n)
		{
			d--;
		}
		for(int k>=n;k++)
		{
			int n;
			cin>>n;
			for(long long n=1;n<=hu;n++)
			{
				if(n>=10000000ll/s+=soasd)
			}
		}
		
	}
	int haha(i);
	{
		
	 } 
	cout<<d;
 } 

Compiler output:
a.cc:46:4: error: stray '#' in program
   46 |  } #include <bits/stdc++.h>
      |    ^
a.cc:91:4: error: stray '#' in program
   91 |  } #include <bits/stdc++.h>
      |    ^
a.cc:136:4: error: stray '#' in program
  136 |  } #include <bits/stdc++.h>
      |    ^
a.cc:46:5: error: 'include' does not name a type
   46 |  } #include <bits/stdc++.h>
      |     ^~~~~~~
a.cc:49:5: error: redefinition of 'int main()'
   49 | int main ( )
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main ( )
      |     ^~~~
a.cc:91:5: error: 'include' does not name a type
   91 |  } #include <bits/stdc++.h>
      |     ^~~~~~~
a.cc:94:5: error: redefinition of 'int main()'
   94 | int main ( )
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main ( )
      |     ^~~~
a.cc:136:5: error: 'include' does not name a type
  136 |  } #include <bits/stdc++.h>
      |     ^~~~~~~
a.cc:139:5: error: redefinition of 'int main()'
  139 | int main ( )
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main ( )
      |     ^~~~
a.cc: In function 'int main()':
a.cc:179:24: error: 'k' was not declared in this scope
  179 |         for(int j=1;j<=k;j++)
      |                        ^
a.cc:190:24: error: 'm' was not declared in this scope
  190 |         for(int l=1;l>=m;l++)
      |                        ^
a.cc:211:15: error: 'd' was not declared in this scope
  211 |         cout<<d;        for(int j=1;j<=k;j++)
      |               ^
a.cc:211:40: error: 'k' was not declared in this scope
  211 |         cout<<d;        for(int j=1;j<=k;j++)
      |                                        ^
a.cc:222:24: error: 'm' was not declared in this scope
  222 |         for(int l=1;l>=m;l++)
      |                        ^
a.cc:242:26: error: expected ';' before '>=' token
  242 |                 for(int k>=n;k++)
      |                          ^~
      |                          ;
a.cc:242:26: error: expected primary-expression before '>=' token
  242 |                 for(int k>=n;k++)
      |                          ^~
a.cc:246:46: error: 'hu' was not declared in this scope
  246 |                         for(long long n=1;n<=hu;n++)
      |                                              ^~
a.cc:248:53: error: 'soasd' was not declared in this scope
  248 |                                 if(n>=10000000ll/s+=soasd)
      |                                                     ^~~~~
a.cc:249:25: error: expected primary-expression before '}' token
  249 |                         }
      |                         ^
a.cc:253:18: error: 'i' was not declared in this scope
  253 |         int haha(i);
      |                  ^