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

#include <iostream>
#include <string>
using namespace std;
int main(){
char a[40];
int len,b;
cin.getline(a,40);
len = strlen(a);
for(int i=len;i>=0;i--){
cout<<a[i];
}
cout<<\n<<endl;
return 0;
}

Compiler output:
a.cc:12:7: error: stray '\' in program
   12 | cout<<\n<<endl;
      |       ^
a.cc: In function 'int main()':
a.cc:8:7: error: 'strlen' was not declared in this scope
    8 | len = strlen(a);
      |       ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
a.cc:12:8: error: 'n' was not declared in this scope
   12 | cout<<\n<<endl;
      |        ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
char a[40];
int len,b;
cin.getline(a,40);
len = strlen(a);
for(int i=len;i>=0;i--){
cout<<a[i];
}
cout<<' '<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'strlen' was not declared in this scope
    8 | len = strlen(a);
      |       ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
char a[40];
int len,b;
cin.getline(a,40);
len = strlen(a);
for(int i=len;i>=0;i--){
cout<<a[i];
}
cout<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'strlen' was not declared in this scope
    9 | len = strlen(a);
      |       ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
char a[40]={0};
int len,b;
cin.getline(a,40);
len = strlen(a);
for(int i=len-1;i>=0;i--){
cout<<a[i];
}
cout<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'strlen' was not declared in this scope
    9 | len = strlen(a);
      |       ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
char a[40]={0};
int len,b;
cin>>a;
len = strlen(a);
for(int i=len-1;i>=0;i--){
cout<<a[i];
}
cout<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'strlen' was not declared in this scope
    9 | len = strlen(a);
      |       ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: C++

#include <iostream>
#include <iostring>
#include <algorithm>
using namespace std;
int main(){
char a[40]={0};
int len,b;
cin.getline(a,40);
len = strlen(a);
for(int i=len-1;i>=0;i--){
cout<<a[i];
}
cout<<endl;
return 0;
}

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

#include<stdio.h>
#include<string.h>

int main()
{
     char a[21];
     gets(a);
     strrev(a);
     puts(a);

     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |      gets(a);
      |      ^~~~
      |      getw
a.cc:8:6: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    8 |      strrev(a);
      |      ^~~~~~
      |      strsep
Language: C++

#include <iostream>
#include <string>

using namespace  std;

int main()


{
    string s;
   int i;
 while(cin>>s)
{

  strreverse(s)
cout<<s<<endl;
}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'strreverse' was not declared in this scope
   15 |   strreverse(s)
      |   ^~~~~~~~~~
Language: C++

#include <iostream>
#include<algorithm>
#include<string.h>
using namespace std;

int main()
{
	char ar[25];
	gets(ar);
	reverse(ar,ar + strlen(ar));
	puts(ar);	 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |         gets(ar);
      |         ^~~~
      |         getw
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main() {
	string str;
	cin>>str;
	reverse(str.begin(),str.end());
	cout<<str<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'reverse' was not declared in this scope
    7 |         reverse(str.begin(),str.end());
      |         ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
	char s[21];
	cin.getline(s, 21, '\n');
	int l = strlen(s);
	for (int i = l - 1; i >= 0; i--)
		cout << s[i];
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'strlen' was not declared in this scope
    8 |         int l = strlen(s);
      |                 ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

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

int main()
{
	char s[21];
	cin.getline(s, 21, '\n');
	int l = strlen(s);
	for (int i = l - 1; i >= 0; i--)
		cout << s[i];
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'strlen' was not declared in this scope
    9 |         int l = strlen(s);
      |                 ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<string>
Language: C++

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

int main()
{
	char s[21];
	cin.getline(s, 21, '\n');
	int l = strlen(s);
	for (int i = l - 1; i >= 0; i--)
		cout << s[i];
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'strlen' was not declared in this scope
    9 |         int l = strlen(s);
      |                 ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<string>
Language: C++

#include <iostream>
using namespace std;

int main() {
	string s;
	cin>>s;
	for(int i=s.size();--i);
		cout<<s[i];
	cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before ')' token
    7 |         for(int i=s.size();--i);
      |                               ^
      |                               ;
a.cc:8:25: error: 'i' was not declared in this scope
    8 |                 cout<<s[i];
      |                         ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	string s;
	cin>>s;
	for(int i=s.size();--i)
		cout<<s[i];
	cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before ')' token
    7 |         for(int i=s.size();--i)
      |                               ^
      |                               ;
Language: C++

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
#define ll long long
using namespace std;
int main()
{
    //int k,i,j,tep,x,a[170],m;
    char a[22];
    gets(a);
     cout<<strrev(a)<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   13 |     gets(a);
      |     ^~~~
      |     getw
a.cc:14:12: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
   14 |      cout<<strrev(a)<<endl;
      |            ^~~~~~
      |            strsep
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char arr[20];
    gets(arr);
    strrev(arr);
    printf("%s\n",arr);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |     gets(arr);
      |     ^~~~
      |     getw
a.cc:7:5: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    7 |     strrev(arr);
      |     ^~~~~~
      |     strsep
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    char str[50];
    char *rev;
    scanf("%s",str);
    rev = strrev(str);
    printf("%s ",rev);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    7 |     rev = strrev(str);
      |           ^~~~~~
      |           strsep
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    char str [20];
    gets(str );
    strrev(str );
    printf("%s",str );
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |     gets(str );
      |     ^~~~
      |     getw
a.cc:6:5: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    6 |     strrev(str );
      |     ^~~~~~
      |     strsep
Language: C++

#include<bits/stdc++.h>
int main()
{
    int m,n,i,j,k,l;
    char a[400];
    while(scanf("%s",&a)==1)
    {
       strrev(a);
       printf("%s",a);
       printf("\n");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    8 |        strrev(a);
      |        ^~~~~~
      |        strsep
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{

    char str,rev,arr[100];
    printf("Enter a string to reverse\n");
    gets(arr);
    strrev(arr);
    printf("%s",arr);
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(arr);
      |     ^~~~
      |     getw
a.cc:9:5: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    9 |     strrev(arr);
      |     ^~~~~~
      |     strsep
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{

    char str,rev,arr[100];
    gets(arr);
    strrev(arr);
    printf("%s",arr);
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(arr);
      |     ^~~~
      |     getw
a.cc:8:5: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    8 |     strrev(arr);
      |     ^~~~~~
      |     strsep
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
	string s;
	cin>>s;
	reverse(s.begin(),s.end());
	cout<<s<<endl;
	

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected '}' at end of input
    9 |         cout<<s<<endl;
      |                       ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <string.h>

int main( void ){
    char str[20];
    scanf( "%s",str );
    for( int i = strlen( str )-1;i > 0;i-- )printf( "%c",str[i-1] );
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf( "%s",str );
      |     ^~~~~
a.cc:6:45: error: 'printf' was not declared in this scope
    6 |     for( int i = strlen( str )-1;i > 0;i-- )printf( "%c",str[i-1] );
      |                                             ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <string.h>
  +++ |+#include <cstdio>
    2 |
Language: C++

#include <string.h>

int main( void ){
    char str[20];
    scanf( "%s",str );
    for( int i = ( strlen( str )-1 );i > 0;i-- )printf( "%c",str[i-1] );
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf( "%s",str );
      |     ^~~~~
a.cc:6:49: error: 'printf' was not declared in this scope
    6 |     for( int i = ( strlen( str )-1 );i > 0;i-- )printf( "%c",str[i-1] );
      |                                                 ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <string.h>
  +++ |+#include <cstdio>
    2 |
Language: C++

#include <stdio.h>
#include <string.h>

int main( void ){
    char str[20];
    scanf( "%s",str );
    int lStr = strlen( str )-1;
    for( int i = 0;i < strlen( str );i++ ){
        printf( "%c",str[lStr] );
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:17: note: to match this '{'
    4 | int main( void ){
      |                 ^
Language: C++

#include <stdio.h>
#include <string.h>

int main( void ){
    char str[20];
    scanf( "%s",str );
    int lStr = strlen( str );
    for( int i = 0;i < strlen( str );i++ ){
        printf( '%c',str[lStr] );
        lStr--;
    }
    return 0;
}

Compiler output:
a.cc:9:17: warning: multi-character character constant [-Wmultichar]
    9 |         printf( '%c',str[lStr] );
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:9:17: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |         printf( '%c',str[lStr] );
      |                 ^~~~
      |                 |
      |                 int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<stdio.h>
#include<string.h>

void main()
{
 char str[20],temp;
 int i,j=0;
 gets(str);
 i=0;
 j=strlen(str)-1;

 while(i<j)
     {
     temp=str[i];
     str[i]=str[j];
     str[j]=temp;
     i++;
     j--;
     }

 printf("%s",str);
 return(0);
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:2: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |  gets(str);
      |  ^~~~
      |  getw
Language: C++

#include<stdio.h>
#include<string.h>

void main()
{
 char str[20],temp;
 int i,j=0;
 gets(str);
 i=0;
 j=strlen(str)-1;

 while(i<j)
     {
     temp=str[i];
     str[i]=str[j];
     str[j]=temp;
     i++;
     j--;
     }

 printf("%s",str);
 return 0;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:2: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |  gets(str);
      |  ^~~~
      |  getw
Language: C++

#include <stdio.h>
#include <string.h>
#include<conio.h>
int main()
{
   char arr[100];

   printf("\n");
   gets(arr);

   strrev(arr);

   printf("\n%s\n",arr);

   return 0;
}

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

#include <iostream>
using namespace std;
int main()
{
    string s;
    while(getline(cin, s))
    {
        string res;
        istringstream ss(s);
        string c;
        while(ss >> c)
        {
            for(int i = c.length() - 1; i >= 0; i--)
                res += c[i];
            res += " ";
        }
        res.erase(res.length() - 1, 1);
        cout << res << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: variable 'std::istringstream ss' has initializer but incomplete type
    9 |         istringstream ss(s);
      |                           ^
Language: C++

#include <stdio.h>

int main(){

	char str[20] = {},i;
	
	scanf("%s", str);
	
	for (i = 0; i < 20; i++){
		if (str[19 - i] >0){ printf("%c", str[19-i]); }
	}printf("\n")

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before 'return'
   11 |         }printf("\n")
      |                      ^
      |                      ;
   12 | 
   13 |         return 0;
      |         ~~~~~~
Language: C++

#include <stdio.h>
#include <string.h>

char str[20];
int i,len;
int main(){
	gets(str);
	len = strlen(str);
	for(i=len-1;i>=0;i--){
		printf("%c",str[i]);
	}
	printf("\n");
	retun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(str);
      |         ^~~~
      |         getw
a.cc:13:9: error: 'retun' was not declared in this scope
   13 |         retun 0;
      |         ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <queue>

int main(){
    std::string str;
    std::queue<char> que;
    std::cin >> str;
    const int size = str.size();
    for(int i = 0; i < size; ++i){
        que.push(str.back());
        str.erase(str.size()- 1, 1)
    }
    for(int i = 0; i < size; ++i){
        std::cout << que.front();
        que.pop();
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: expected ';' before '}' token
   12 |         str.erase(str.size()- 1, 1)
      |                                    ^
      |                                    ;
   13 |     }
      |     ~
Language: C++

#include <stdio.h>
#include<iostream>

using namespace std;

int main(){
  char str[1000];

  int length;

 cin>>str;

 length=strlen(str);

 for(int n=length-1;n>=0;n--){
	cout<< str[n];
 }




 

















return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'strlen' was not declared in this scope
   13 |  length=strlen(str);
      |         ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<iostream>
  +++ |+#include <cstring>
    3 |
Language: C++

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

int main(){
	char s[21];
	cin >> s;
	int len=strlen(s);

	for(int i=0;i<(len/2);i++){
		char c;
		c = s[i];
		s[i] = s[len-i-1];
		s[len-i-1] = c;
	}
	cout<<s<<"\n";
	system("pause");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'strlen' was not declared in this scope
    8 |         int len=strlen(s);
      |                 ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<iostream>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include <stdio.h>
int main()
{
    char ch[20];
    int i,j;
    gets(ch);
    j=strlen(ch);

    for(i=j-1;i>=0;i--)

    {
        printf("%c",ch[i]);
    }

    printf("\n");

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |     gets(ch);
      |     ^~~~
      |     getw
a.cc:7:7: error: 'strlen' was not declared in this scope
    7 |     j=strlen(ch);
      |       ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 | int main()
Language: C++

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

namespace contest6
{
    class Program
    {
        static void Main(string[] args)
        {
            //空白で分割する
            var line_origin = Console.ReadLine();
            line_origin.Reverse();
            Console.WriteLine(line_origin);
        }
    }
}

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:26: error: 'string' has not been declared
   10 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:10:35: error: expected ',' or '...' before 'args'
   10 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:17:6: error: expected ';' after class definition
   17 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void contest6::Program::Main(int*)':
a.cc:13:13: error: 'var' was not declared in this scope
   13 |             var line_origin = Console.ReadLine();
      |             ^~~
a.cc:14:13: error: 'line_origin' was not declared in this scope
   14 |             line_origin.Reverse();
      |             ^~~~~~~~~~~
a.cc:15:13: error: 'Console' was not declared in this scope
   15 |             Console.WriteLine(line_origin);
      |             ^~~~~~~
Language: C++

#include<iostream>
#include<cmath>
#include<string>
#include<cctype>
#include<vector>
#include<numeric>
#include<algorithm>
using namespace std;
int main(){
        char s[100];
        scanf("%s",s);
//      reverse(s.begin(),s.end());
    for(int i=strlen(s);i>=0;--i){
                printf("%c",s[i]);
        }
        printf("\n");
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'strlen' was not declared in this scope
   13 |     for(int i=strlen(s);i>=0;--i){
      |               ^~~~~~
a.cc:8:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    7 | #include<algorithm>
  +++ |+#include <cstring>
    8 | using namespace std;
Language: C++

#include<iostream>
#include<cmath>
#include<string>
#include<cctype>
#include<vector>
#include<numeric>
#include<algorithm>
using namespace std;

int main(){
        char w[100];
//      string w;
        scanf("%s",w);
//    reverse(w.begin(),w.end());
    int len=strlen(w);
    for(int i=len;i>=0;--i){
                printf("%c",w[i]);
        }

        printf("\n");
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'strlen' was not declared in this scope
   15 |     int len=strlen(w);
      |             ^~~~~~
a.cc:8:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    7 | #include<algorithm>
  +++ |+#include <cstring>
    8 | using namespace std;
Language: C++

#include <iostream>
#include <cstring>

using namespace std;
int main()
{
   char s[21];
   int n;
   cin >> s;
   n = strlen( s );
   for(i=n-1;i<=0;i--)
      cout << s[i];
   cout << endl;
   return 0;
}
   

       

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

#include <stdio.h>

int main( void ){
    char str[20];
    scanf( "%s",str );
    for( int i = strlen( str ) - 1;i >= 0;i-- ){
        printf( "%c",str[i] );
    }
    printf( "\n" );
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'strlen' was not declared in this scope
    6 |     for( int i = strlen( str ) - 1;i >= 0;i-- ){
      |                  ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 |
Language: Java

class Main{

    private static final double TAX = 1.05;

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

         double totalAmount = 100000;
         BigDecimal returnAmount=new BigDecimal(0);
        int i = Integer.parseInt(args[0]);

        //??\??????????????°???????????????????¢?????????????
        for (int count = 0; count < i; count++) {
            totalAmount = totalAmount * TAX;
            returnAmount = new BigDecimal(totalAmount).setScale(-3, BigDecimal.ROUND_UP);
        }
        //???????????????????????????
        System.out.println(returnAmount.intValue());
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:8: error: cannot find symbol
         BigDecimal returnAmount=new BigDecimal(0);
         ^
  symbol:   class BigDecimal
  location: class Main
Main.java:8: error: cannot find symbol
         BigDecimal returnAmount=new BigDecimal(0);
                                     ^
  symbol:   class BigDecimal
  location: class Main
Main.java:14: error: cannot find symbol
            returnAmount = new BigDecimal(totalAmount).setScale(-3, BigDecimal.ROUND_UP);
                                                                    ^
  symbol:   variable BigDecimal
  location: class Main
Main.java:14: error: cannot find symbol
            returnAmount = new BigDecimal(totalAmount).setScale(-3, BigDecimal.ROUND_UP);
                               ^
  symbol:   class BigDecimal
  location: class Main
5 errors
Language: Java

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

public class DebtHell {

	/** 元金 */
	static final BigDecimal capital = BigDecimal.valueOf(100000);

	/** 利子 */
	static final BigDecimal interest = BigDecimal.valueOf(0.05);

	/** 率 */
	static final BigDecimal rate = BigDecimal.valueOf(1).add(interest);

	/**
	 * プログラミングコンテスト
	 * 初級編：Debt Hell(借金地獄)
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input = br.readLine();

		// ユーザに入力：何週間後の借金を出力するのか
		int weeks = Integer.valueOf(input);

		// 計算結果の初期値に元金を格納
		BigDecimal result = capital;
		for (int i = 0; i < weeks; i++) {
			// 利子を考慮した率をかけ、1000円未満を切り上げる
			result = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));
		}

		System.out.println(result);
	}

	/**
	 * 対称の数値の1000未満を切り上げをして返却
	 *
	 * @param target 対称数値
	 * @return 切り上げした結果
	 */
	private static BigDecimal roundUpLowerThousand(BigDecimal target) {
		// 計算に使用する基準数（1000）
		BigDecimal basisNumber = BigDecimal.valueOf(1000);
		BigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);

		return result.multiply(basisNumber);
	}
}

Compiler output:
Main.java:6: error: class DebtHell is public, should be declared in a file named DebtHell.java
public class DebtHell {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        double debt = 100000.0;
        for(int i = 0; i< Scanner(System.in).nextInt(); i++) {
            debt = Math.ceil(debt * 0.00105) * 1000.0;
        }
        System.out.println(debt);

    }
} 

Compiler output:
Main.java:6: error: cannot find symbol
        for(int i = 0; i< Scanner(System.in).nextInt(); i++) {
                          ^
  symbol:   method Scanner(InputStream)
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main2 {
    public static void main(String args[]) {
        double debt = 100000.0;
        int nWeeks = new Scanner(System.in).nextInt();
        for(int i = 0; i < nWeeks; i++) {
            debt = Math.ceil(debt * 0.00105) * 1000.0;
        }
        System.out.println(debt);

    }
} 

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

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

public class Main2 {
    public static void main(String args[]) {
        int debt = 100000;
        int nWeeks = Integer.parseInt(new Scanner(System.in).next());
        for(int i = 0; i < nWeeks; i++) {
            debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();
        }
        System.out.println(debt);

    }
} 

Compiler output:
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

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

/**
 * Debt Hell<br/>
 * n を入力したとき、n 週間後の借金の残高を出力し終了するプログラム。n は 100 以下とします。 <br/>
 * 10 万円の借金に対し、一週間ごとに 5% の利子を借金に加え、さらに借金の 1,000 円未満を切り上げます。<br/>
 */
public class Main2 {
    private static final int[] ary = {
        100000,
        105000,
        111000,
        117000,
        123000,
        130000,
        137000,
        144000,
        152000,
        160000,
        168000,
        177000,
        186000,
        196000,
        206000,
        217000,
        228000,
        240000,
        252000,
        265000,
        279000,
        293000,
        308000,
        324000,
        341000,
        359000,
        377000,
        396000,
        416000,
        437000,
        459000,
        482000,
        507000,
        533000,
        560000,
        588000,
        618000,
        649000,
        682000,
        717000,
        753000,
        791000,
        831000,
        873000,
        917000,
        963000,
        1012000,
        1063000,
        1117000,
        1173000,
        1232000,
        1294000,
        1359000,
        1427000,
        1499000,
        1574000,
        1653000,
        1736000,
        1823000,
        1915000,
        2011000,
        2112000,
        2218000,
        2329000,
        2446000,
        2569000,
        2698000,
        2833000,
        2975000,
        3124000,
        3281000,
        3446000,
        3619000,
        3800000,
        3990000,
        4190000,
        4400000,
        4620000,
        4851000,
        5094000,
        5349000,
        5617000,
        5898000,
        6193000,
        6503000,
        6829000,
        7171000,
        7530000,
        7907000,
        8303000,
        8719000,
        9155000,
        9613000,
        10094000,
        10599000,
        11129000,
        11686000,
        12271000,
        12885000,
        13530000,
        14207000
    };

    public static void main(String args[]) throws IOException {
        //n週間の入力を取得
        int nWeeks = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());
        System.out.println(ary[nWeeks]);

    }
} 

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

public class Main {

    public static void main(String[] args) throws Exception {
        //?????????
        final BigDecimal TAX_RATE = new BigDecimal("0.05");
        //?????°?????????????????????????????¨??????
        final int ROUND_UP_FRACTION = 1000;
        //???????????????????????????10???
        int deptLeft = 100000;

        BufferedReader reader = new BufferedReader(new InputStreamReader(
                System.in));
        int countWeeks = Integer.parseInt(reader.readLine());
        //1??±??????????????¨??????????????????????????????????????????????¨??????????
        for (int count = 1; count <= countWeeks; count++) {
            deptLeft = BigDecimal.valueOf(deptLeft)
                    .add(BigDecimal.valueOf(deptLeft).multiply(TAX_RATE))
                    .intValue();
            //1000?????????????????????????????????
            if (deptLeft % ROUND_UP_FRACTION != 0) {
                deptLeft = deptLeft
                        + (ROUND_UP_FRACTION - deptLeft % ROUND_UP_FRACTION);
            }
        }
        System.out.println(deptLeft);
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
        final BigDecimal TAX_RATE = new BigDecimal("0.05");
              ^
  symbol:   class BigDecimal
  location: class Main
Main.java:5: error: cannot find symbol
        final BigDecimal TAX_RATE = new BigDecimal("0.05");
                                        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:11: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:11: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(
                                    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:11: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(
                                                       ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:16: error: cannot find symbol
            deptLeft = BigDecimal.valueOf(deptLeft)
                       ^
  symbol:   variable BigDecimal
  location: class Main
Main.java:17: error: cannot find symbol
                    .add(BigDecimal.valueOf(deptLeft).multiply(TAX_RATE))
                         ^
  symbol:   variable BigDecimal
  location: class Main
7 errors
Language: Java

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

public class AOJ0007DebtHell {

    public static void main(String[] args) {

        exec();
    }

    private static void exec() {

        Scanner sc = new Scanner(System.in);
        Integer n = sc.nextInt();

        // 借金
        double debt = 100000;

        // n週間後の借金残高計算
        for (Integer i = 0; i < n; i++) {

            debt = debt * 1.05;
        }

        // 借金残高の1000円未満切り上げ
        BigDecimal bd1 = new BigDecimal(debt / 1000);
        BigDecimal bd2 = bd1.setScale(-1, BigDecimal.ROUND_UP);
        int result = bd2.intValue() * 1000;

        System.out.println(result);
    }
}

Compiler output:
Main.java:4: error: class AOJ0007DebtHell is public, should be declared in a file named AOJ0007DebtHell.java
public class AOJ0007DebtHell {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

public class DebtHell {
	public static void main(String[] args) {
		int result = 100000;
		
		if (!"0".equals(args[0])) {
			int n = Integer.parseInt(args[0]);
			for(int i = 0; i < n;i++){
				result =(int)(result + (result * 0.05));
				if((result % 1000) != 0 ){
					result = ((int)(result / 1000) + 1) * 1000;
				}
			}
		}
		System.out.println(result);
	}
}

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

		int n = Integer.parseInt(args[0]);

		// 1,000 ?????????????????????????????????????????????1,000??§?????£????????§?¨?????????????
		int pay_i = 100000 / 1000;

		for (int i = 0; i < n; i++) {
			float pay_f = (float) (pay_i * 1.05);
			pay_i = (int) (pay_i * 1.05);

			// ??´??°????°???°??????????¨??????????????????????
			// ????????§????????´???????????°????????¨????????´???????????´??°????¨?????????????1????????????
			// ??´??°?????????????¨????????????¨?????????
			if (pay_i != pay_f) {
				pay_i = pay_i + 1;
			}
		}

		System.out.println(pay_i*1000);

			return;

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		int n = Integer.parseInt(args[0]);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
		for (int i = 0; i < n; i++) {
		^
Main.java:6: error: class, interface, enum, or record expected
		for (int i = 0; i < n; i++) {
		                ^
Main.java:6: error: class, interface, enum, or record expected
		for (int i = 0; i < n; i++) {
		                       ^
Main.java:8: error: class, interface, enum, or record expected
			pay_i = (int) (pay_i * 1.05);
			^
Main.java:13: error: class, interface, enum, or record expected
			if (pay_i != pay_f) {
			^
Main.java:15: error: class, interface, enum, or record expected
			}
			^
Main.java:20: error: class, interface, enum, or record expected
			return;
			^
8 errors
Language: Java

import java.math.BigDecimal;

/**
 * ??????????¨????????????????
 *
 * @author kohei.nitta
 *
 */
public class Debt_hell {

	/**
	 * ?¨??????\??????????????????????????????n??±??????????????????????????????????????????
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		BigDecimal debt = new BigDecimal("100000");
		BigDecimal interest = new BigDecimal("1.05");

		// n??±???????????????????¨??????????
		for (int i = 1; i <= Integer.parseInt(args[0]); i++) {
			debt = calcDebt(debt, interest);
		}

		System.out.println(debt);
	}

	/**
	 * ??????????????????????????????????????????
	 *
	 * @param debt
	 * @param interest
	 * @return ?????????????????????????????????????????´??????
	 */
	private static BigDecimal calcDebt(BigDecimal debt, BigDecimal interest) {

		BigDecimal roundUp = new BigDecimal("1000");

		// ??????????????????1,000 ?????????????????????????????????
		return debt.multiply(interest).divide(roundUp, 0, BigDecimal.ROUND_UP)
				.multiply(roundUp);
	}
}

Compiler output:
Main.java:9: error: class Debt_hell is public, should be declared in a file named Debt_hell.java
public class Debt_hell {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

class Debt_hell {

	public static void main(String[] args) {

		BigDecimal debt = new BigDecimal("100000");
		BigDecimal interest = new BigDecimal("1.05");

		for (int i = 1; i <= Integer.parseInt(args[0]); i++) {
			debt = calcDebt(debt, interest);
		}

		System.out.println(debt);
	}

	private static BigDecimal calcDebt(BigDecimal debt, BigDecimal interest) {

		BigDecimal roundUp = new BigDecimal("1000");

		return debt.multiply(interest).divide(roundUp, 0, BigDecimal.ROUND_UP)
				.multiply(roundUp);
	}
}

Compiler output:
Main.java:15: error: cannot find symbol
	private static BigDecimal calcDebt(BigDecimal debt, BigDecimal interest) {
	                                   ^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:15: error: cannot find symbol
	private static BigDecimal calcDebt(BigDecimal debt, BigDecimal interest) {
	                                                    ^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:15: error: cannot find symbol
	private static BigDecimal calcDebt(BigDecimal debt, BigDecimal interest) {
	               ^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:5: error: cannot find symbol
		BigDecimal debt = new BigDecimal("100000");
		^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:5: error: cannot find symbol
		BigDecimal debt = new BigDecimal("100000");
		                      ^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:6: error: cannot find symbol
		BigDecimal interest = new BigDecimal("1.05");
		^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:6: error: cannot find symbol
		BigDecimal interest = new BigDecimal("1.05");
		                          ^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:17: error: cannot find symbol
		BigDecimal roundUp = new BigDecimal("1000");
		^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:17: error: cannot find symbol
		BigDecimal roundUp = new BigDecimal("1000");
		                         ^
  symbol:   class BigDecimal
  location: class Debt_hell
Main.java:19: error: cannot find symbol
		return debt.multiply(interest).divide(roundUp, 0, BigDecimal.ROUND_UP)
		                                                  ^
  symbol:   variable BigDecimal
  location: class Debt_hell
10 errors
Language: Java

import java.util.Scanner;

public class Debt_hell {

	public static void main(String[] args) {

		double debt = 100000;
		double interest = 1.05;
		double roundUp = 1000;

		Scanner input = new Scanner(System.in);
		int inputNo = input.nextInt();

		for (int i = 1; i <= inputNo; i++) {
			debt = Math.ceil((debt * interest) / roundUp) * roundUp;
		}

		System.out.println(String.format("%.0f", debt));
		input.close();
	}
}

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

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

/**
 * 借金を計算する機能
 *
 * @author kohei.nitta
 *
 */
class Debt_hell {

	/**
	 * 標準入力から値を受け取り、n週間後の借金の残高を出力する。
	 *
	 * @param args
	 * @return
	 * @throws IOException
	 */
	public static void main(String[] args){

		BigDecimal debt = new BigDecimal("100000");
		BigDecimal interest = new BigDecimal("1.05");
		BigDecimal roundUp = new BigDecimal("1000");

		BufferedReader input = new BufferedReader(new InputStreamReader(
				System.in));

		int inputNo = Integer.parseInt(input.readLine());

		for (int i = 1; i <= inputNo; i++) {
			debt = debt.multiply(interest)
					.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);
		}

		System.out.println(debt);
	}
}

Compiler output:
Main.java:29: error: unreported exception IOException; must be caught or declared to be thrown
		int inputNo = Integer.parseInt(input.readLine());
		                                             ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

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

/**
 * 借金を計算する機能
 *
 * @author kohei.nitta
 *
 */
public class DebtHell {

	/**
	 * 標準入力から値を受け取り、n週間後の借金の残高を出力する。
	 *
	 * @param args
	 * @return
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {

		BigDecimal debt = new BigDecimal("100000");
		BigDecimal interest = new BigDecimal("1.05");
		BigDecimal roundUp = new BigDecimal("1000");

		BufferedReader input = new BufferedReader(new InputStreamReader(
				System.in));

		int inputNo = Integer.parseInt(input.readLine());

		for (int i = 1; i <= inputNo; i++) {
			debt = debt.multiply(interest)
					.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);
		}

		System.out.println(debt);
	}
}

Compiler output:
Main.java:12: error: class DebtHell is public, should be declared in a file named DebtHell.java
public class DebtHell {
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

class Main {

	public static void main(int week) {
		BigDecimal a = new BigDecimal(100000);
		BigDecimal b = new BigDecimal(0.05);
		for (int i = 0; i < week; i++) {
			a = a.multiply(b).setScale(-3, BigDecimal.ROUND_UP);

		}
		System.out.println(a);

	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		BigDecimal a = new BigDecimal(100000);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:4: error: cannot find symbol
		BigDecimal a = new BigDecimal(100000);
		                   ^
  symbol:   class BigDecimal
  location: class Main
Main.java:5: error: cannot find symbol
		BigDecimal b = new BigDecimal(0.05);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:5: error: cannot find symbol
		BigDecimal b = new BigDecimal(0.05);
		                   ^
  symbol:   class BigDecimal
  location: class Main
Main.java:7: error: cannot find symbol
			a = a.multiply(b).setScale(-3, BigDecimal.ROUND_UP);
			                               ^
  symbol:   variable BigDecimal
  location: class Main
5 errors
Language: Java

package aizuonlinejudge;

/**
 * @author Yuki
 */
public class V0007 {

	/*** ??????????????? */
	private static double revaluation = 1000;

	/*** ?????? */
	private static double rate = 1.05;

	/*** ?????? */
	private static double dept = 100000;

	/*** ??± */
	private static int week;

	/**
	 * ?????????????????????<br>
	 * ??????????????????????????????
	 *
	 * @param args
	 *            ??????????????°
	 */
	public static void main(String[] args) {

		// ?????????
		week = Integer.parseInt(args[0]);

		// ????????????????????????
		System.out.println(getTotalDept());

	}

	/**
	 * ?????????????????????????????? ????????????????????±???????¨??????????????¨????????????????
	 *
	 * @return ???????????????
	 */
	private static int getTotalDept() {
		dept = dept / revaluation;
		for (int i = 0; i < week; i++) {
			dept = Math.ceil(dept * rate); // ????????????
		}
		return (int) (dept * revaluation);
	}
}

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


/**
 * @author Yuki
 */
public class V0007 {

	/*** ??????????????? */
	private static double revaluation = 1000;

	/*** ?????? */
	private static double rate = 1.05;

	/*** ?????? */
	private static double dept = 100000;

	/*** ??± */
	private static int week;

	/**
	 * ?????????????????????<br>
	 * ??????????????????????????????
	 *
	 * @param args
	 *            ??????????????°
	 */
	public static void main(String[] args) {

		// ?????????
		week = Integer.parseInt(args[0]);

		// ????????????????????????
		System.out.println(getTotalDept());

	}

	/**
	 * ?????????????????????????????? ????????????????????±???????¨??????????????¨????????????????
	 *
	 * @return ???????????????
	 */
	private static int getTotalDept() {
		dept = 1000;
		for (int i = 1; i <= week; i++) {
			dept = Math.ceil(dept * rate); // ????????????
		}
		return (int) (dept * revaluation);
	}
}

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

import java.util.Scanner;

public class DeptHell {

	// ????????????10??????
	public static int LOAN = 100000;

	public static void main(String[] args) {

		// ???????????????
		@SuppressWarnings("resource")
		Scanner input = new Scanner(System.in);

		// ??????????????????
		double result = calc(input.nextInt());

		// ????????\?????????????????????
		result = roundUp(result);

		System.out.println((int) result);

	}

	/**
	 * ????????????????????????????¨??????????
	 *
	 * @param week
	 *            ??????????????±
	 * @return ????????????????????????
	 */
	public static double calc(int week) {
		return LOAN + (LOAN * 0.05) * week;
	}

	/**
	 * ??\?????????????????????????????\?????????????????????
	 *
	 * @param amount
	 *            ??????
	 * @return ????????\???????????????????????????
	 */
	private static double roundUp(double amount) {

		// ????????\???????°???°?????????
		double result = amount / 10000;

		// ?°???°???????????????
		result = Math.ceil(result);

		// ?????????????????????????????´
		return result * 10000;
	}
}

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

import java.util.Scanner;

public class DeptHell {

	// ????????????10??????
	public static int LOAN = 100000;

	public static void main(String[] args) {

		// ???????????????
		Scanner sc = new Scanner(System.in);
                int input = sc.nextInt();
 
		// ??????????????????
		double result = LOAN + (LOAN * 0.05) * input;

		// ????????\?????????????????????
		// ????????\???????°???°?????????
		result = result / 10000;
		// ?°???°???????????????
		result = Math.ceil(result);
		// ?????????????????????
		result = result * 10000;

		System.out.print((int) result);

	}
}

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