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

#include<stdio.h>
#include<iostream>
using#include<stdio.h>
#include<iostream>
using namespace std;
int main(){
  int n=0;
  int m=100000;
  cin>>n;
  for(int i=0;i<n;i++){
	  m=m*1.05;
	  if(m%1000!=0){
		  m=m+1000;
	  }
  }
  cout<<m<<endl;

  return 0;
}

Compiler output:
a.cc:3:6: error: stray '#' in program
    3 | using#include<stdio.h>
      |      ^
a.cc:3:7: error: expected nested-name-specifier before 'include'
    3 | using#include<stdio.h>
      |       ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout<<m<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout<<m<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>
int main(void) {
	int a,c,i;
	int b;
	scanf_s("%d", &a);
	b = 100000;
	for (i = 0; i < a; i++) {
		b = b * 1.05;
	}
	c = b % 10000;
	if (c!=0) {
		b = b + 10000-c;
	}
	printf("%d", b);
	return 0;
}

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

#include<iostream>
using namespace std;

int main(){
 int n;
 int money = 100000;

 for(int i = 0; i < n; ++i){
  maney = money + (money * 0.05);
  if(money % 1000 != 0){
   money += 1000;
  }
 }
 cout << money << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'maney' was not declared in this scope; did you mean 'money'?
    9 |   maney = money + (money * 0.05);
      |   ^~~~~
      |   money
Language: C++

#include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include <windows.h>

int main(void);
int kiriage(int num);


int main(){
	int n;					//n週
	int debut = 100000;		//借金
	std::cin >> n;

	for (int i = 0; i < n; i++)
	{
		debut *= 1.05;
		std::string str_debut = std::to_string(debut);
		if ((str_debut[str_debut.length() - 1] == '0') &&
			(str_debut[str_debut.length() - 2] == '0') &&
			(str_debut[str_debut.length() - 3] == '0')
			){
			;
		}
		else{
			debut = kiriage(debut);
		}
	}

	std::cout << debut << std::endl;

	//while (1);
	return 0;
}

//1000円未満を切り上げる関数
int kiriage(int num){
	num = num / 1000 * 1000 + 1000;
	
	return num;
}


Compiler output:
a.cc:5:10: fatal error: windows.h: No such file or directory
    5 | #include <windows.h>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main(){
    int n;
    cin>>n;
    int temp = 0,k;
    for(int i = 0; i < n; i++){
        k = (int)(sum * 0.05) % 1000;
        if(k != 0)
            temp = 1000;
        else
            temp = 0;
        sum += sum * 0.05 + temp - k;
    }
    cout<<sum<<endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'sum' was not declared in this scope
    9 |         k = (int)(sum * 0.05) % 1000;
      |                   ^~~
a.cc:16:11: error: 'sum' was not declared in this scope
   16 |     cout<<sum<<endl;
      |           ^~~
Language: C++

#include<iostream>
using namespace std;

int main() {
    int d = 100000;
    int n;
    cin >> n;
    while(n > 0; n--) {
        d *= 1.05;
        if(d % 1000) {
            d = (d / 1000 + 1) * 1000;
        }
    }
        cout << d << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ')' before ';' token
    8 |     while(n > 0; n--) {
      |          ~     ^
      |                )
a.cc:8:21: error: expected ';' before ')' token
    8 |     while(n > 0; n--) {
      |                     ^
      |                     ;
Language: C++

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

long int kane(int k){
	long int shakkin = 100000;
	for(int i=0;i<k;i++){
		shakkin = shakkin*1.05;
	if(shakkin%1000!=0)
		shakkin += 1000-(shakkin%1000);
	}
	return shakkin;
}

int main() {
	int n;
	cin >> n;
	cout << kane(n)　<<endl;
	return 0;
}


Compiler output:
a.cc:19:24: error: extended character 　 is not valid in an identifier
   19 |         cout << kane(n)　<<endl;
      |                        ^
a.cc: In function 'int main()':
a.cc:19:24: error: expected ';' before '\U00003000'
   19 |         cout << kane(n)　<<endl;
      |                        ^~
      |                        ;
Language: C++

p=100000;main(a){for(scanf("%d",&a);a--;p=(p/1000+(p%1000?1:0))*1000)p+=p/20;printf("%d",p);}

Compiler output:
a.cc:1:1: error: 'p' does not name a type
    1 | p=100000;main(a){for(scanf("%d",&a);a--;p=(p/1000+(p%1000?1:0))*1000)p+=p/20;printf("%d",p);}
      | ^
a.cc:1:14: error: expected constructor, destructor, or type conversion before '(' token
    1 | p=100000;main(a){for(scanf("%d",&a);a--;p=(p/1000+(p%1000?1:0))*1000)p+=p/20;printf("%d",p);}
      |              ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int n;
scanf("%d",&n);
double base = 100000;
for(int i=0;i<n;i++){
base*=1.05;
}
printf("%d\n,(int)base);
}

Compiler output:
a.cc:10:8: warning: missing terminating " character
   10 | printf("%d\n,(int)base);
      |        ^
a.cc:10:8: error: missing terminating " character
   10 | printf("%d\n,(int)base);
      |        ^~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
Language: C++

import java.util.Scanner;

public class Main 
{
	public static void main(String arg[])
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int de = 100000;

		for(int i=0; i<n; i++)
		{
			de = de / 100;
			de = de * 105;
			if(de%1000 != 0)
				de += 1000;
			de = de/1000;
			de = de*1000; 
		}
		System.out.println(de);
	}

}

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

#include<iostream>
#include<cmath>
int main(){
	double yami = 100.000;
	int n;
	std::cin >> n;
	for(int i = 0;i < n; ++i){
		yami += yami / 20.000;
		if(ceil(yami) != floor(yami)){
			yami = ceil(yami);
		}
	}
	std::cout << yami * 1000 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         std::cout << yami * 1000 << endl;
      |                                     ^~~~
      |                                     std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
    int n,a = 100000;
    cin >> n;
    for(int i=0;i<=n;i++)
    {
        a *= 1.05;
        
            a += 1000-cur%1000;
        
    }
    cout << a << endl;
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'cur' was not declared in this scope
   12 |             a += 1000-cur%1000;
      |                       ^~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
    int n,a = 100000;
    cin >> n;
    for(int i=0;i<=n;i++)
    {
        a *= 1.05;
        if(a%1000)
            a += 1000-cur%1000;
        
    }
    cout << a << endl;
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'cur' was not declared in this scope
   12 |             a += 1000-cur%1000;
      |                       ^~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
    int n,a = 100000;
    cin >> n;
    for(int i=0;i<n;i++)
    {
        a *= 1.05;
        
           a += 1000-a%1000;
        
    }
    cout << cur << endl;
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'cur' was not declared in this scope
   15 |     cout << cur << endl;
      |             ^~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
    int n,a = 100000;
    cin >> n;
    for(int i=0;i<n;i++)
    {
        a *= 1.05;
        if(a%1000)
        {
           a += 1000-a%1000;
         }
        
    }
    cout << cur << endl;
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'cur' was not declared in this scope
   17 |     cout << cur << endl;
      |             ^~~
Language: C++

#i#include <iostream>
using namespace std;

int main(){
	int week,a,b,ans,aans;
	cin>>week;
	a=100000*0.05;
	b=week+1;
	a*=b;
	ans=100000+a;
	aans=ans/1000;
	aans=ans*1000;
	if(aans!=ans)ans+100;
	cout<<ans<<endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i#include <iostream>
      |  ^
      |  if
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>week;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #i#include <iostream>
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<ans<<endl;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |         cout<<ans<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #i#include <iostream>
Language: C++

#include<iostream>
using namespace std;

int main(){
    double n;
    cin >> m;
    n = 100000;
    for(int i=0;i<m;i++){
        n = n * 1.05;
    }
    if(n%1000 > 0)
    {
        n = n/1000*1000+1000;
    }
    cout << (int)n;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'm' was not declared in this scope
    6 |     cin >> m;
      |            ^
a.cc:11:9: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(n%1000 > 0)
      |        ~^~~~~
      |        | |
      |        | int
      |        double
Language: C++

#include<iostream>
using namespace std;

int main(){
    int n;
    cin >> m;
    n = 100000;
    for(int i=0;i<m;i++){
        n = n * 1.05;
    }
    if(n%1000 > 0)
    {
        n = n/1000*1000+1000;
    }
    cout << n;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'm' was not declared in this scope
    6 |     cin >> m;
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(void){
  int n, ans = 100000;
  cin >> n;
  for(i = 0; i < n; i++){
    ans = ans * 1.05;
    if(ans % 1000 != 0);
    ans = ans - ans % 1000 + 10000;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i = 0; i < n; i++){
      |       ^
Language: C++

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

int main(){
int a;
a=100000;
int b;
b=0;
while(b<n){
a=a/20*21/1000*1000;
b=b+1;}
cout << a<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'n' was not declared in this scope
   10 | while(b<n){
      |         ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
	const double rate = 1.05;
	int n;
	
	while (cin >> n) {
		double debt = 100;	// 100kYen
		
		for (int i = 0; i < n; ++i) {
			debt = ceil(debt * rate);
		}
		
		cout << debt << "000" << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: 'ceil' was not declared in this scope
   14 |                         debt = ceil(debt * rate);
      |                                ^~~~
Language: C++

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

int n;
double rent = 100000;

int main()
	{
		cin>>n;
		for(int i=0;i<n;i++)
		{
		 rent = rent * 1.05 ;
		 if( rent % 1000 != 0)
		 rent = rent + 1000;
		 
		}
		printf("%.0lf\n",rent);
		return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |                  if( rent % 1000 != 0)
      |                      ~~~~ ^ ~~~~
      |                      |      |
      |                      double int
Language: C++

#include <stdio.h>
int main(){
 int n;
 double debt=100000;
 scanf("%d",&n);
 while(n--){
   debt += debt*0.05;
   if(debt%1000!=0){
     debt -= debt%1000;
     debt += 1000;
   }
 }
 printf("%lf\n",debt);
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |    if(debt%1000!=0){
      |       ~~~~^~~~~
      |       |    |
      |       |    int
      |       double
a.cc:9:18: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |      debt -= debt%1000;
      |              ~~~~^~~~~
      |              |    |
      |              |    int
      |              double
Language: C++

#include <stdio.h>
int main(){
  int n;
  double debt=100000.0;
  scanf("%d",&n);
  while(n--){
    debt += debt*0.05;
    if(debt%1000!=0){
      debt -= debt%1000;
      debt += 1000;
    }
  }
  printf("%lf\n",debt);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |     if(debt%1000!=0){
      |        ~~~~^~~~~
      |        |    |
      |        |    int
      |        double
a.cc:9:19: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |       debt -= debt%1000;
      |               ~~~~^~~~~
      |               |    |
      |               |    int
      |               double
Language: C++

#include <stdio.h>
int main(){
 int n;
 double debt=100000;
 scanf("%d",&n);
 while(n--){
   debt += debt*0.05;
   if((int)debt%1000!=0){
     debt -= debt%1000;
     debt += 1000;
   }
 }
 printf("%lf\n",debt);
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |      debt -= debt%1000;
      |              ~~~~^~~~~
      |              |    |
      |              |    int
      |              double
Language: C++

using System;
class main
{
    static void Main(String[] args)
    {
        double n = double.Parse(Console.ReadLine());
        double b = 100000;
        for (int i = 0; i < n; i++)
        {
            b = b * 1.05;
            b = (Math.Ceiling(b / 1000))*1000;
        }
        Console.WriteLine(b);
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:22: error: 'String' has not been declared
    4 |     static void Main(String[] args)
      |                      ^~~~~~
a.cc:4:31: error: expected ',' or '...' before 'args'
    4 |     static void Main(String[] args)
      |                               ^~~~
a.cc:15:2: error: expected ';' after class definition
   15 | }
      |  ^
      |  ;
a.cc: In static member function 'static void main::Main(int*)':
a.cc:6:20: error: expected primary-expression before 'double'
    6 |         double n = double.Parse(Console.ReadLine());
      |                    ^~~~~~
a.cc:11:18: error: 'Math' was not declared in this scope
   11 |             b = (Math.Ceiling(b / 1000))*1000;
      |                  ^~~~
a.cc:13:9: error: 'Console' was not declared in this scope
   13 |         Console.WriteLine(b);
      |         ^~~~~~~
Language: C++

using System;

class main
{
    static void Main(String[] args)
    {
        double n = double.Parse(Console.ReadLine());
        double b = 100000;
        for (int i = 0; i < n; i++)
        {
            b = b * 1.05;
            b = (Math.Ceiling(b / 1000))*1000;
        }
        Console.WriteLine(b);
        //Console.ReadKey();
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:22: error: 'String' has not been declared
    5 |     static void Main(String[] args)
      |                      ^~~~~~
a.cc:5:31: error: expected ',' or '...' before 'args'
    5 |     static void Main(String[] args)
      |                               ^~~~
a.cc:17:2: error: expected ';' after class definition
   17 | }
      |  ^
      |  ;
a.cc: In static member function 'static void main::Main(int*)':
a.cc:7:20: error: expected primary-expression before 'double'
    7 |         double n = double.Parse(Console.ReadLine());
      |                    ^~~~~~
a.cc:12:18: error: 'Math' was not declared in this scope
   12 |             b = (Math.Ceiling(b / 1000))*1000;
      |                  ^~~~
a.cc:14:9: error: 'Console' was not declared in this scope
   14 |         Console.WriteLine(b);
      |         ^~~~~~~
Language: C++

#include <iostream>

int main(){
	int n,debt=100000;
	for(int i=0,cin>>n;i<n;i++) debt*=1.05;
	std::cout<<(debt%1000 ? debt/1000*1000+1000 : debt)<<'\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: expected ';' before '>>' token
    5 |         for(int i=0,cin>>n;i<n;i++) debt*=1.05;
      |                        ^~
      |                        ;
a.cc:5:24: error: expected primary-expression before '>>' token
    5 |         for(int i=0,cin>>n;i<n;i++) debt*=1.05;
      |                        ^~
a.cc:5:31: error: expected ')' before ';' token
    5 |         for(int i=0,cin>>n;i<n;i++) debt*=1.05;
      |            ~                  ^
      |                               )
a.cc:5:32: error: 'i' was not declared in this scope
    5 |         for(int i=0,cin>>n;i<n;i++) debt*=1.05;
      |                                ^
Language: C++

#include <iostream>

int main(){
	int n,debt=100000;
	cin>>n;
	for(int i=0;i<n;i++) debt*=1.05;
	std::cout<<(debt%1000 ? debt/1000*1000+1000 : debt)<<'\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <iostream>

int main(){
	int n,debt=100000;
	for(int i=0,std::cin>>n;i<n;i++) debt*=1.05;
	std::cout<<(debt%1000 ? debt/1000*1000+1000 : debt)<<'\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:29: error: qualified-id in declaration before '>>' token
    5 |         for(int i=0,std::cin>>n;i<n;i++) debt*=1.05;
      |                             ^~
a.cc:5:29: error: expected ';' before '>>' token
    5 |         for(int i=0,std::cin>>n;i<n;i++) debt*=1.05;
      |                             ^~
      |                             ;
a.cc:5:29: error: expected primary-expression before '>>' token
    5 |         for(int i=0,std::cin>>n;i<n;i++) debt*=1.05;
      |                             ^~
a.cc:5:36: error: expected ')' before ';' token
    5 |         for(int i=0,std::cin>>n;i<n;i++) debt*=1.05;
      |            ~                       ^
      |                                    )
a.cc:5:37: error: 'i' was not declared in this scope
    5 |         for(int i=0,std::cin>>n;i<n;i++) debt*=1.05;
      |                                     ^
Language: C++

#include <iostream>

int main(){
	int n,debt=100000;
	std::cin>>n;
	for(int i=0;i<n;i++){
		debt*=1.05;
		debt=debt%1000 ? debt/1000*1000+1000 : debt
	}
	std::cout<<debt<<'\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:60: error: expected ';' before '}' token
    8 |                 debt=debt%1000 ? debt/1000*1000+1000 : debt
      |                                                            ^
      |                                                            ;
    9 |         }
      |         ~
Language: C++

#include "stdafx.h"
#include <iostream>
using namespace std;

int main(){

	int i,n=100000,m;

	cin >> i;
	while(i--){
		n+=n*0.05;
		m=n%1000;
		if(m){
			n+=1000-m;
		}
	}
	cout << n << endl;

	return 0;
}

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

#include <iostream>
using namespace std;

int main()
{
	double d = 100000.0;
	int n;
	cin >> n;
	for(int i=0; i<n; i++){
		d *= 1.05;
		d /= 1000.0;
		d = ceil(d);
		d *= 1000;
	}
	cout << (int)d << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'ceil' was not declared in this scope
   12 |                 d = ceil(d);
      |                     ^~~~
Language: C++

#include<iostream>

int main(){
	int n;
	double sum=100000;
	std::cin>>n;
	for(int i=0;i<n;i++){
		sum*=1.05;
		sum/=1000;
		sum=std::ceil(sum);
		sum*=1000;
	}
	std::cout<<sum<<std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'ceil' is not a member of 'std'
   10 |                 sum=std::ceil(sum);
      |                          ^~~~
Language: Java

import java.util.Scanner;

public class main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            System.out.println(solve(in.nextInt()));
        }
    }
    static int solve(int n){
        int res = 0;
        for(int i=0;i<10;i++)for(int j=0;j<10;j++)for(int k=0;k<10;k++)for(int l=0;l<10;l++){
            res += (i+j+k+l == n) ? 1 : 0;
        }
        return res;
    }

}

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

import java.util.Scanner;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
int n=sc.nectInt();
int num=0;
for(int a=0;a<=9;a++){
for(int b=0;b<=9;b++){
for(int c=0;c<=9;c++){
if(binary_search(n-a-b-c)){
num++;
}
}
}
}
System.out.println(num);
}
}
public static boolean binary_search(int x){
int n=new int[10];
for(int a=0;a<=9;a++){
n[a]=a
}
int l=0;
int r=10;
while(r-l>=1){
int i=l+r/2;
if(x==a[i]){
return true;
}
else if(x>a[i]){
l=i+1;
}
else if(x<a[i]){
r=i;
}
}
return false;
}
}

Compiler output:
Main.java:24: error: ';' expected
n[a]=a
      ^
1 error
Language: Java

import java.util.Scanner;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
int n=sc.nectInt();
int num=0;
for(int a=0;a<=9;a++){
for(int b=0;b<=9;b++){
for(int c=0;c<=9;c++){
if(binary_search(n-a-b-c)){
num++;
}
}
}
}
System.out.println(num);
}
}
public static boolean binary_search(int x){
int n=new int[10];
for(int a=0;a<=9;a++){
n[a]=a;
}
int l=0;
int r=10;
while(r-l>=1){
int i=l+r/2;
if(x==a[i]){
return true;
}
else if(x>a[i]){
l=i+1;
}
else if(x<a[i]){
r=i;
}
}
return false;
}
}

Compiler output:
Main.java:7: error: cannot find symbol
int n=sc.nectInt();
        ^
  symbol:   method nectInt()
  location: variable sc of type Scanner
Main.java:22: error: incompatible types: int[] cannot be converted to int
int n=new int[10];
      ^
Main.java:24: error: array required, but int found
n[a]=a;
 ^
Main.java:30: error: cannot find symbol
if(x==a[i]){
      ^
  symbol:   variable a
  location: class Main
Main.java:33: error: cannot find symbol
else if(x>a[i]){
          ^
  symbol:   variable a
  location: class Main
Main.java:36: error: cannot find symbol
else if(x<a[i]){
          ^
  symbol:   variable a
  location: class Main
6 errors
Language: Java

import java.util.Scanner;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
int n=sc.nextInt();
int num=0;
for(int a=0;a<=9;a++){
for(int b=0;b<=9;b++){
for(int c=0;c<=9;c++){
if(binary_search(n-a-b-c)){
num++;
}
}
}
}
System.out.println(num);
}
}
public static boolean binary_search(int x){
int[] n=new int[10];
for(int a=0;a<=9;a++){
n[a]=a;
}
int l=0;
int r=10;
while(r-l>=1){
int i=l+r/2;
if(x==a[i]){
return true;
}
else if(x>a[i]){
l=i+1;
}
else if(x<a[i]){
r=i;
}
}
return false;
}
}

Compiler output:
Main.java:30: error: cannot find symbol
if(x==a[i]){
      ^
  symbol:   variable a
  location: class Main
Main.java:33: error: cannot find symbol
else if(x>a[i]){
          ^
  symbol:   variable a
  location: class Main
Main.java:36: error: cannot find symbol
else if(x<a[i]){
          ^
  symbol:   variable a
  location: class Main
3 errors
Language: Java

public class Demo{
public int sumAll(int...numbers){

 int result = 0;
 for(int i = 0 ; i<numbers.length;i++){
  result+=numbers[i];
} 
return result;
}
}

Compiler output:
Main.java:1: error: class Demo is public, should be declared in a file named Demo.java
public class Demo{
       ^
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){
		List<Integer> list = new ArrayList<Integer>();
		int cnt = 0;
		while(scan.hasNext()){
			for(int i = 0; i <= 9; i++){
				for(int j = 0; j <= 9; j++){
					for(int k = 0; k <= 9; k++){
						for(int l = 0; l <= 9; l++){
							if(i + j + k + l == n){
								cnt++;
							}
						}
					}
				}
			}
			list.add(cnt);
		}
		for(int n : list){
			System.out.printf("%d\n", n);
		}
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
							if(i + j + k + l == n){
							                    ^
  symbol:   variable n
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class vol0_0008 {
	public static void main(String[] a) {
		final int max = 10;
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		long ans = 0;
		for (int w = 0; w < max; w++) {
			if(n - w > (max - 1) * 3)continue;
			for (int x = w; x < max; x++) {
				if(n - w - x > (max - 1) * 2)continue;
				for (int y = x; y < max; y++) {
					if(n - w - x - y > (max - 1))continue;
					int z = n - w - x - y;
					if(w == x && x == y && y == z){
						ans +=1;
					}else{
						if((w == x && x == y)||(w == x && x == z)||(w == y && y == z)||(x == y && y == z)){
							ans += 4;
						}else{
							if((w == x && y == z)||(w == y && x == z)||(w == z && y == x)){
								ans += 6;
							}else{
								if((w == x)||(w == y)||(w == z)||(x == y)||(x == z)||(y == z)){
									ans += 12;
								}else{
									ans += 24;
								}
							}
						}
					}
				}
			}
		}
		System.out.println(ans);
	}
}

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

import java.util.Scanner;

public class Sumof4Integers {

    public static void main(String[] args) {
        int aList[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
        int bList[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
        int cList[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
        int dList[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
        try (Scanner scan = new Scanner(System.in)) {
            String inDataStr;
            while ((inDataStr = scan.nextLine()) != null && !"".equals(inDataStr)) {
                int inData = Integer.parseInt(inDataStr);
                int combi = 0;
                for (int a : aList) {
                    for (int b : bList) {
                        for (int c : cList) {
                            for (int d : dList) {
                                if (a + b + c + d == inData) {
                                    combi++;
                                }
                            }
                        }
                    }
                }
                System.out.println(combi);
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }

}

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

import java.util.Scanner;
import volume0.BaseExe;

public class Work extends BaseExe {

    public static void main(String[] args) {
        new Work().exeSysIn();
    }

    @Override
    protected void execute(Scanner scan) {
        int[] num = new int[51];
        for (int a = 0; a <= 9; a++)
            for (int b = 0; b <= 9; b++)
                for (int c = 0; c <= 9; c++)
                    for (int d = 0; d <= 9; d++)
                        num[a + b + c + d]++;
        String ln = "";
        while (scan.hasNextLine() && !"".equals(ln = scan.nextLine()))
            System.out.println(num[Integer.parseInt(ln)]);
    }

}

Compiler output:
Main.java:4: error: class Work is public, should be declared in a file named Work.java
public class Work extends BaseExe {
       ^
Main.java:2: error: package volume0 does not exist
import volume0.BaseExe;
              ^
Main.java:4: error: cannot find symbol
public class Work extends BaseExe {
                          ^
  symbol: class BaseExe
Main.java:7: error: cannot find symbol
        new Work().exeSysIn();
                  ^
  symbol:   method exeSysIn()
  location: class Work
Main.java:10: error: method does not override or implement a method from a supertype
    @Override
    ^
5 errors
Language: Java

public class Mian {

	public static void main(String[] args) {
		int count = 0;
		int n = new java.util.Scanner(System.in).nextInt();
		for (int a = 0; a < 10; a++) {
			for (int b = 0; b < 10; b++) {
				for (int c = 0; c < 10; c++) {
					for (int d = 0; d < 10; d++) {
						if (a + b + c + d == n) {
							count++;
						}
					}
				}
			}
		}
		System.out.println(count);

	}

}

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

public class Mian {
	static int n = new java.util.Scanner(System.in).nextInt();

	public static void main(String[] args) {
		int count = 0;
		for (int a = 0; a < 10; a++) {
			for (int b = 0; b < 10; b++) {
				for (int c = 0; c < 10; c++) {
					for (int d = 0; d < 10; d++) {
						if (a + b + c + d == n) {
							count++;
						}
					}
				}
			}
		}
		System.out.println(count);

	}

}

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

public class Mian {
	static int n = new java.util.Scanner(System.in).nextInt();
	static int count = 0;
	public static void main(String[] args) {
		for (int a = 0; a < 10; a++) {
			for (int b = 0; b < 10; b++) {
				for (int c = 0; c < 10; c++) {
					for (int d = 0; d < 10; d++) {
						if (a + b + c + d == n) {
							count++;
						}
					}
				}
			}
		}
		System.out.println(count);

	}

}

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

import java.util.Scanner;

class Problem {

    public static int sumOf4Int(int n){
        int count = 0;
        if(n > 36){
            return 0;
        }
        for(int a = 0; a < 10; a ++){
            for(int b = 0; b < 10; b ++){
                for(int c = 0; c < 10; c ++){
                    for(int d = 0; d < 10; d ++){
                        if(a + b + c + d == n)
                            count++;
                    }
                }
            }
        }
        return count;
    }

    public static void main(String[] args){
        System.out.println(sumOf4Int(args[1]));
    }
}

Compiler output:
Main.java:24: error: incompatible types: String cannot be converted to int
        System.out.println(sumOf4Int(args[1]));
                                         ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		System.out.println("Enter a number:" );
		int n = reader.nextInt();
		System.out.println((sum(n)));
		reader.close();
	}
	public static int sum(int n){
		int combos = 0;
		for(int i=0; i<=9; i++){
			for(int j=0; j<=9; j++){
				for (int k=0; k<=9; k++){
					for(int l=0; l<=9; l++){
						if ((i + j + k + l) == n){
							combos++;
						}
					}
				}
			}
		}
		return combos;
	}

}

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

import java.util.Scanner;

public class p1 {

    public static void main(String args[]) {
        int n, ans;

        Scanner reader = new Scanner(System.in);
        while (true) {
            n = reader.nextInt();
            ans = 0;
            for(int a = 0; a < 10; a++) {
                for (int b = 0; b < 10; b++) {
                    for (int c = 0; c < 10; c++) {
                        for (int d = 0; d < 10; d++) {
                            if (a + b + c + d == n) {
                                ans++;
                            }
                        }
                    }
                }
            }
            System.out.println(ans);
        }
    }
}

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

import java.util.*;
import java.io.*;

public class November7of2017 {

	
	public static void main(String[] args) throws IOException 
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s; 
		while( (s=br.readLine())!=null) 
		{
			int n = Integer.parseInt(s);
			System.out.println(getComb(n));
		}
	}
	public static int getComb( int n) 
	{
		int total = 0;
		for( int i=0;i<=9;i++) 
		{
			for(int j =0; j<=9;j++) 
			{
				for(int k = 0;k<=9;k++) 
				{
					for( int l = 0; l<=9;l++) 
					{
						if((i+j+k+l) == n) 
						{
							total++;
						}
					}
				}
			}
		}
		return total;

	}
}

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

public class Main { 
  public static void main(String[] args){
	  int count=0;
	  int a=0;
	  Scanner sc = new Scanner(System.in);
			  int n = sc.nextInt();
	  for (int i = 0;i<=9;i++) {
		  for(int j = 0;j<=9;j++) {
			  for(int k =0;k<=9;k++) {
				  for(int l = 0;l<=9;l++) {
					  a = i + j + k + l;
					  if(a==n) count++;
				  }
			  }
		  }
		  
	  }
	  System.out.println(count);
  
  }
}


Compiler output:
Main.java:5: error: cannot find symbol
	  Scanner sc = new Scanner(System.in);
	  ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	  Scanner sc = new Scanner(System.in);
	                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main { 
  public static void main(String[] args){
	  int count=0;
	  int a=0;
	  Scanner sc = new Scanner(System.in);
			  int n = sc.nextInt();
	  for (int i = 0;i<=9;i++) {
		  for(int j = 0;j<=9;j++) {
			  for(int k =0;k<=9;k++) {
				  for(int l = 0;l<=9;l++) {
					  a = i + j + k + l;
					  if(a==n) count++;
				  }
			  }
		  }
		  
	  }
	  System.out.println(count);
  
  }
}



Compiler output:
Main.java:5: error: cannot find symbol
	  Scanner sc = new Scanner(System.in);
	  ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	  Scanner sc = new Scanner(System.in);
	                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main { 
	public static void main(String[] args){
		int count=0;
		int a=0;
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()) {
			int n = sc.nextInt();
			for (int i = 0;i<=9;i++) {
				for(int j = 0;j<=9;j++) {
					for(int k =0;k<=9;k++) {
						for(int l = 0;l<=9;l++) {
							
							a = i + j + k + l;
							if(a==n) count++;
						}
					}
				}

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




Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java


iimport java.util.Scanner;
public class Main { 
	public static void main(String[] args){
		int count=0;
		int a=0;
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()) {
			int n = sc.nextInt();
			for (int i = 0;i<=9;i++) {
				for(int j = 0;j<=9;j++) {
					for(int k =0;k<=9;k++) {
						for(int l = 0;l<=9;l++) {
							
							a = i + j + k + l;
							if(a==n) count++;
						}
					}
				}

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



Compiler output:
Main.java:2: error: class, interface, enum, or record expected
iimport java.util.Scanner;
^
1 error
Language: Java

import java.io.*;

class Sumof4Integers
{
 public static void main(String args[])throws IOException
 {
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  for(;;)
  {
   int cnt=0;
   String str_n = br.readLine();
   if(str_n==null) break;
   int n = Integer.parseInt(str_n);
   for(int a = 0; a <= 9; a++)
   {
    for(int b = 0; b <= 9; b++)
    {
     for(int c = 0; c <= 9; c++)
     {
      for(int d = 0; d <= 9; d++)
      {
       if(a+b+c+d==n)
        cnt++;
      }
     }
    }
   }
   System.out.println(cnt);
  }
 }

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

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

public class Sum
{
	public static void main(String[] arg) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s;
		while((s=br.readLine())!=null)
		{
		    int n = Integer.valueOf(s);
		    int comb=0;
	    	    int[] a = new int[10];
		    for(int i=0; i<10; i++)
   		    	a[i] = i;

  	            for(int b=0; b<10; b++)
	                for(int c=0; c<10; c++)
			    for(int d=0; d<10; d++)
			    	if(Arrays.binarySearch(a,n-b-c-d)>=0)
				comb++;
  		    System.out.println(comb);
		}
	}
}

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

import java.util.Scanner;

public class AOJ_0008 {

	/**
	 * @param args
	 */
	public void run(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int n = sc.nextInt();
			int count = 0;
			for(int i=0;i<10;i++){
				for(int j=0;j<10;j++){
					for(int k=0;k<10;k++){
						for(int l=0;l<10;l++){
							if(i+j+k+l==n){
								count++;
							}
						}
					}
				}
			}
			System.out.println(count);
		}
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new AOJ_0008().run();
	}

}

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

import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public void run(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int n = sc.nextInt();
			int count = 0;
			for(int i=0;i<10;i++){
				for(int j=0;j<10;j++){
					for(int k=0;k<10;k++){
						for(int l=0;l<10;l++){
							if(i+j+k+l==n){
								count++;
							}
						}
					}
				}
			}
			System.out.println(count);
		}
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new AOJ_0008().run();
	}

}

Compiler output:
Main.java:29: error: cannot find symbol
		new AOJ_0008().run();
		    ^
  symbol:   class AOJ_0008
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public void run(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int n = sc.nextInt();
			int count = 0;
			for(int i=0;i<10;i++){
				for(int j=0;j<10;j++){
					for(int k=0;k<10;k++){
						for(int l=0;l<10;l++){
							if(i+j+k+l==n){
								count++;
							}
						}
					}
				}
			}
			System.out.println(count);
		}
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new Main.run();
	}

}

Compiler output:
Main.java:29: error: cannot find symbol
		new Main.run();
		        ^
  symbol:   class run
  location: class Main
1 error
Language: Java

import java.util.*;

public class eight{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int count;
		int n;
		
		while(true){
			count = 0;
			if(!sc.hasNext())break;
			n = sc.nextInt();
			for(int i=0;i<10;i++){
				for(int j=0;j<10;j++){
					for(int k=0;k<10;k++){
						for(int l=0;l<10;l++){
							if(i+j+k+l == n)++count;
						}
					}
				}
			}
			System.out.println(count);
		}
	}
}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int n=sc.nextInt();
			for(int i1=0;i1<=n;i1++){
				for(int i2=0;i2<=n-i1;i2++){
					for(int i3=0;i3<=n-i1-i2;i3++){
						int i4=n-i1-i2-i3;
						System.out.println(i1+","+i2+","+i3+","+i4);
					}
				}
			}
		}
		sc.close();
	}
}
		sc.close();
	}
}

Compiler output:
Main.java:19: error: class, interface, enum, or record expected
		sc.close();
		^
Main.java:20: error: class, interface, enum, or record expected
	}
	^
2 errors
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        while(sc.hasNext()){
            int n = sc.nextInt();
            int count = 0;
            if(n>36){
                System.out.println(0);
                continue;
            }else{
                for(int a=0; a<10;a++){
                    for(int b=0; b<10-a; b++){
                        for(int c=0; c<10-(a+b); c++){
                            for(int d=0; d<10(a+b+c); d++){
                                if((a+b+c+d)==n){
                                    count++;
                                }
                            }
                        }
                    }
                }
            }
            
            System.out.println(count);
        }
    }
}

Compiler output:
Main.java:17: error: ';' expected
                            for(int d=0; d<10(a+b+c); d++){
                                             ^
Main.java:17: error: ')' expected
                            for(int d=0; d<10(a+b+c); d++){
                                                    ^
Main.java:17: error: ';' expected
                            for(int d=0; d<10(a+b+c); d++){
                                                         ^
3 errors
Language: Java

import java.util.Scanner;
class Main{

	
	public static void main(String[] a) {
	Scanner keyboad=new Scanner(System.in);
n=keyboad.nextInt()
 for(int a=0;a<10;a++){
            for(int b=0;b<10;b++){
                for(int c=0;c<10;c++){
                    for(int d=0;d<10;d++){
                        if(a+b+c+d==n){
                            count++;
                        }
                    }
                }
            }
        }

Compiler output:
Main.java:7: error: ';' expected
n=keyboad.nextInt()
                   ^
Main.java:18: error: reached end of file while parsing
        }
         ^
2 errors
Language: Java

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

public class Sum4 {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String input = br.readLine();
		
		int inputAngka = Integer.parseInt(input);
		int counter = 0;
		
		for(int i = 0; i <= 9; i++){
			for(int j = 0; j <= 9; j++){
				for(int k = 0; k <= 9; k++){
					for(int l = 0; l <= 9; l++){
						if(i + j + k + l == inputAngka){
							counter++;
						}
					}
				}
			}
		}
		
		System.out.println(counter);
	}
}

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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNext()) {
			String line = sc.nextLine();
			Scanner s = new Scanner(line);
			int n = s.nextInt();
			int m = 0;
			if (n < 37) { //37以上の場合はm=0は確かであるため
				for(int a=0; a<=9; a++) {
					for(int b=0; b<=9; b++) {
						for(int c=0; c<=9; c++) {
							for(int d=0; d<=9; d++) {
								if (a + b + c + d == n) m++;
							}
						}
					}
				}
			}
			System.out.println(m);
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
			Scanner s = new Scanner(line);
			^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
			Scanner s = new Scanner(line);
			                ^
  symbol:   class Scanner
  location: class Main
4 errors
Language: Java

import java.util.Scanner;


public class AOJ_Volume0008 {
	public static void main(String[] args){
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while(sc.hasNextLine()){
			int number = sc.nextInt();
			int count = 0;

			for(int i=0;i<10;i++){
				for(int j=0;j<10;j++){
					for(int k=0;k<10;k++){
						for(int l=0;l<10;l++){
							if(i+j+k+l == number) count++;
						}
					}
				}
			}
			System.out.println(count);
		}
	}
}

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

import java.io.*;

public class Main0008{
	public static void main(String[] args){
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s;
		int t;
		int n=0;
		try{
			while((s=reader.readLine()) !=null){
				t=Integer.parseInt(s);
				for(int a=0;a<10;a++){
					for(int b=0;b<10;b++){
						for(int c=0;c<10;c++){
							for(int d=0;d<10;d++){
								if((a+b+c+d) == t){
										n += 1;
								}
							}
						}
					}
				}
				System.out.println(n);
				n=0;
			}
		}catch(IOException e){
			System.out.println(e);
		}
	}
}

Compiler output:
Main.java:3: error: class Main0008 is public, should be declared in a file named Main0008.java
public class Main0008{
       ^
1 error