criyle/codenet-compile-errors huggingface dataset:
Language: C++

$<.map{|i|a=b=i.to_i;c=0;(600/a-1).times{c+=b*b*a;b+=a};p c}

Compiler output:
a.cc:1:1: error: '$' does not name a type
    1 | $<.map{|i|a=b=i.to_i;c=0;(600/a-1).times{c+=b*b*a;b+=a};p c}
      | ^
Language: C++

f :: Int -> Int
f x = x * x

solve :: Int -> Int
solve d = (d*) $ sum $ map f [0 , d .. 600 - d]

main :: IO ()
main  = getContents
    >>= return . map read . lines
    >>= return . map solve
    >>= mapM_ print

Compiler output:
a.cc:1:1: error: 'f' does not name a type
    1 | f :: Int -> Int
      | ^
Language: C++

$<.map{|i|s=0;(600/a=i.to_i).times{|i|s+=a**3*i*i};p s}

Compiler output:
a.cc:1:1: error: '$' does not name a type
    1 | $<.map{|i|s=0;(600/a=i.to_i).times{|i|s+=a**3*i*i};p s}
      | ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main()
{
    int d;
 
    while (~scanf("%d", &n)) {
        int ans = 0;
        for (int a = d; a <= 600 - d; a += d) ans += a * a * d;
        printf("%d\n", ans);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'n' was not declared in this scope
    9 |     while (~scanf("%d", &n)) {
      |                          ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
using namespace std;

int main() {
	int d;
	while (cin >> d) {
		int s = 0;
		for (int i = 1; i <= 600 / d - 1; i++) {
			s += pow(i*d, 2)*d;
		}
		cout << s << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'pow' was not declared in this scope
   11 |                         s += pow(i*d, 2)*d;
      |                              ^~~
Language: C++

import sys

a = []
for line in sys.stdin:
    a.append(line)

for n in a:
    num=int(n)
    x=0
    are=0
    while x<600:
         are+=(x**2)*num
         x+=num

print area

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++


#include <stdio.h>

#define MAX 600

int function(int d)
{
	d = d * d;
	return d;
}

int main()
{
	int d,cnt;
	int sum;
	while ((scanf_s("%d", &d)) != EOF)
	{
		sum = 0;
		cnt = MAX / d;
		for (int i = 1; i < cnt; i++)
		{
			sum += function(d*i)*d;
		}
		printf("%d\n",sum);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   16 |         while ((scanf_s("%d", &d)) != EOF)
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include "bits\stdc++.h"
using namespace std;
int main() {
	cin.tie(0); ios::sync_with_stdio(false);
	int d;
	while (cin >> d) {
		int area = 0;
		for (int x = d; x <= 600 - d;x += d) {
			area += x*x*d;
		}
		cout << area << endl;
	}
}

Compiler output:
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
    1 | #include "bits\stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

while True:
    total = 0
    try:
        num = int(input())
        for i in range(num, 600, num):
            total += i*i * num
        print(total)
    except:
        break

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
	int d, ans, n;
	while(cin >> d){
		ans = pow(d, 3);
		n = 600 / d - 1;
		ans *= n*(n+1)*(2*n+1) / 6;
		cout << ans << endl;
	}
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'pow' was not declared in this scope
    8 |                 ans = pow(d, 3);
      |                       ^~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
	int d, ans = 0, n;
	while(cin >> d){
		ans = pow(d, 3);
		n = 600 / d - 1;
		ans *= n*(n+1)*(2*n+1) / 6;
		cout << ans << endl;
	}
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'pow' was not declared in this scope
    8 |                 ans = pow(d, 3);
      |                       ^~~
Language: C++

def f(x)
  x * x
end

l = gets.chomp.to_i
a = 600
p = l
sum = 0
while a >= p
  sum += l * f(p)
  p += l
end
puts sum

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def f(x)
      | ^~~
Language: C++

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

	public static void main(String args[]) throws IOException {

		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String sc="";
		while(true) {
			sc=br.readLine();
			int yakusu=Integer.parseInt(sc);
			int bunkatu=600/yakusu;

			long ans=0;
			for(int i=0; i<bunkatu; i++) {
				ans+=(yakusu*i)*(yakusu*i)*yakusu;
			}
			System.out.println(ans);
		}
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main{
      | ^~~~~~
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;

long int i,c;
long int sum = 0;

long int area(int d) {
　　for(i=d; i<=600-d;i += d){
　　   c = d * i * i;
　　  sum = sum + c;
　　  
　　  
　　}
　　
　　return sum;
}

int main(void){
    int d;
    while(cin >> d) {
       cout << area(d) << endl;
    }
    return 0;
}


Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　for(i=d; i<=600-d;i += d){
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　   c = d * i * i;
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　　  sum = sum + c;
      | ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　　
      | ^
a.cc:12:1: error: extended character 　 is not valid in an identifier
a.cc:13:1: error: extended character 　 is not valid in an identifier
   13 | 　　
      | ^
a.cc:13:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　　}
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:16:1: error: extended character 　 is not valid in an identifier
   16 | 　　return sum;
      | ^
a.cc:16:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'long int area(int)':
a.cc:9:12: error: expected ')' before ';' token
    9 | 　　for(i=d; i<=600-d;i += d){
      |        ~   ^
      |            )
a.cc:9:29: error: expected ';' before ')' token
    9 | 　　for(i=d; i<=600-d;i += d){
      |                             ^
      |                             ;
a.cc:15:1: error: '\U00003000\U00003000' was not declared in this scope
   15 | 　　
      | ^~~~
a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | }
      | ^
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;

int f(int x)
{
    return x*x;
}

int area(int d) {
   int x,y,sum,i;
   x=600;
   y=f(d);
   sum=0;
   i=1;
   
   while(d*i<=600-d)
   {
       sum+=y*d;
       i++;
       y=f(d*i);
   }
    return sum;
　　
}

int main(void){
    int d;
    while(cin >> d) {
       cout << area(d) << endl;
    }
    return 0;
}




Compiler output:
a.cc:24:1: error: extended character 　 is not valid in an identifier
   24 | 　　
      | ^
a.cc:24:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int area(int)':
a.cc:24:1: error: '\U00003000\U00003000' was not declared in this scope
   24 | 　　
      | ^~~~
Language: C++


#include <iostream>
#include <cstdio>
using namespace std;

int area(int d) {
　　return (d*d);
}

int main(void){
    int d;
    while(scanf("%d", &d) != EOF) {
       printf("%d\n", area(d));
    }
    return 0;
}




Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　return (d*d);
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int area(int)':
a.cc:7:1: error: '\U00003000\U00003000return' was not declared in this scope
    7 | 　　return (d*d);
      | ^~~~~~~~~~
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;

int area(int d) {
　　return (d*d);
}

int main(void){
    int d;
    while(scanf("%d", &d) != EOF) {
       printf("%d\n", area(d));
    }
    return 0;
}




Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　return (d*d);
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int area(int)':
a.cc:6:1: error: '\U00003000\U00003000return' was not declared in this scope
    6 | 　　return (d*d);
      | ^~~~~~~~~~
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^
Language: C++

#include <stdio.h>>
int f(int d) {
　　return (d*d);
}

int main(void){
    int d;
    while(scanf("%d", &d) != EOF) {
       printf("%d\n",f(d));
    }
    return 0;
}




Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>>
      |                   ^
a.cc:3:1: error: extended character 　 is not valid in an identifier
    3 | 　　return (d*d);
      | ^
a.cc:3:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int f(int)':
a.cc:3:1: error: '\U00003000\U00003000return' was not declared in this scope
    3 | 　　return (d*d);
      | ^~~~~~~~~~
a.cc:4:1: warning: no return statement in function returning non-void [-Wreturn-type]
    4 | }
      | ^
Language: C++

#include <stdio.h>

int area(int d) {
    
    int i=0,n,x,y,s,sum=0;
    
     n = 600/d ;
　　for (i=0; i < n; i++){
　　    x = i*d;
　　    y = x*x;
　　    s= y*d;
　　    
　　    sum=sum+s;
　　}
　　return sum;
　
　　       
}

int main(void){
    int d;
    while(scanf("%d", &d) != EOF) {
       printf("%d\n", area(d));
    }
    return 0;
}




Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　　for (i=0; i < n; i++){
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　    x = i*d;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　    y = x*x;
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　　    s= y*d;
      | ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　　
      | ^
a.cc:12:1: error: extended character 　 is not valid in an identifier
a.cc:13:1: error: extended character 　 is not valid in an identifier
   13 | 　　    sum=sum+s;
      | ^
a.cc:13:1: error: extended character 　 is not valid in an identifier
a.cc:14:1: error: extended character 　 is not valid in an identifier
   14 | 　　}
      | ^
a.cc:14:1: error: extended character 　 is not valid in an identifier
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　return sum;
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:16:1: error: extended character 　 is not valid in an identifier
   16 | 　
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
   17 | 　　
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int area(int)':
a.cc:8:13: error: expected ')' before ';' token
    8 | 　　for (i=0; i < n; i++){
      |         ~   ^
      |             )
a.cc:8:25: error: expected ';' before ')' token
    8 | 　　for (i=0; i < n; i++){
      |                         ^
      |                         ;
a.cc:15:1: error: '\U00003000\U00003000return' was not declared in this scope
   15 | 　　return sum;
      | ^~~~~~~~~~
a.cc:16:1: error: '\U00003000' was not declared in this scope
   16 | 　
      | ^~
a.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | }
      | ^
Language: C++

main(d){for(;~scanf("%d",&d);printf("%d00\n",d*=d-6e2))d-=600;}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(d){for(;~scanf("%d",&d);printf("%d00\n",d*=d-6e2))d-=600;}
      |     ^
Language: C++

#include <iostream>
using namespace std;
int main(){
        int d,n=1,s=0;
		while(cin>>d){
        for(int i =1;i<(600/d);i++){
                for(int j=1;j<=2;j++){
                        n*=(i*d);while
                        }
                s += d * n;
				n=1;
}
        cout<<s<<endl;
		}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected '(' before '}' token
    9 |                         }
      |                         ^
      |                         (
a.cc:9:25: error: expected primary-expression before '}' token
a.cc:8:39: error: expected ')' before '}' token
    8 |                         n*=(i*d);while
      |                                       ^
      |                                       )
    9 |                         }
      |                         ~              
a.cc:9:25: error: expected primary-expression before '}' token
    9 |                         }
      |                         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int n;
	while(cin >>n){
		int sum = 0;
		for(int i=0;i<600;i+=n){sum+=i*i*n}
		cout <<sum<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:51: error: expected ';' before '}' token
    7 |                 for(int i=0;i<600;i+=n){sum+=i*i*n}
      |                                                   ^
      |                                                   ;
Language: C++

#include <iostream>

using namespace std;

int main() {
  int d;
  while (cin >> d) {
    sum = 0;
    for (int i = 1; d * i <= 600 - d; i++) {
      sum += d * (d * i) * (d * i);
    }
    cout << sum << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'sum' was not declared in this scope
    8 |     sum = 0;
      |     ^~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
 int d;
 while(cin>>d)
 {
   for(int i=1;i*d<=d;i++)
   {
     f=0;
     f=d*(d*i)*(d*i);
    }
    cout<<f<<endl;
   }
   return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'f' was not declared in this scope
   11 |      f=0;
      |      ^
a.cc:14:11: error: 'f' was not declared in this scope
   14 |     cout<<f<<endl;
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
 int d;
 while(cin>>d)
 {
   for(int i=1;i*d<d;++i)
   {
     f=0;
     f=d*(d*i)*(d*i);
    }
    cout<<f<<endl;
   }
   return 0;
   cin.get();
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'f' was not declared in this scope
   11 |      f=0;
      |      ^
a.cc:14:11: error: 'f' was not declared in this scope
   14 |     cout<<f<<endl;
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
 int d;
 while(cin>>d)
 {
   for(int i=1;i*d<d;++i)
   {
     f=0;
     f+=d*(d*i)*(d*i);
    }
    cout<<f<<endl;
   }
   return 0;
   cin.get();
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'f' was not declared in this scope
   11 |      f=0;
      |      ^
a.cc:14:11: error: 'f' was not declared in this scope
   14 |     cout<<f<<endl;
      |           ^
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
    int d;
 
    while(cin >> d)
    {
        int vol=0;
 
        for(int i=1; i*d<600; i++)
        {
            y += d*(d*i)*(d*i);
        }
 
       cout << vol << endl;
    }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'y' was not declared in this scope
   14 |             y += d*(d*i)*(d*i);
      |             ^
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
    int d;
 
    while(cin >> d)
    {
        int vol=0;
 
        for(int i=1; i*d<600; i++)
        {
            y += d*(d*i)*(d*i);
        }
 
       cout << y << endl;
    }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'y' was not declared in this scope
   14 |             y += d*(d*i)*(d*i);
      |             ^
a.cc:17:16: error: 'y' was not declared in this scope
   17 |        cout << y << endl;
      |                ^
Language: C++

#include<iostream>
#include <vector>
using namespace std;
 
int main()
{
    int d;
 
    while(cin >> d)
    {
        int vol=0;
 
        for(int i=1; i*d<600; i++)
        {
            y += d*(d*i)*(d*i);
        }
 
       cout << y << endl;
    }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'y' was not declared in this scope
   15 |             y += d*(d*i)*(d*i);
      |             ^
a.cc:18:16: error: 'y' was not declared in this scope
   18 |        cout << y << endl;
      |                ^
Language: C++

#include<iostream>
using namespace std;

int main(void){
	int d;
	long s;
	while(cin >> d){
		s = 0;
		for(i = 1; i * d + d <= 600; i++){
			s +=  (d * i) * (d * i) * d;
		}
		cout << s << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'i' was not declared in this scope
    9 |                 for(i = 1; i * d + d <= 600; i++){
      |                     ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
int x;
while(cin>>d)
{
y=0;
for(int i=1; i*d<600; i++)
{
 y=d*(d*i)*(d*i);
}
cout<<y<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'd' was not declared in this scope
    7 | while(cin>>d)
      |            ^
a.cc:9:1: error: 'y' was not declared in this scope
    9 | y=0;
      | ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
int x;
while(cin>>d)
{
y=0;
for(int i=1; i*d<600; i++)
{
 y+=d*(d*i)*(d*i);
}
cout<<y<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'd' was not declared in this scope
    7 | while(cin>>d)
      |            ^
a.cc:9:1: error: 'y' was not declared in this scope
    9 | y=0;
      | ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
int d;
while(cin>>d)
{
y=0;
for(int i=1; i*d<600; i++)
{
 y+=d*(d*i)*(d*i);
}
cout<<y<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'y' was not declared in this scope
    9 | y=0;
      | ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
 int d;
 while(cin>>d)
 int y=0;
{
for(int i=1; i*d<600; i++)
{
 y+=d*(d*i)*(d*i);
 }
cout<<y<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: 'y' was not declared in this scope
   12 |  y+=d*(d*i)*(d*i);
      |  ^
a.cc:14:7: error: 'y' was not declared in this scope
   14 | cout<<y<<endl;
      |       ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
	int d;
	while(scanf("%d", &d) != EOF){
		int ans = 0;
		for(int i=1; i < 600/d; i++){
			ans += d * pow(d*i, 2);
		}
		cout << ans << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:36: error: 'pow' was not declared in this scope
   10 |                         ans += d * pow(d*i, 2);
      |                                    ^~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<queue>
#include<stack>
#include<vector>
#include<algorithm>
#include<iomanip>
using namespace std;
#define min(v,w) v>w?w:v;
#define max(v,w) v<w?w:v;
#define INF 0x3f3f3f3f3f3f3f3f
#define MAXN 30

struct p{
	int x,y;
};

int main(){  

	__int64 a,b,c,d,t;
    while(~scanf("%I64d",&d))  { 
		b=0;
		t=d;
		for(;d<600;d+=t){
			b+=t*d*d;			
		}
		if(d<600)
			b+=(600-d)*d*d;
		printf("%I64d\n",b);
	}
	return 0;
}

/*
((F(TF))(TF(F(TF(TF))))(F(TF))(TF))
(TFT)
((TFT)T)

*/

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   23 |         __int64 a,b,c,d,t;
      |         ^~~~~~~
      |         __ynf64
a.cc:24:27: error: 'd' was not declared in this scope
   24 |     while(~scanf("%I64d",&d))  {
      |                           ^
a.cc:25:17: error: 'b' was not declared in this scope
   25 |                 b=0;
      |                 ^
a.cc:26:17: error: 't' was not declared in this scope; did you mean 'tm'?
   26 |                 t=d;
      |                 ^
      |                 tm
Language: C++

#include<iostream>

using namespace std;

int main(void){
  int d;

  while(cin >> d){
    int sum=0;
    for(int i=1;i<600/d;i++)
      sum+=i*i*d*d*d;
    
    cout << sum << endl;
  }

  retu

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'retu' was not declared in this scope
   16 |   retu
      |   ^~~~
a.cc:16:7: error: expected '}' at end of input
   16 |   retu
      |       ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Programminng
{
    class AOJ_Volume0014
    {
        public static void Main(string[] args)
        {

            while (true)
            {
                string input = Console.ReadLine(); ;
                if (string.IsNullOrEmpty(input)) break;

                int d = int.Parse(input);
                int value = 0, s = 0;

                while (value != 600 - d)
                {
                    value += d;
                    int line = value * value;
                    s += line * d;
                }
                Console.WriteLine(s);

            }
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:15: error: expected ':' before 'static'
   10 |         public static void Main(string[] args)
      |               ^~~~~~~
      |               :
a.cc:10:33: error: 'string' has not been declared
   10 |         public static void Main(string[] args)
      |                                 ^~~~~~
a.cc:10:42: error: expected ',' or '...' before 'args'
   10 |         public static void Main(string[] args)
      |                                          ^~~~
a.cc:31:6: error: expected ';' after class definition
   31 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Programminng::AOJ_Volume0014::Main(int*)':
a.cc:15:17: error: 'string' was not declared in this scope
   15 |                 string input = Console.ReadLine(); ;
      |                 ^~~~~~
a.cc:16:42: error: 'input' was not declared in this scope; did you mean 'int'?
   16 |                 if (string.IsNullOrEmpty(input)) break;
      |                                          ^~~~~
      |                                          int
a.cc:18:25: error: expected primary-expression before 'int'
   18 |                 int d = int.Parse(input);
      |                         ^~~
a.cc:27:17: error: 'Console' was not declared in this scope
   27 |                 Console.WriteLine(s);
      |                 ^~~~~~~
Language: C++

#include <iostream>

int main(){
    int d, menseki;
    while(std::cin >> d){
        menseki　=　0;
        for(int x = 0; x < 600; x+=d){
            menseki += d * x * x;
        }
        std::cout << menseki << std::endl;
    }
}

Compiler output:
a.cc:6:9: error: extended character 　 is not valid in an identifier
    6 |         menseki　=　0;
      |         ^
a.cc:6:19: error: extended character 　 is not valid in an identifier
    6 |         menseki　=　0;
      |                   ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'menseki\U00003000' was not declared in this scope; did you mean 'menseki'?
    6 |         menseki　=　0;
      |         ^~~~~~~~~
      |         menseki
a.cc:6:19: error: '\U000030000' was not declared in this scope
    6 |         menseki　=　0;
      |                   ^~~
Language: C++

using namespace std;int main(){int a=0,d,i=0;while(cin>>d){for(;i<600;i+=d){a+=i*i*d;}cout<<a<<endl;}}

Compiler output:
a.cc: In function 'int main()':
a.cc:1:52: error: 'cin' was not declared in this scope
    1 | using namespace std;int main(){int a=0,d,i=0;while(cin>>d){for(;i<600;i+=d){a+=i*i*d;}cout<<a<<endl;}}
      |                                                    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;int main(){int a=0,d,i=0;while(cin>>d){for(;i<600;i+=d){a+=i*i*d;}cout<<a<<endl;}}
a.cc:1:87: error: 'cout' was not declared in this scope
    1 | using namespace std;int main(){int a=0,d,i=0;while(cin>>d){for(;i<600;i+=d){a+=i*i*d;}cout<<a<<endl;}}
      |                                                                                       ^~~~
a.cc:1:87: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:1:96: error: 'endl' was not declared in this scope
    1 | using namespace std;int main(){int a=0,d,i=0;while(cin>>d){for(;i<600;i+=d){a+=i*i*d;}cout<<a<<endl;}}
      |                                                                                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;int main(){int a=0,d,i=0;while(cin>>d){for(;i<600;i+=d){a+=i*i*d;}cout<<a<<endl;}}
Language: C++

#include<iostream>
void main(){int i,d,s;while(std::cin>>d){s=0;for(i=0;i<600;i+=d){s+=d*i*i;}std::cout<<s<<std::endl;}}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(){int i,d,s;while(std::cin>>d){s=0;for(i=0;i<600;i+=d){s+=d*i*i;}std::cout<<s<<std::endl;}}
      | ^~~~
Language: Java

import java.math.BigInteger;
import java.util.Scanner;

public class bi{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		
		for(int i=0;i<num;i++){
			BigInteger bix = new BigInteger(scan.next());
			BigInteger biy = new BigInteger(scan.next());
			BigInteger add = bix.add(biy);
			System.out.println(add.toString());
		}
	}
}

Compiler output:
Main.java:4: error: class bi is public, should be declared in a file named bi.java
public class bi{
       ^
1 error
Language: Java

import java.math.BigInteger;
import java.util.Scanner;
public class　Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(0!=n--){
			BigInteger a = sc.nextBigInteger();
			BigInteger b = sc.nextBigInteger();
			System.out.println(a.add(b));
		}
	}
}

Compiler output:
Main.java:3: error: illegal character: '\u3000'
public class?Main {
            ^
1 error
Language: Java

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;

/* Name of the class has to be "Main" only if the class is public. */

public class Main
{
	Scanner sc = new Scanner(System.in);
	int q = sc.nextInt();
	for(int i = 0; i < q; ++i){
		BigInteger n1 = sc.nextBigInteger();
 		BigInteger n2 = sc.nextBigInteger();
 		BigInteger ans = n1.add(n2);
 		String sa = ans.toString();
 		if(sa.length() > 80){
 			System.out.println("overflow");	
 		}
 		else{
 			System.out.println(sa);
 		}
 	}	
}

Compiler output:
Main.java:14: error: illegal start of type
	for(int i = 0; i < q; ++i){
	^
Main.java:14: error: > or ',' expected
	for(int i = 0; i < q; ++i){
	                    ^
Main.java:14: error: illegal start of type
	for(int i = 0; i < q; ++i){
	                      ^
Main.java:14: error: <identifier> expected
	for(int i = 0; i < q; ++i){
	                         ^
4 errors
Language: Java

import java.util.Scanner;
import java.math.BigInteger;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
for(int i=0i<n;i++){
BigInteger a=sc.nextBigInteger();
BigInteger b=sc.nextBigInteger();
a=a.add(b);
if(a.toString().length()>80{
System.out.println("overflow");
}
else{
System.out.println(a);
}
}
}
}

Compiler output:
Main.java:8: error: ';' expected
for(int i=0i<n;i++){
           ^
Main.java:12: error: ')' expected
if(a.toString().length()>80{
                           ^
2 errors
Language: Java

import java.util.Scanner;
import java.math.BigInteger;
 
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
for(int i=0;i<n;i++){
BigInteger a=sc.nextBigInteger();
BigInteger b=sc.nextBigInteger();
a=a.add(b);
if(String.valeOf(a).length()>80){
System.out.println("overflow");
}
else{
System.out.println(a);
}
}
}
}

Compiler output:
Main.java:12: error: cannot find symbol
if(String.valeOf(a).length()>80){
         ^
  symbol:   method valeOf(BigInteger)
  location: class String
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;


public class NationalBudget{

	
	public static void main(String[] args){
		
		byte[] bof = new byte[80];
		Arrays.fill(bof, (byte)9);
		BigInteger overflow = new BigInteger(bof);
		
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			String str1 = sc.next();
			String str2 = sc.next();
			byte[] b1 = strToByteArray(str1);
			byte[] b2 = strToByteArray(str2);
			BigInteger i1 = new BigInteger(b1);
			BigInteger i2 = new BigInteger(b2);
			
			BigInteger sum = BigInteger.sum(i1, i2);
			
			if(BigInteger.isABiggerThanB(i1, overflow) || BigInteger.isABiggerThanB(i2, overflow) || BigInteger.isABiggerThanB(sum, overflow)) System.out.println("overflow");
			else System.out.println(sum);
		}
		sc.close();
	}
	
	static byte[] strToByteArray(String cs) {
		byte[] result = new byte[cs.length()];
		for(int i = 0; i < cs.length(); i++) {
			result[cs.length() - i - 1] = Byte.parseByte(Character.toString(cs.charAt(i)));
		}
		return result;
	}
}

class BigInteger{
	byte[] ds;
	BigInteger(byte[] d){
		int i;
		for(i = d.length-1; i > 0; i--) {
			if(d[i] != 0) break;
		}
		this.ds = Arrays.copyOfRange(d, 0, i+1);
	}
	
	static boolean isABiggerThanB(BigInteger a, BigInteger b) {
		if(a.ds.length > b.ds.length) return true;
		else if(a.ds.length < b.ds.length) return false;
		else {
			return a.ds[a.ds.length-1] > b.ds[b.ds.length-1];
		}
	}

	
	static BigInteger sum(BigInteger i1, BigInteger i2) {
		if(isABiggerThanB(i1, i2)) return subsum(i1, i2);
		else return subsum(i2, i1);
	}
	
	static BigInteger subsum(BigInteger i1, BigInteger i2) {
		int digit = (i1.ds.length > i2.ds.length)? i1.ds.length + 2: i2.ds.length + 2;
		byte[]	ds = new byte[digit];
		boolean c_up = false;
		int i;
		for(i = 0; i < i1.ds.length; i++) {
			ds[i] = (i < i2.ds.length)? (byte) (i1.ds[i] + i2.ds[i]): i1.ds[i];
			if(c_up) ds[i]++;
			if(ds[i] > 9) {
				ds[i] = (byte) (ds[i] % 10);
				c_up = true;
			}else c_up = false;
		}
		if(c_up) ds[i]++;
		return new BigInteger(ds);
	}
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		for(int i = ds.length - 1; i >= 0; i-- ) {
			sb.append(ds[i]);
		}
		return sb.toString();
	}
}

Compiler output:
Main.java:5: error: class NationalBudget is public, should be declared in a file named NationalBudget.java
public class NationalBudget{
       ^
1 error
Language: Java

import java.math.BigInteger;
import java.util.Scanner;

public class AOJ15{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        for(int i = 0; i < n; i++){
            String a = scan.next();
            String b = scan.next();
            BigInteger ab = (new BigInteger(a)).add(new BigInteger(b));
            if(ab.toString().length() > 80) System.out.println("overflow");
            else System.out.println(ab);
        }
    }
}

Compiler output:
Main.java:4: error: class AOJ15 is public, should be declared in a file named AOJ15.java
public class AOJ15{
       ^
1 error
Language: Java

import java.math.BigInteger;
import java.util.Scanner;

public class main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		BigInteger out=new BigInteger("1");
		for(int i=1;i<80;i++){
			out=out.multiply(new BigInteger("10"));
		}
		int n=sc.nextInt();
		for(int i=0;i<n;i++){
			BigInteger a=new BigInteger(sc.next());
			BigInteger b=new BigInteger(sc.next());
			a=a.add(b);
			if(a.min(out).equals(out))	System.out.println("overflow");
			else 	System.out.println(a.toString());
		}

	}

}

Compiler output:
Main.java:4: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.*;
import java.math.*;
class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i = 0; i < n; i++) {
			BigInteger x = sc.nextBigInteger().add(sc.nextBigInteger());
			if(x.toString.length() > 80) System.out.println("overflow");
			else system.out.println(x);
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
			if(x.toString.length() > 80) System.out.println("overflow");
			    ^
  symbol:   variable toString
  location: variable x of type BigInteger
Main.java:10: error: package system does not exist
			else system.out.println(x);
			           ^
2 errors
Language: Java

import java.util.*;
import java.math.*;
class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i = 0; i < n; i++) {
			BigInteger x = sc.nextBigInteger().add(sc.nextBigInteger());
			if(x.toString.length() > 80) System.out.println("overflow");
			else System.out.println(x);
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
			if(x.toString.length() > 80) System.out.println("overflow");
			    ^
  symbol:   variable toString
  location: variable x of type BigInteger
1 error
Language: Java

class Main {
	public String conbineBigNumbers(String strA, String strB){
		int lengthA = strA.length();
		int lengthB = strB.length();

		int numPartitionA = (int)Math.ceil(lengthA/9.0);
		int numPartitionB = (int)Math.ceil(lengthB/9.0);

		int carryOver = 0;
		String strSum = "";

		for(int partNo = 0; partNo < Math.max(numPartitionA, numPartitionB); partNo++){
			int aParts;
			int bParts;

			if(partNo >= numPartitionA){
				aParts = 0;
			} else {
				aParts = Integer.parseInt(strA.substring(Math.max(0, lengthA - 9 * (partNo + 1)), lengthA - 9 * partNo));
			}

			if(partNo >= numPartitionB){
				bParts = 0;
			} else {
				bParts = Integer.parseInt(strB.substring(Math.max(0, lengthB - 9 * (partNo + 1)), lengthB - 9 * partNo));
			}

			String newParts = String.valueOf((aParts + bParts + carryOver) % 1000000000);

			int newPartsLength = newParts.length();
			if(newPartsLength < 9){
				for(int i = 0; i < 9 - newPartsLength; i++)
					newParts = 0 + newParts;
			}
			strSum = newParts + strSum;

			carryOver = (aParts + bParts + carryOver) / 1000000000;
		}

		strSum = carryOver + strSum;
		strSum = strSum.replaceFirst("^0*", "");
		return strSum;
	}

	public static void main(String[] args) throws NumberFormatException, IOException{
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		int numSet = Integer.parseInt(br.readLine());
		for(int iSet = 0; iSet < numSet; iSet++){
			String strA = br.readLine();
			String strB = br.readLine();

			if(strA.length() > 80 || strB.length() >80){
				System.out.println("overflow");
			} else {
				Main nationalBudget = new Main();
				String sum = nationalBudget.conbineBigNumbers(strA, strB);

				if(sum.length() > 80){
					System.out.println("overflow");
				} else {
					System.out.println(sum);
				}
			}
		}
	}
}

Compiler output:
Main.java:45: error: cannot find symbol
	public static void main(String[] args) throws NumberFormatException, IOException{
	                                                                     ^
  symbol:   class IOException
  location: class Main
Main.java:46: error: cannot find symbol
		InputStreamReader isr = new InputStreamReader(System.in);
		^
  symbol:   class InputStreamReader
  location: class Main
Main.java:46: error: cannot find symbol
		InputStreamReader isr = new InputStreamReader(System.in);
		                            ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:47: error: cannot find symbol
		BufferedReader br = new BufferedReader(isr);
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:47: error: cannot find symbol
		BufferedReader br = new BufferedReader(isr);
		                        ^
  symbol:   class BufferedReader
  location: class Main
5 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Vol0_0015 {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String num1,num2;
		int N = Integer.parseInt(str);

		String[] tmp1,tmp2;
		List<Integer> list_a = new ArrayList<Integer>();
		List<Integer> list_b = new ArrayList<Integer>();
		List<Integer> ans = new ArrayList<Integer>();

		while(N-->0){
			//???????????????
			num1=br.readLine();
			tmp1=num1.split("");
			num2=br.readLine();
			tmp2=num2.split("");
			list_a.clear();
			list_b.clear();
			ans.clear();
			if(tmp1.length>=tmp2.length){
				for(int i=0;i<tmp1.length;i++){
					list_a.add(Integer.parseInt(tmp1[tmp1.length-i-1]));
				}
				for(int i=0;i<tmp2.length;i++){
					list_b.add(Integer.parseInt(tmp2[tmp2.length-i-1]));
				}
			}else{
				for(int i=0;i<tmp2.length;i++){
					list_a.add(Integer.parseInt(tmp2[tmp2.length-i-1]));
				}
				for(int i=0;i<tmp1.length;i++){
					list_b.add(Integer.parseInt(tmp1[tmp1.length-i-1]));
				}
			}
			//?????????0??§?????????
			if(list_a.size()>list_b.size()){
				//System.out.println("0??§????????????");
				for(int i=list_b.size();i<list_a.size();i++){
					list_b.add(i,0);
				}
			}

			/*
			//????´???§????????????????¢????
			System.out.println("num1: "+num1+" tmp1.size:"+tmp1.length);
			System.out.println("num2: "+num2+" tmp2.size:"+tmp2.length);
			System.out.print("list_a: ");
			for(int i=0;i<list_a.size();i++){
				System.out.print(list_a.get(i)+",");
			}
			System.out.println();
			System.out.print("list_b: ");
			for(int i=0;i<list_b.size();i++){
				System.out.print(list_b.get(i)+",");
			}
			System.out.println();
			*/

			//???????¨????
			int a,b;
			int loop = list_a.size();
			boolean kuriage=false;

			for(int i=0;i<loop;i++){
				//System.out.println("i="+i+"-----------------------------");
				a=list_a.get(i);
				b=list_b.get(i);
				//System.out.println(i+":a(i)="+a+":b(i)="+b);
				if(a+b>=10){
					if(i<loop-1){
						int tmp = list_a.get(i+1);
						list_a.set(i+1,tmp+1);
					}else{
						list_a.add(1);
						kuriage=true;
					}
				}
				ans.add((a+b)%10);
				//System.out.println("ans(i):"+ans.get(i));
			}
			if(kuriage){
				ans.add(list_a.get(list_a.size()-1));
			}

			//ans??????
			for(int i=ans.size()-1;i>=0;i--){
				System.out.print(ans.get(i));
			}
			System.out.println();

		}

	}

}

Compiler output:
Main.java:7: error: class Vol0_0015 is public, should be declared in a file named Vol0_0015.java
public class Vol0_0015 {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        for (int i = 0; i < n ; i++){
            BigInteger a = new BigInteger(br.readLine());
            BigInteger b = new BigInteger(br.readLine());
            if (s.length() > 80){
                System.out.println("overflow");
            }else{
                System.out.println(a.add(b));
            }
        } 
        
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
            if (s.length() > 80){
                ^
  symbol:   variable s
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		while(scan.hasNext()){
			int N = scan.nextInt();
			for(int i = 0; i < N; i++){
				BigInteger a = scan.nextBigInteger();
				BigInteger b = scan.nextBigInteger();
				String num = String.valueOf(a.add(b));
				if(num.length() > 80){
					System.out.printf("%s\n", "overflow");
				} else{
					System.out.printf("%s\n", num);
				}
			}
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
				BigInteger a = scan.nextBigInteger();
				^
  symbol:   class BigInteger
  location: class Main
Main.java:11: error: cannot find symbol
				BigInteger b = scan.nextBigInteger();
				^
  symbol:   class BigInteger
  location: class Main
2 errors
Language: Java

import java.math.BigDecimal;
import java.util.Scanner;

public class NationalBudget {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int count = Integer.parseInt(sc
				.nextLine());

		for (int i = 0; i < count; i++) {

			String output = new BigDecimal(sc
					.nextLine()).add(
							new BigDecimal(sc
									.nextLine()))
							.toString();

			if (output.length() > 80) {
				output = "overflow";
			}

			System.out.println(output);
		}
	}
}

Compiler output:
Main.java:4: error: class NationalBudget is public, should be declared in a file named NationalBudget.java
public class NationalBudget {
       ^
1 error
Language: Java

import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int setNum = Integer.parseInt(sc.nextLine());
        int inputNum = setNum * 2;
        String[][] inputSet = new String[setNum][2];
 
        int cnt = 0;
        boolean zero = true;
        while (0 < inputNum--) {
            String input = sc.nextLine();
            if(zero)
                inputSet[cnt][0] = input;
            else
                inputSet[cnt++][1] = input;
 
            zero = !zero;
        }
 
        for(int i=0; i < setNum; i++) {
            output(inputSet[i][0], inputSet[i][1]);
        }
    }
 
    public static void output(String a, String b) {
        String[] partA = slice(a);
        String[] partB = slice(b);
        String[] output = new String[10];
 
        Long carry = 0L;
        int cnt = 0;
        for(int i=0; i < 9; i++) {
            Long x = Long.valueOf(partA[i] != null ? partA[i] : "0") + Long.valueOf(partB[i] != null ? partB[i] : "0") + carry;
            String y = String.valueOf(x);
            output[i] = y.length() <= 10 ? y : y.substring(y.length()-10);
            if(y.length() <= 10 && partA[i+1] == null && partB[i+1] == null) break;
            carry = y.length() <= 10 ? 0L : Long.valueOf(y.substring(0, y.length()-10));
            cnt++;
        }
 
if(cnt==8){
String buf = "";
            for(int i=8; 0<=i; i--) {
                buf += output[i] != null ? output[i] : "";
            }
if(buf.length==80){
 System.out.println(buf);
}
}

        if(partA[8] != null || partB[8] != null || 8 <= cnt) {
            System.out.println("overflow");
        } else {
            for(int i=7; 0<=i; i--) {
                System.out.print(output[i] != null ? output[i] : "");
            }
            System.out.println();
        }
    }
 
    public static String[] slice(String a) {
        int len = a.length();
        String[] ret = new String[10];
        int cnt = 0;
        while(10 < len) {
            ret[cnt++] = a.substring(len-10, len);
            len = len - 10;
        }
        ret[cnt] = a.substring(0, len);
        return ret;
    }
}

Compiler output:
Main.java:51: error: cannot find symbol
if(buf.length==80){
      ^
  symbol:   variable length
  location: variable buf of type String
1 error
Language: Java

import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
  
public class Main {
  
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int setNum = Integer.parseInt(sc.nextLine());
        int inputNum = setNum * 2;
        String[][] inputSet = new String[setNum][2];
  
        int cnt = 0;
        boolean zero = true;
        while (0 < inputNum--) {
            String input = sc.nextLine();
            if(zero)
                inputSet[cnt][0] = input;
            else
                inputSet[cnt++][1] = input;
  
            zero = !zero;
        }
  
        for(int i=0; i < setNum; i++) {
            output(inputSet[i][0], inputSet[i][1]);
        }
    }
  
    public static void output(String a, String b) {
        String[] partA = slice(a);
        String[] partB = slice(b);
        String[] output = new String[10];
  
        Long carry = 0L;
        int cnt = 0;
        for(int i=0; i < 9; i++) {
            Long x = Long.valueOf(partA[i] != null ? partA[i] : "0") + Long.valueOf(partB[i] != null ? partB[i] : "0") + carry;
            String y = String.valueOf(x);
            output[i] = y.length() <= 10 ? y : y.substring(y.length()-10);
            if(y.length() <= 10 && partA[i+1] == null && partB[i+1] == null) break;
            carry = y.length() <= 10 ? 0L : Long.valueOf(y.substring(0, y.length()-10));
            cnt++;
        }
  
if(cnt==8){
String buf = "";
            for(int i=8; 0<=i; i--) {
                buf += output[i] != null ? output[i] : "";
            }
if(buf.length()==80){
 System.out.println(buf);
}
}
 
        if(partA[8] != null || partB[8] != null || 8 <= cnt) {
            System.out.println("overflow");
        } else {
            for(int i=7; 0<=i; i--) {
                System.out.print(output[i] != null ? output[i] : "");
            }
            System.out.println();
        }
    }
  
    public static String[] slice(String a) {
        int len = a.length();
        String[] ret = new String[10];
        int cnt = 0;
        while(10 < len) {
            ret[cnt++] = a.substring(len-10, len);
            len = len - 10;
        }
        ret[cnt] = a.substring(0, len);
        return ret;
    }

Compiler output:
Main.java:76: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class Main {

public static main(String argv[]) {

	int num;
	BigDecimal bd1;
	BigDecimal bd2;
	BigDecimal sum;

	BufferReader br = new BufferReader(new InputStream(System.in));
	num = Integer.perseInt(br.readLine());
	while (num--) {
		ln1 = br.readLine();
		ln2 = br.readLine();
		if (ln1 == null || ln2 == null) break;
		if (ln1.length() > 80 || ln2.length() > 80) {
			System.out.println("overflow");
		}
		bd1 = new BigDecimal(ln1);
		bd2 = new BigDecimal(ln2);
		sum = bd1.add(bd2);
		if (sum.toString().getLength() > 80) {
			Stream.in.println("overflow");
		}
		System.out.println(sum);
	}
}
}

Compiler output:
Main.java:7: error: invalid method declaration; return type required
public static main(String argv[]) {
              ^
1 error