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

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

int main(){
	while(1){
        int n;
        cin >> n;
        if(n == 0) break;
        long long a[5000] = {0};
        long long int number;
        long long int jun[5000] = {0};
        long long tanka,kazu;
        for(int i = 1; i <= n; i++){
            cin >> number >> tanka >> kazu;
            a[number] += tanka * kazu;
            jun[i] = number;
        }
        for(int i = 0; i < 4000; i++){
            for(int j = i+1; j <= 4000; j++){
                if(jun[i] == jun[j]) jun[j] = 0;
            }
        }
        
        bool flg = 0;
        for(int i = 1; i 4000; i++){
            if(a[jun[i]] >= 1000000){
                cout << jun[i] << endl;
                flg = 1;
            }
        }


        if(!flg) cout << "NA" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:25: error: expected ';' before numeric constant
   28 |         for(int i = 1; i 4000; i++){
      |                         ^~~~~
      |                         ;
a.cc:28:30: error: expected ')' before ';' token
   28 |         for(int i = 1; i 4000; i++){
      |            ~                 ^
      |                              )
a.cc:28:32: error: 'i' was not declared in this scope
   28 |         for(int i = 1; i 4000; i++){
      |                                ^
Language: C++

#include<stdio.h>
int main(void)
{
	struct employee
	{
		int N,P,A;
	};
	employee person[10][4000];
	int a,b=0,c[10],d,e;
	for(d=0;;b=0,d++)
	{
		scanf("%d",&c[d]);
		if(c[d]==0)
		{
			e=d;
			break;
		}
		for(a=0;a<c[d];a++)
			scanf("%d %d %d",&person[d][a].N,&person[d][a].P,&person[d][a].A);/
	}
	for(d=0;d<=e;b=0,d++)
	{
		for(a=0;a<c[d];a++)
			if(person[d][a].P*person[d][a].A>=1000000 )
			{
				printf("%d\n",person[d][a].N);
				b++;
			}
		if(b==0)
			printf("NA\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:91: error: expected primary-expression before '/' token
   19 |                         scanf("%d %d %d",&person[d][a].N,&person[d][a].P,&person[d][a].A);/
      |                                                                                           ^
a.cc:20:9: error: expected primary-expression before '}' token
   20 |         }
      |         ^
Language: C++

int main(void)
{	
	employee person[4000];
	int a,b,c,d;
	for(b=0;;b=0)
	{
		scanf("%d",&c);
		for(a=0;a<c;a++)
		{
			scanf("%d %lld %lld",&person[a].N,&person[a].P,&person[a].A);
			person[a].M=person[a].P*person[a].A;
			for(d=0;d<a;d++)
				if(person[a].N==person[d].N)
				{
					person[a].M+=person[d].M;
					person[d].M=0;
				}
		}
		for(a=0;a<c;a++)
			if(person[a].M>=1000000 )
			{
				printf("%d\n",person[a].N);
				b++;
			}
		if(b==0)
			printf("NA\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'employee' was not declared in this scope
    3 |         employee person[4000];
      |         ^~~~~~~~
a.cc:7:17: error: 'scanf' was not declared in this scope
    7 |                 scanf("%d",&c);
      |                 ^~~~~
a.cc:10:47: error: 'person' was not declared in this scope
   10 |                         scanf("%d %lld %lld",&person[a].N,&person[a].P,&person[a].A);
      |                                               ^~~~~~
a.cc:20:28: error: 'person' was not declared in this scope
   20 |                         if(person[a].M>=1000000 )
      |                            ^~~~~~
a.cc:22:33: error: 'printf' was not declared in this scope
   22 |                                 printf("%d\n",person[a].N);
      |                                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:26:25: error: 'printf' was not declared in this scope
   26 |                         printf("NA\n");
      |                         ^~~~~~
a.cc:26:25: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

struct employee
{
		int N;
		long long int P,A,M;
};
int main(void)
{	
	struct employee person[4000];
	int a,b,c,d;
	for(b=0;;b=0)
	{
		scanf("%d",&c);
		for(a=0;a<c;a++)
		{
			scanf("%d %lld %lld",&person[a].N,&person[a].P,&person[a].A);
			person[a].M=person[a].P*person[a].A;
			for(d=0;d<a;d++)
				if(person[a].N==person[d].N)
				{
					person[a].M+=person[d].M;
					person[d].M=0;
				}
		}
		for(a=0;a<c;a++)
			if(person[a].M>=1000000 )
			{
				printf("%d\n",person[a].N);
				b++;
			}
		if(b==0)
			printf("NA\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'scanf' was not declared in this scope
   12 |                 scanf("%d",&c);
      |                 ^~~~~
a.cc:27:33: error: 'printf' was not declared in this scope
   27 |                                 printf("%d\n",person[a].N);
      |                                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | struct employee
a.cc:31:25: error: 'printf' was not declared in this scope
   31 |                         printf("NA\n");
      |                         ^~~~~~
a.cc:31:25: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	int n;
	while( cin >> n, n ){
		long long emp[4001];
		vector<int> nums;
		bool exist = false;
		memset( emp, 0, sizeof(emp) );
		rep(i,n){
			int num;
			long long val, am;
			cin >> num >> val >> am;
			emp[num] += val*am;
			if( find(nums.begin(), nums.end(), num) == nums.end() ){
				nums.push_back(num);
			}
		}
		rep(i,nums.size()){
			if( emp[nums[i]] >= 1000000 ){
				exist = true;
				cout << nums[i] << endl;
			}
		}
		if(!exist){
			cout << "NA" << endl;
		}

	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:33: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   20 |                         if( find(nums.begin(), nums.end(), num) == nums.end() ){
      |                             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:20:33: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   20 |                         if( find(nums.begin(), nums.end(), num) == nums.end() ){
      |                             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
# include<iostream>
# include<string>
#include<conio.h>
using namespace std;

int main(){
	int datasuu = 0;
	int flag[4000][4000];
	int sbangou[4000][4000];
	int hanbai[4000][4000];
	int uriage[4000][4000];
	int goukei[4000][4000];
	int kaisuu = 0;
	for (int j = 0;; j++){
		cin >> datasuu;
		if (datasuu == 0){
			kaisuu = j;
			break;
		}
		for (int i = 0; i < datasuu; i++){
			scanf("%d,%d,%d", &sbangou[j][i], &hanbai[j][i], &uriage[j][i]);
			for (int z = 0; z < i; z++){
				if (hanbai[j][i] == hanbai[j][z]){
					goukei[j][i] += goukei[j][z];
				}
			}
			goukei[j][i] += hanbai[j][i] * uriage[j][i];
			if (goukei[j][i] >= 1000000){
				flag[j][i] = 1;
				goukei[j][i] = hanbai[j][i] * uriage[j][i];
			}

		}
	}
	int on = 0;
	for (int i = 0; i < 4000; i++){
		for (int j = 0; j < 4000; i++){
			if (flag[i][j] == 1){
				cout << sbangou[i][j] << endl;
				on = 1;
			}
			if (on == 0)cout << "NA";
		}
	}

}

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

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

int main(){
	int datasuu = 0;
	int flag[4000][4000];
	int sbangou[4000][4000];
	int hanbai[4000][4000];
	int uriage[4000][4000];
	int goukei[4000][4000];
	int kaisuu = 0;
	for (int j = 0;; j++){
		cin >> datasuu;
		if (datasuu == 0){
			kaisuu = j;
			break;
		}
		for (int i = 0; i < datasuu; i++){
			scanf("%d%d%d", &sbangou[j][i], &hanbai[j][i], &uriage[j][i]);
			for (int z = 0; z < i; z++){
				if (hanbai[j][i] == hanbai[j][z]){
					goukei[j][i] += goukei[j][z];
				}
			}
			goukei[j][i] += hanbai[j][i] * uriage[j][i];
			if (goukei[j][i] >= 1000000){
				flag[j][i] = 1;
				goukei[j][i] = hanbai[j][i] * uriage[j][i];
			}

		}
	}
	int on = 0;
	for (int i = 0; i < 4000; i++){
		for (int j = 0; j < 4000; i++){
			if (flag[i][j] == 1){
				cout << sbangou[i][j] << endl;
				on = 1;
			}
			if (on == 0)cout << "NA";
		}
	}
	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>
#include <stdio.h>
#include <string>
#include <queue>
#include <cmath>

#define int64 long long int

using namespace std;
typedef pair<int, int> P;

int main()
{
    int flag[4001];
    int n, c, num, val, sale, na;
    P hoge[4001];
    
    while (1) {
        cin >> n;
        if(n == 0) break;
        
        c = 1;
        na = 1;
        memset(flag, 0, sizeof(int)*4001);
        
        for(int i=0; i<n; i++){
            cin >> num >> val >> sale;
            if(flag[num] == 0){
                flag[num] = c;
                hoge[c].first = num;
                hoge[c].second = val * sale;
                c++;
            } else {
                hoge[flag[num]].second += val * sale;
            }
        }
        for(int i=1; i<c; i++){
            if(hoge[i].second >= 1000000){
                na = 0;
                cout << hoge[i].first << endl;
            }
        }
        if(na == 1) cout << "NA" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: 'memset' was not declared in this scope
   24 |         memset(flag, 0, sizeof(int)*4001);
      |         ^~~~~~
a.cc:6:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    5 | #include <cmath>
  +++ |+#include <cstring>
    6 |
Language: C++

#include<iostream>

int main(){
	int n,num[4001];
	while(std::cin>>n){
		int count=0;
		memset(num,0,sizeof(num));
		if(n==0)break;
		for(int a,b,c,i=0;i<n;i++){
			std::cin>>a>>b>>c;
			num[a]+=b*c;
		}
		for(int i=0;i<4001;i++){
			if(num[i]>=1000000)count++,std::cout<<i<<std::endl;
		}
		if(count==0)std::cout<<"NA"<<std::endl;
	}
	return 0;
}

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

class CMem {
public :
	CMem() { m_check = false; m_sale = 0; }
	void Idata(long long sale) { m_sale += sale; m_check = true; }
	bool Ocheck() { return m_check; }
	long long Osale() { return m_sale; }
private :
	bool m_check;
	long long m_sale;
};

int main(void)
{
	while(1) {
		CMem member[4001];
		bool NA = true;
		int n, id, asale, scale;
		long long sale;

		cin >> n;
		if(n == 0) break;

		for(int i = 0; i < n; i++) {
			cin >> id >> asale >> scale;
			sale = asale * scale;

			member[id].Idata(sale);
		}

		for(int i = 1; i <= 4000; i++) {
			if(member[i].Ocheck() == true && member[i].Osale() >= 1000000) {
				cout << i << endl;
				NA = false;
			}
		}

		if(NA == true) cout << "NA" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: 'cin' was not declared in this scope
   20 |                 cin >> n;
      |                 ^~~
a.cc:32:33: error: 'cout' was not declared in this scope
   32 |                                 cout << i << endl;
      |                                 ^~~~
a.cc:32:46: error: 'endl' was not declared in this scope
   32 |                                 cout << i << endl;
      |                                              ^~~~
a.cc:37:32: error: 'cout' was not declared in this scope
   37 |                 if(NA == true) cout << "NA" << endl;
      |                                ^~~~
a.cc:37:48: error: 'endl' was not declared in this scope
   37 |                 if(NA == true) cout << "NA" << endl;
      |                                                ^~~~
Language: C++

#include<iostream>
#include<vector>

long long owData[4001];
std::vector<int> used;

int main(){
  long long x,input[3];
	bool Person;
	while( std::cin>>x , x ){
		Person=false;
		used.clear();
		memset(owData,0,sizeof(owData));
		while( x-- ){
			std::cin>>input[0]>>input[1]>>input[2];
			if( owData[input[0]] == 0 )used.push_back(input[0]);
			owData[input[0]]+=input[1]*input[2];
		}
		for(auto it = used.begin(); it != used.end(); ++it ){
			if( owData[*it] >= 1000000 )
				std::cout<< *it <<std::endl, Person=true ;
		}
		if(!Person)std::cout<<"NA"<<std::endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'memset' was not declared in this scope
   13 |                 memset(owData,0,sizeof(owData));
      |                 ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<vector>
  +++ |+#include <cstring>
    3 |
Language: C++

//AOJ 0100
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<cctype>
using namespace std;
#define MAX_N 100

unsigned long long int a[4001] = {0}, b, i, j, k, ans, n;
char str[1000];

int sort(const void *a, const void *b){
  return *(int*)a - *(int*)b;
}

int main(){
  while(scanf("%lld", &n) != 0){
    if(n == 0) return 0;
    ans = 0;
    for(i = 0; i < 4001; i++)
      a[i] = 0;
    for(i = 0; i < n; i++){
      scanf("%lld %lld %lld", &b, &k, &j);
      if(a[b] >= 1000000) continue;
      a[b] += k * j;
      if(a[b] >= 1000000){
	printf("%d\n", b);
	ans++;
      }
    }
    if(ans == 0) printf("NA\n");
  return 0;
}

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

#include<iostream>
#include<map>
using namespace std;
int main(){
  long long ans[4000]={0};
  int n,number,money,many,over_many=0,over[4000]={0};
  while(1){
    cin >> n;
    if(n==0)break;
    over_many=0;
    memset(over,0,sizeof(over));
    memset(ans,0,sizeof(ans));
    for(int i=0;i<n;i++){
      cin >> number >> money >> many;
      ans[number]+=money*many;

      if(ans[number]>=1000000){
	if(over[number]==0){
	  over_many++;
	  over[number]=1;
	}
      }

    }
    if(over_many==0){
      cout << "NA" << endl;
    }
    else{
      for(int k=0,j=0;j<over_many;k++){
	if(over[k]==1){
	  cout << k << endl;
	  j++;
	}
      }
    }

  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'memset' was not declared in this scope
   11 |     memset(over,0,sizeof(over));
      |     ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<map>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include <fstream>
using namespace std;

main(){
 int n,m=0;
 int id[4000],tanka[4000],suryou[4000];

cin>>n;
while(n!=0){
 for(int i=0;i<n;i++){
  cin>>id[i]>>tanka[i]>>suryou[i];
 }

 for(int i=0;i<n;i++){
  if(tanka[i]*suryou[i]>=1000000){
   cout<<id[i]<<endl;
   m++;
  }
 }
 if(m==0) cout<<"NA"<<endl;
 cin>>n;
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin>>n;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <fstream>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:16:4: error: 'cout' was not declared in this scope
   16 |    cout<<id[i]<<endl;
      |    ^~~~
a.cc:16:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:11: error: 'cout' was not declared in this scope
   20 |  if(m==0) cout<<"NA"<<endl;
      |           ^~~~
a.cc:20:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:7: note: to match this '{'
    4 | main(){
      |       ^
Language: C++

#include <fstream>
using namespace std;

main(){
 int n,m=0;
 int id[4000],tanka[4000],suryou[4000];

cin>>n;
while(n!=0){
 for(int i=0;i<n;i++){
  cin>>id[i]>>tanka[i]>>suryou[i];
 }

 for(int i=0;i<n;i++){
  if(tanka[i]*suryou[i]>=1000000){
   cout<<id[i]<<endl;
   m++;
  }
 if(m==0) cout<<"NA"<<endl;
 cin>>n;
}
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin>>n;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <fstream>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:16:4: error: 'cout' was not declared in this scope
   16 |    cout<<id[i]<<endl;
      |    ^~~~
a.cc:16:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:11: error: 'cout' was not declared in this scope
   19 |  if(m==0) cout<<"NA"<<endl;
      |           ^~~~
a.cc:19:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:7: note: to match this '{'
    4 | main(){
      |       ^
Language: C++

while (n = gets().to_i()) != 0
  staff = Array.new(4e3, 0);
  flag = false
  n.times() do
    str = gets().split()
    id = str[0].to_i()
    price = str[1].to_i()
    num = str[2].to_i()
    staff[id - 1] += price * num
  end
  staff.each_with_index() do |total, id|
    if total >= 1e6
      puts(id + 1)
      flag = true
    end
  end
  puts("NA") if !flag
end

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while (n = gets().to_i()) != 0
      | ^~~~~
a.cc:3:3: error: 'flag' does not name a type
    3 |   flag = false
      |   ^~~~
Language: C++

#include <bits/stdc++.h>

#define loop(v, f, l) for(int v = (f), v##_ = (l); v < v##_; ++v)

using namespace std;

typedef long long int lint;
static inline int in(){ int x; scanf("%d", &x); return (x); }
static inline lint inl(){ lint x; scanf("lld", &x); return (x); }

int main()
{
	list<int> staffList;
	map<int, lint> saleResult;
	int n;
	int staffNum;
	lint unitPrice;
	lint quantity;
	while( 1 )
	{
		n = in();
		if( n == 0 )break;

		staffList.clear();
		saleResult.clear();
		loop(i, 0, n)
		{
			staffNum = in();
			unitPrice = lin();
			quantity = lin();
			staffList.push_back(staffNum);
			saleResult[staffNum] += unitPrice * quantity;
		}
		bool flag = false;
		for(list<int>::iterator it = staffList.begin(); it != staffList.end(); it++)
		{
			if( saleResult[*it] >= 1000000 )
			{
				printf("%d\n", *it);
				saleResult[*it] = 0;
				flag = true;
			}
		}
		if( !flag )
		{
			cout << "NA" << endl;
		}
	}
	return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:37: error: 'lin' was not declared in this scope; did you mean 'sin'?
   29 |                         unitPrice = lin();
      |                                     ^~~
      |                                     sin
Language: Java

import java.util.Scanner;

public class J0101{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int n = Integer.parseInt(s);
		
		for(int i=0; i<n; i++){
			s = sc.nextLine();
			s = s.replaceAll("Hoshino", "Hoshina");
			System.out.println(s);
		}
				
	}
} 

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

public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String number = br.readLine();
		int n = Integer.parseInt(number);
		
		for(int i=0; i<n; i++){
			String str = br.readLine();
			String[] output = str.split(" ", 0);
			int j=0;
			for(j=0; j<(output.length)-1 ;j++){
				
				if(output[j].equals("Hoshino")){
					System.out.print("Hoshina" + " ");
				}
				else{
					System.out.print(output[j] + " "); 
				}	
			}
			if(output[(output.length)-1].equals("Hoshino")){
				System.out.println("Hoshina");
			}
			else{
				System.out.println(output[(output.length)-1]); 
			}
		}	
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) throws IOException{
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.io.*;

public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String number = br.readLine();
		int n = Integer.parseInt(number);
		
		for(int i=0; i<n; i++){
			String str = br.readLine();
			String[] output = str.split(" ", 0);
			int j=0;
			for(j=0; j<(output.length)-1 ;j++){
				
				if(output[j].equals("Hoshino")){
					System.out.print("Hoshina" + " ");
				}
				else{
					System.out.print(output[j] + " "); 
				}	
			}
			if(output[(output.length)-1].equals("Hoshino")){
				System.out.println("Hoshina");
			}
			else{
				System.out.println(output[(output.length)-1]); 
			}
		}	
	}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) throws IOException{
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.io.*;
public class Main {
public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String number = br.readLine();
		int n = Integer.parseInt(number);
		
		for(int i=0; i<n; i++){
			String str = br.readLine();
			String[] output = str.split(" ", 0);
			int j=0;
			for(j=0; j<(output.length)-1 ;j++){
				
				if(output[j].equals("Hoshino")){
					System.out.print("Hoshina" + " ");
				}
				else{
					System.out.print(output[j] + " "); 
				}	
			}
			if(output[(output.length)-1].equals("Hoshino")){
				System.out.println("Hoshina");
			}
			else{
				System.out.println(output[(output.length)-1]); 
			}
		}	
	}
}
}

Compiler output:
Main.java:30: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.io.*;

public class Volume0101 {
	public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String number = br.readLine();
		int n = Integer.parseInt(number);
		
		for(int i=0; i<n; i++){
			String str = br.readLine();
			String[] output = str.split(" ", 0);
			int j=0;
			for(j=0; j<(output.length)-1 ;j++){
				
				if(output[j].equals("Hoshino")){
					System.out.print("Hoshina" + " ");
				}
				else{
					System.out.print(output[j] + " "); 
				}	
			}
			if(output[(output.length)-1].equals("Hoshino")){
				System.out.println("Hoshina");
			}
			else{
				System.out.println(output[(output.length)-1]); 
			}
		}	
	}
}

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

public class AOJ0101 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();sc.nextLine();
		while(t--!=0)System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
	}
}

Compiler output:
Main.java:1: error: class AOJ0101 is public, should be declared in a file named AOJ0101.java
public class AOJ0101 {
       ^
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class AOJ0101
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class AOJ0101
3 errors
Language: Java

public class AOJ0101 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();sc.nextLine();
		while(t--!=0)
                   System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
	}
}

Compiler output:
Main.java:1: error: class AOJ0101 is public, should be declared in a file named AOJ0101.java
public class AOJ0101 {
       ^
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class AOJ0101
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class AOJ0101
3 errors
Language: Java

public class AOJ0101 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		sc.nextLine();
		while(t--!=0)
			System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
	}
}

Compiler output:
Main.java:1: error: class AOJ0101 is public, should be declared in a file named AOJ0101.java
public class AOJ0101 {
       ^
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class AOJ0101
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class AOJ0101
3 errors
Language: Java

public class main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		sc.nextLine();
		while(t--!=0)
			System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
	}
}

Compiler output:
Main.java:1: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class main
3 errors
Language: Java

import java.util.Scanner;
public class AOJ0101 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();sc.nextLine();
		while(t--!=0)System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
	}
}

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

import java.util.Scanner;
public class main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();sc.nextLine();
		while(t--!=0)System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
	}
}

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

import java.util.*;
public class main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();sc.nextLine();
		while(t--!=0)
		System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
	}
}

Compiler output:
Main.java:2: 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;
public class main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();sc.nextLine();
		while(t--!=0)
		System.out.println(sc.nextLine().replaceAll("Hoshino", "Hoshina"));
	}
}

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

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

public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		
		for(int i = 0; i < num; i++){
			String str = br.readLine();
			str = str.replaceAll("Hoshino", "Hoshina");
			System.out.println(str);
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
3 errors
Language: Java

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


public class p0101 {
    
    public static void main(String[] args) {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            
            String strDataNum = br.readLine();
            int dataNum = Integer.parseInt(strDataNum);
            
            for (int itr = 0; itr < dataNum; itr ++) {
                String replacedLine = br.readLine().replace("Hoshino", "Hoshina");
                System.out.println(replacedLine);
            }
            
        } catch(Exception e) {
            e.printStackTrace();
        } finally {
        }
        
    }
    
}

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

import java.util.*;
public class Hoshina {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++) {
			String s = sc.nextLine();
			System.out.println(s.replaceAll("Hoshino", "Hoshina"));
		}
		return;
	}
}

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

import java.util.*;

class Main{
  public static void main(String[] args){
  ArrayList<String> array = new ArrayList<String>();
  Scanner in = new Scanner(System.in);
  int n = in.nextInt();
  for(int i = 0; i <= n; i++){
    String str = in.nextLine();
    String str2 = str.replaceAll("Hoshino", "Hoshina");
    array.add(str2);
    }
    for(String s: array){
      System.out.println(s);
    }
  }

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

import java.util.*;
public class AOJ101 {
   public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int i = sc.nextInt();
       sc.nextLine();
       for(int j=0;j<i;j++)
	   {
	       String s = sc.nextLine();
	       System.out.println(s.replaceAll("Hoshino","Hoshina"));
	   }
   }
}

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

import java.io.*;
public class Main {
	public static void main(String[] args){
		try{
			BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
			int i=Integer.parseInt(b.readLine());
			StringBuffer[] str=new StringBuffer[i];
			String[] s;
			for(int j=0;j<i;j++){
				str[j]=new StringBuffer();
				s=b.readLine().split(" ");
				for(int k=0;k<s.length;k++){
					if(s[k].equals("Hoshino")||s[k].equals("Hoshino.")){
						s[k]="Hoshina";
						str[j].append(s[k]+" ");
					}
					str[j].deleteCharAt(str[j].length()-1);
					System.out.println(str[j].toString());
				}
			}
		}catch(IOException e){}
return 0;
	}
}

Compiler output:
Main.java:22: error: incompatible types: unexpected return value
return 0;
       ^
1 error
Language: Java

import java.io.*;

public class AizuPR {
    public satic void main(String[] args) throws Exception {
        Scanner input = new Scanner(System.in);

        int N = Integer.parseInt(input.nextLine());

        for(int i = 0; i < N; i++) {
            String s = input.nextLine().replaceAll("Hoshino", Hoshina");

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

Compiler output:
Main.java:4: error: <identifier> expected
    public satic void main(String[] args) throws Exception {
                ^
Main.java:10: error: unclosed string literal
            String s = input.nextLine().replaceAll("Hoshino", Hoshina");
                                                                     ^
2 errors
Language: Java

import java.util.*;

public class AizuPR {
    public static void main(String[] args) throws Exception {
        Scanner input = new Scanner(System.in);

        int N = Integer.parseInt(input.nextLine());

        for(int i = 0; i < N; i++) {
            String s = input.nextLine().replaceAll("Hoshino", "Hoshina");

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

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

public class Main {
	public static void main(String args[]) throws Exception {
		BufferedReader bn = new BufferedReader(new InputStreamReader(System.in));
		
		String line;

		for(int i=0; i<Integer.parseInt(bn.readLine()); i++){
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			line = br.readLine();
			String str1 = line.replaceAll("apple", "テンプ");
			String str2 = str1.replaceAll("peach", "apple");
			String str3 = str2.replaceAll("テンプ", "peach");
	        System.out.println(str3);
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		BufferedReader bn = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader bn = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader bn = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                                           ^
  symbol:   class InputStreamReader
  location: class Main
6 errors
Language: Java

import java.util.Scanner;

public class AOJMain {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();sc.nextLine();
		while(n--!=0)System.out.println(sc.nextLine());
                  str = str.replaceAll("Hoshino", "Hoshina");
                  System.out.println(str);
	}
}

Compiler output:
Main.java:3: error: class AOJMain is public, should be declared in a file named AOJMain.java
public class AOJMain {
       ^
Main.java:9: error: cannot find symbol
                  str = str.replaceAll("Hoshino", "Hoshina");
                  ^
  symbol:   variable str
  location: class AOJMain
Main.java:9: error: cannot find symbol
                  str = str.replaceAll("Hoshino", "Hoshina");
                        ^
  symbol:   variable str
  location: class AOJMain
Main.java:10: error: cannot find symbol
                  System.out.println(str);
                                     ^
  symbol:   variable str
  location: class AOJMain
4 errors
Language: Java

import java.util.Scanner;

public class AOJMain {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();sc.nextLine();
		while(n--!=0)System.out.println(sc.nextLine());
                  sc = sc.replaceAll("Hoshino", "Hoshina");
                  System.out.println(sc);
	}
}

Compiler output:
Main.java:3: error: class AOJMain is public, should be declared in a file named AOJMain.java
public class AOJMain {
       ^
Main.java:9: error: cannot find symbol
                  sc = sc.replaceAll("Hoshino", "Hoshina");
                         ^
  symbol:   method replaceAll(String,String)
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.Scanner;

//Aizu PR
public class AOJ0101 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();sc.nextLine();
		while(t--!=0)System.out.println(sc.nextLine().replaceAll("Hoshino", "Hoshina"));
	}
}

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

import java.util.Scanner;

//Aizu PR
public class AOJ0101 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();sc.nextLine();
		while(t--!=0)System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
	}
}

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

#include<stdio.h>
int main(){
    int i,j,n,flag=0;
    char a[1000]={0};

    scanf("%d%*c",&n);
    for(j=0;j<n;j++){
        flag=0;
        scanf("%c",&a[0]);
        for(i=1;;i++){
            scanf("%c",&a[i]);
if(a[i]=='\n'){
a[i]=0;
break;
}
        for(i=0;a[i]!=0;i++){
            //printf("%d ",flag);
            if(flag==0){
                if(a[i]=='H')flag++;
            }
            else if(flag==1){
                if(a[i]=='o')flag++;
                else if(a[i]=='H')flag=1;
                else flag=0;
            }
            else if(flag==2){
                if(a[i]=='s')flag++;
                else if(a[i]=='H')flag=1;
                else flag=0;
            }
            else if(flag==3){
                if(a[i]=='h')flag++;
                else if(a[i]=='H')flag=1;
                else flag=0;
            }
            else if(flag==4){
                if(a[i]=='i')flag++;
                else if(a[i]=='H')flag=1;
                else flag=0;
            }
            else if(flag==5){
                if(a[i]=='n')flag++;
                else if(a[i]=='H')flag=1;
                else flag=0;
            }
            else if(flag==6){
                if(a[i]=='o')a[i]='a';
                else if(a[i]=='H')flag=1;
                else flag=0;
            }
        }
        for(i=0;a[i]!=0;i++)printf("%c",a[i]);//puts("");
        for(i=0;a[i]!=0;i++)a[i]=0;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:56:1: error: expected declaration or statement at end of input
   56 | }
      | ^
Language: C

#include<stdio.h>
int main(){
    int i,j,n,flag=0,d;
    char a[1000]={0};
  
    scanf("%d%*c",&n);
    for(j=0;j<n;j++){
        flag=0;
        for(i=0;;i++){
            scanf("%c", &a[i]);
            if(a[i]=='\n'){
                a[i]='\0';
                d=i;
                break;
            }
        }
 
        for(i=0;;i++){
      if(d<7) break;
      if(a[i+6]=='\0') break;
      if(a[i]=='H'){
    if(a[i+1]=='o'){
      if(a[i+2]=='s'){
        if(a[i+3]=='h'){
          if(a[i+4]=='i'){
        if(a[i+5]=='n'){
          if(a[i+6]=='o'){
            a[i+6]='a';
          }
        }
          }
        }
      }
    }
        //for(i=0;i<d;i++)
printf("%s\n",a);//puts("");
        //for(i=0;i<1000;i++)a[i]=0;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:40:1: error: expected declaration or statement at end of input
   40 | }
      | ^
main.c:40:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
int main(void){
	char str[3000]:
	int i,j;
	int n;
	scanf("%d",&n);
	for(i = 0;i < n;i++){
		fgets(str.3000,stdin);
		j = 0;
		while(str[j] != '\0'){
			if(str[j] == 'H'){
				if(str[j+1] == 'o'){
					if(str[j+2] == 's'){
						if(str[j+3] == ' h'){
							if(str[j+4] == 'i'){
								if(str[j+5] == 'n'){
									if(str[j+6] == 'o'){
										str[j+6] == 'a';
									}
								}
							}
						}
					}
				}
			}
			j++;
		}
		printf("%s",str);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    3 |         char str[3000]:
      |                       ^
main.c:3:23: error: expected expression before ':' token
main.c:7:13: error: 'i' undeclared (first use in this function)
    7 |         for(i = 0;i < n;i++){
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'str' undeclared (first use in this function)
    8 |                 fgets(str.3000,stdin);
      |                       ^~~
main.c:8:26: error: expected ')' before numeric constant
    8 |                 fgets(str.3000,stdin);
      |                      ~   ^~~~~
      |                          )
main.c:8:17: error: too few arguments to function 'fgets'
    8 |                 fgets(str.3000,stdin);
      |                 ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
main.c:9:17: error: 'j' undeclared (first use in this function)
    9 |                 j = 0;
      |                 ^
main.c:14:64: warning: multi-character character constant [-Wmultichar]
   14 |                                                 if(str[j+3] == ' h'){
      |                                                                ^~~~
Language: C

#include<stdio.h>
int main(void){
	char str[3000]:
	int i,j;
	int n;
	scanf("%d",&n);
	for(i = 0;i < n;i++){
		fgets(str.3000,stdin);
		j = 0;
		while(str[j] != '\0'){
			if(str[j] == 'H'){
				if(str[j+1] == 'o'){
					if(str[j+2] == 's'){
						if(str[j+3] == ' h'){
							if(str[j+4] == 'i'){
								if(str[j+5] == 'n'){
									if(str[j+6] == 'o'){
										str[j+6] = 'a';
									}
								}
							}
						}
					}
				}
			}
			j++;
		}
		printf("%s",str);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    3 |         char str[3000]:
      |                       ^
main.c:3:23: error: expected expression before ':' token
main.c:7:13: error: 'i' undeclared (first use in this function)
    7 |         for(i = 0;i < n;i++){
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'str' undeclared (first use in this function)
    8 |                 fgets(str.3000,stdin);
      |                       ^~~
main.c:8:26: error: expected ')' before numeric constant
    8 |                 fgets(str.3000,stdin);
      |                      ~   ^~~~~
      |                          )
main.c:8:17: error: too few arguments to function 'fgets'
    8 |                 fgets(str.3000,stdin);
      |                 ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
main.c:9:17: error: 'j' undeclared (first use in this function)
    9 |                 j = 0;
      |                 ^
main.c:14:64: warning: multi-character character constant [-Wmultichar]
   14 |                                                 if(str[j+3] == ' h'){
      |                                                                ^~~~
Language: C

#include<stdio.h>
int main(void){
	char str[3000]:
	int i,j;
	int n;
	scanf("%d",&n);
	for(i = 0;i < n;i++){
		fgets(str,3000,stdin);
		j = 0;
		while(str[j] != '\0'){
			if(str[j] == 'H'){
				if(str[j+1] == 'o'){
					if(str[j+2] == 's'){
						if(str[j+3] == 'h'){
							if(str[j+4] == 'i'){
								if(str[j+5] == 'n'){
									if(str[j+6] == 'o'){
										str[j+6] = 'a';
									}
								}
							}
						}
					}
				}
			}
			j++;
		}
		printf("%s",str);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    3 |         char str[3000]:
      |                       ^
main.c:3:23: error: expected expression before ':' token
main.c:7:13: error: 'i' undeclared (first use in this function)
    7 |         for(i = 0;i < n;i++){
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'str' undeclared (first use in this function)
    8 |                 fgets(str,3000,stdin);
      |                       ^~~
main.c:9:17: error: 'j' undeclared (first use in this function)
    9 |                 j = 0;
      |                 ^
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
  int n,l,i;
  char s[1024],*t;
  scanf("%d",&n);
  scanf(" ");
  for(i=0;i<n;j++){
    fgets(s,1001,stdin);
    l=strlen(s);
    while(t=strstr(s,"Hoshino"),t!=NULL){
      t[6]='a';
    }
    printf("%s",s);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'j' undeclared (first use in this function)
    8 |   for(i=0;i<n;j++){
      |               ^
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
  int n,l,i;
  char s[1024],*t;
  scanf("%d\n",&n);
  for(i=0;i<n;i++){
    memset(s,0,sizeof(a));
    fgets(s,1001,stdin);
    while(t=strstr(s,"Hoshino"),t!=NULL){
      t[6]='a';
    }
    printf("%s",s);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:23: error: 'a' undeclared (first use in this function)
    8 |     memset(s,0,sizeof(a));
      |                       ^
main.c:8:23: note: each undeclared identifier is reported only once for each function it appears in