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

#include<iostream>
#include<stdio.h>
#include<string.h>
#include<conio.h>
using namespace std;
int main()
{
    int a[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
   // for(int i=0;i<26;i++)a[i]='0';
   char st[100];
   //scanf("%s",st);
   gets(st);

    int x;
    x=strlen(st);
    for(int i=0;i<x;i++){
        if(st[i]=='a'|| st[i]=='A')a[0]++;
        else if(st[i]=='b'|| st[i]=='B')a[1]++;
        else if(st[i]=='c'|| st[i]=='C')a[2]++;
        else if(st[i]=='d'|| st[i]=='D')a[3]++;
        else if(st[i]=='e'|| st[i]=='E')a[4]++;
        else if(st[i]=='f'|| st[i]=='F')a[5]++;
        else if(st[i]=='g'|| st[i]=='G')a[6]++;
        else if(st[i]=='h'|| st[i]=='H')a[7]++;
        else if(st[i]=='i'|| st[i]=='I')a[8]++;
        else if(st[i]=='j'|| st[i]=='J')a[9]++;
        else if(st[i]=='k'|| st[i]=='K')a[10]++;
        else if(st[i]=='l'|| st[i]=='L')a[11]++;
        else if(st[i]=='m'|| st[i]=='M')a[12]++;
        else if(st[i]=='n'|| st[i]=='N')a[13]++;
        else if(st[i]=='o'|| st[i]=='O')a[14]++;
        else if(st[i]=='p'|| st[i]=='P')a[15]++;
        else if(st[i]=='q'|| st[i]=='Q')a[16]++;
        else if(st[i]=='r'|| st[i]=='R')a[17]++;
        else if(st[i]=='s'|| st[i]=='S')a[18]++;
        else if(st[i]=='t'|| st[i]=='T')a[19]++;
        else if(st[i]=='u'|| st[i]=='U')a[20]++;
        else if(st[i]=='v'|| st[i]=='V')a[21]++;
        else if(st[i]=='w'|| st[i]=='W')a[22]++;
        else if(st[i]=='x'|| st[i]=='X')a[23]++;
        else if(st[i]=='y'|| st[i]=='Y')a[24]++;
        else if(st[i]=='z'|| st[i]=='Z')a[25]++;

    }
    for(int j=0;j<26;j++)printf("%c : %d\n",97+j,a[j]);


    return 0;
}

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<stdio.h>
#include<string.h>
#include<conio.h>
using namespace std;
int main()
{
    int a[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
   // for(int i=0;i<26;i++)a[i]='0';
   char st[100];
   //scanf("%s",st);
   gets(st);

    int x;
    x=strlen(st);
    for(int i=0;i<x;i++){
        if(st[i]=='a'|| st[i]=='A')a[0]++;
        else if(st[i]=='b'|| st[i]=='B')a[1]++;
        else if(st[i]=='c'|| st[i]=='C')a[2]++;
        else if(st[i]=='d'|| st[i]=='D')a[3]++;
        else if(st[i]=='e'|| st[i]=='E')a[4]++;
        else if(st[i]=='f'|| st[i]=='F')a[5]++;
        else if(st[i]=='g'|| st[i]=='G')a[6]++;
        else if(st[i]=='h'|| st[i]=='H')a[7]++;
        else if(st[i]=='i'|| st[i]=='I')a[8]++;
        else if(st[i]=='j'|| st[i]=='J')a[9]++;
        else if(st[i]=='k'|| st[i]=='K')a[10]++;
        else if(st[i]=='l'|| st[i]=='L')a[11]++;
        else if(st[i]=='m'|| st[i]=='M')a[12]++;
        else if(st[i]=='n'|| st[i]=='N')a[13]++;
        else if(st[i]=='o'|| st[i]=='O')a[14]++;
        else if(st[i]=='p'|| st[i]=='P')a[15]++;
        else if(st[i]=='q'|| st[i]=='Q')a[16]++;
        else if(st[i]=='r'|| st[i]=='R')a[17]++;
        else if(st[i]=='s'|| st[i]=='S')a[18]++;
        else if(st[i]=='t'|| st[i]=='T')a[19]++;
        else if(st[i]=='u'|| st[i]=='U')a[20]++;
        else if(st[i]=='v'|| st[i]=='V')a[21]++;
        else if(st[i]=='w'|| st[i]=='W')a[22]++;
        else if(st[i]=='x'|| st[i]=='X')a[23]++;
        else if(st[i]=='y'|| st[i]=='Y')a[24]++;
        else if(st[i]=='z'|| st[i]=='Z')a[25]++;

    }
    for(int j=0;j<25;j++)printf("%c : %d\n",97+j,a[j]);
    printf("%c : %d\n",97+25,a[25]);


    return 0;
}

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

int main(){
    
    char ch;
    int num=0,i=0,counter[26]={0};
        
    while (scanf("%c",&ch) != EOF) {
        if (ch >97) {
            num = ch - 'a';
        }else {
            num = ch - 'A';
        }
        counter[num]++;
    }
    
    char a = 'a';
    for (i=0; i <26; i++) {
        printf("%c : %d\n",a,counter[i]);
        a++;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'scanf' was not declared in this scope
    6 |     while (scanf("%c",&ch) != EOF) {
      |            ^~~~~
a.cc:6:31: error: 'EOF' was not declared in this scope
    6 |     while (scanf("%c",&ch) != EOF) {
      |                               ^~~
a.cc:1:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:17:9: error: 'printf' was not declared in this scope
   17 |         printf("%c : %d\n",a,counter[i]);
      |         ^~~~~~
a.cc:17:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

include<bits/stdc++.h>
using namespace std;
char ToLower(char c){
  return tolower(c);
}
int main(){
  string str,s;
  while(getline( cin, s)) str += s;
  transform( str.begin(), str.end(), str.begin(), ToLower);
  for(char i = 'a' ; i <= 'z' ; i++){
    cout << i << " : " << count( str.begin(), str.end(), i) << endl;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'char ToLower(char)':
a.cc:4:10: error: 'tolower' was not declared in this scope; did you mean 'ToLower'?
    4 |   return tolower(c);
      |          ^~~~~~~
      |          ToLower
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string str,s;
      |   ^~~~~~
a.cc:8:18: error: 'cin' was not declared in this scope
    8 |   while(getline( cin, s)) str += s;
      |                  ^~~
a.cc:8:23: error: 's' was not declared in this scope
    8 |   while(getline( cin, s)) str += s;
      |                       ^
a.cc:8:9: error: 'getline' was not declared in this scope
    8 |   while(getline( cin, s)) str += s;
      |         ^~~~~~~
a.cc:8:27: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |   while(getline( cin, s)) str += s;
      |                           ^~~
      |                           std
a.cc:9:14: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   transform( str.begin(), str.end(), str.begin(), ToLower);
      |              ^~~
      |              std
a.cc:9:3: error: 'transform' was not declared in this scope
    9 |   transform( str.begin(), str.end(), str.begin(), ToLower);
      |   ^~~~~~~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << i << " : " << count( str.begin(), str.end(), i) << endl;
      |     ^~~~
a.cc:11:27: error: 'count' was not declared in this scope
   11 |     cout << i << " : " << count( str.begin(), str.end(), i) << endl;
      |                           ^~~~~
a.cc:11:64: error: 'endl' was not declared in this scope
   11 |     cout << i << " : " << count( str.begin(), str.end(), i) << endl;
      |                                                                ^~~~
Language: C++

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

int f(char c){
if ('A' <= c && c <= 'Z') return c - 'A';
if ('a' <= c && c <= 'z') return c - 'a';
return 0;
}

int main(void){
char str[2000];
int data[26] = {0};
while(scanf("%s", str) != EOF){
int a = strlen(str);
for (int i = 0; i < a; i++){
if (isalpha(str[i])) data[f(str[i])]++;
}
}
for (int i = 0; i < 26; i++){
cout << (char)('a'+i) << " : " << data[i] << endl;
}
return 0;
}

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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <cctype>
using namespace std;

int f(char c){
if ('A' <= c && c <= 'Z') return c - 'A';
if ('a' <= c && c <= 'z') return c - 'a';
return 0;
}

int main(void){
char str[2000];
int data[26] = {0};
while(scanf("%s", str) != EOF){
int a = strlen(str);
for (int i = 0; i < a; i++){
if (isalpha(str[i])) data[f(str[i])]++;
}
}
for (int i = 0; i < 26; i++){
cout << (char)('a'+i) << " : " << data[i] << endl;
}
return 0;
}

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

char c,i=96,a[999];main(){for(;~scanf("%c",&c);a[c>91?c<64?:c:c+32]++);for(;i++<122;printf("%c : %d\n",i,a[i]));}

Compiler output:
a.cc:1:20: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | char c,i=96,a[999];main(){for(;~scanf("%c",&c);a[c>91?c<64?:c:c+32]++);for(;i++<122;printf("%c : %d\n",i,a[i]));}
      |                    ^~~~
a.cc: In function 'int main()':
a.cc:1:33: error: 'scanf' was not declared in this scope
    1 | char c,i=96,a[999];main(){for(;~scanf("%c",&c);a[c>91?c<64?:c:c+32]++);for(;i++<122;printf("%c : %d\n",i,a[i]));}
      |                                 ^~~~~
a.cc:1:85: error: 'printf' was not declared in this scope
    1 | char c,i=96,a[999];main(){for(;~scanf("%c",&c);a[c>91?c<64?:c:c+32]++);for(;i++<122;printf("%c : %d\n",i,a[i]));}
      |                                                                                     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | char c,i=96,a[999];main(){for(;~scanf("%c",&c);a[c>91?c<64?:c:c+32]++);for(;i++<122;printf("%c : %d\n",i,a[i]));}
Language: C++

#include<iostream>
#include<queue>
#include<complex>
using namespace std;
#define REP(i,b,n) for(int i=b;i<n;i++)
#define rep(i,n) REP(i,0,n)
int rel[10][10];
const int INF=(1<<21);

int solve(int n,int *a){
  int ans=INF;
  int data[10];
  do{
    data[0]=0;
    REP(i,1,n){
      int myp=data[i-1];
      rep(j,i){
	myp=max(myp,data[j]+rel[a[i]][a[j]]);
      }
      data[i]=myp;
    }
    ans=min(ans,data[n-1]);
  }while(next_permutation(a,a+n));
  return ans;
}


main(){
  int n;
  while(cin>>n && n){
    rep(i,n)rep(j,n)cin>>rel[i][j];
    rep(i,n)REP(j,i+1,n){
      rel[i][j]=rel[j][i]=max(rel[i][j],rel[j][i]);
    }
    int a[n];rep(i,n)a[i]=i;
    cout << solve(n,a)<<endl;
  }
}

Compiler output:
a.cc: In function 'int solve(int, int*)':
a.cc:23:10: error: 'next_permutation' was not declared in this scope
   23 |   }while(next_permutation(a,a+n));
      |          ^~~~~~~~~~~~~~~~
a.cc: At global scope:
a.cc:28:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   28 | main(){
      | ^~~~
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

int n;
int dist[10][10];

int v[10];

int main()
{
	
	for(;;){
		scanf("%d", &n);
		if(n == 0)
			break;
		
		for(int i=0 ; i<n ; ++i){
			for(int j=0 ; j<n ; ++j)
				scanf("%d", &dist[i][j]);
		}
		
		for(int i=0 ; i<10 ; ++i)
			v[i] = i;
		
		int mm = INT_MAX;
		while(next_permutation(v, v+n)){
			int dists[10] = {0};
			for(int i=1 ; i<n ; ++i){
				int maxd = 0;
				
				for(int j=0 ; j<i ; ++j)
					maxd = max(maxd, dists[v[j]]+max(dist[v[i]][v[j]], dist[v[j]][v[i]]));
				
				dists[v[i]] = maxd;
			}
			
			mm = min(mm, dists[v[n-1]]);
		}
		
		printf("%d\n", mm);
	}
}

/*
10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
*/

Compiler output:
a.cc: In function 'int main()':
a.cc:27:26: error: 'INT_MAX' was not declared in this scope
   27 |                 int mm = INT_MAX;
      |                          ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <algorithm>
  +++ |+#include <climits>
    3 |
Language: Java

import java.io.*;

public class FindingAWord{

    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String w = br.readLine();
        String[] t;
        int num = 0;
        while(true){
            t = br.readLine().split(" ");
            for(int i=0; i<t.length; i++){
                if(t[i] == w){
                    num++;
                }
                else if(t[i] == "END-OF-FILE"){
                    System.out.println(num);
                    System.exit(0);
                }
            }
        }
    }
}

Compiler output:
Main.java:3: error: class FindingAWord is public, should be declared in a file named FindingAWord.java
public class FindingAWord{
       ^
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 w = br.readLine();
        String[] t = new String[1000];
        int num = 0;
        while(true){
            t = br.readLine().split(" ");
            for(int i=0; i<t.length; i++){
                if(t[i] == w){
                    num++;
                }
                else if(t[i] == "END-OF-FILE"){
                    System.out.println(num);
                    System.exit(0);
                }
            }
        }
    }
}
}

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

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

public class FindingAWord{

    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String w = br.readLine();
        List<String> t = new ArrayList<String>();
        int num = 0;
        while(true){
            t = Arrays.asList(br.readLine().split(" "));
            for(String str: t){
                if(str == w){
                    num++;
                }
                else if(str == "END-OF-FILE"){
                    System.out.println(num);
                    System.exit(0);
                }
            }
        }
    }
}

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

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

public class FindingAWord{

    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String w = br.readLine();
        List<String> t = new ArrayList<String>();
        int num = 0;
        while(true){
            t = Arrays.asList(br.readLine().split(" "));
            for(String str: t){
                if(str == w){
                    num++;
                }
                else if(str == "END_OF_TEXT"){
                    System.out.println(num);
                    System.exit(0);
                }
            }
        }
    }
}

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

package aizu;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Aizu_10022 {

	public static void main(String[] args) throws IOException {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s=br.readLine();
		StringBuffer ss=new StringBuffer();
		while(true){
			String m=br.readLine();
			if(m.equalsIgnoreCase("END_OF_TEXT"))
				break;
			else{
				ss.append(m+" ");
			}
		}
		String[] mm=ss.toString().split(" ");
		int c=0;
		for (int j = 0; j < mm.length; j++) {
			if(mm[j].equalsIgnoreCase(s))
				c++;
		}
		System.out.println(c);

	}

}

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

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String w = scan.nextLine().toLowerCase();

        int nMatches = 0;
        while (scan.hasNext()) {
            String word = scan.next();
            if (rawWord.equals("END_OF_TEXT"))
                break;

            String lowerdWord = word.toLowerCase();
            if (w.equals(lowerdWord))
                nMatches++;
        }

        System.out.println(nMatches);
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
            if (rawWord.equals("END_OF_TEXT"))
                ^
  symbol:   variable rawWord
  location: class Main
1 error
Language: Java

mport java.util.Scanner;

class Main{

    public static void main(String[] args){
	String data,word;
	int count = 0;
	int i = 1;

	Scanner scan = new Scanner(System.in);

	word = scan.next();

	while(i == 1){

	    data = scan.next();
		    
	    if(data.equals("END_OF_TEXT")){
		break;
	    }


	    data = data.replaceAll("\"","");
	    data = data.replaceAll("-","");
	    data = data.replaceAll(".","");
	    System.out.println(data);


	    if(word.compareToIgnoreCase(data) == 0){
		count += 1;
	    }
	    
	}
	System.out.println(count);
	count = 0;
    }
}

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

mport java.util.Scanner;

class Main{

    public static void main(String[] args){
	String data,word;
	int count = 0;
	int i = 1;

	Scanner scan = new Scanner(System.in);

	word = scan.next();

	while(i == 1){

	    data = scan.next();
		    
	    if(data.equals("END_OF_TEXT")){
		break;
	    }


	    data = data.replaceAll("\"","");
	    data = data.replaceAll("-","");
	    //data = data.replaceAll("\\Q" + "." + "\\E","");
	    data = data.replaceAll(".","");
	    System.out.println(data);


	    if(word.compareToIgnoreCase(data) == 0){
		count += 1;
	    }
	    
	}
	System.out.println(count);
	count = 0;
    }
}

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

import java.util.*;
class Main{
public static void main(String[] args){
Scanner s=new Scanner(System.in);
String p=s.next();
p=p.toLowerCase();
int ret=0;
String now;
while(!((now=s.next()).equals("END_OF_TEXT
")))if(now.toLowerCase().equals(p))ret++;
System.out.println(ret);
}}

Compiler output:
Main.java:9: error: unclosed string literal
while(!((now=s.next()).equals("END_OF_TEXT
                              ^
Main.java:10: error: unclosed string literal
")))if(now.toLowerCase().equals(p))ret++;
^
2 errors
Language: Java

import java.util.Scanner;


public class AOJ10022 {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String w = scn.next();
		String reading = scn.next();
		int cnt = 0;
		while(reading.equals("END_OF_TEXT")){
			if(reading.equals(w)) cnt++;
			reading = scn.next();
		}
		System.out.println(cnt);
	}
}

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


import java.util.Scanner;

public class WordMain {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String word = null; word = sc.next();	int count = 0;
		
		while(sc.hasNext()) {
			if(sc.next().equals(word)) count++;
			if(sc.next().equals("END_OF_TEXT")) break;
		}
		
		System.out.println(count);
	}

}

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

import java.util.Scanner;

public class WordFindMain {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String word = sc.next();	
		int count = 0;
		String nowword = null;
		
		while(sc.hasNext()) {
			nowword = sc.next().toUpperCase();
			
			
			//if(isEqualStr(word, sc.next())) count++;
			if(nowword.matches(word)) count++;
			if(nowword.matches("END_OF_TEXT")) break;
		}
		
		System.out.println(count);
	}
}

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

import java.util.*;
public class Main{
    static Scanner kbd = new Scanner(System.in);
    public  static void main(String[] args){
	int cnt=0;
	String x = kbd.next();
	while(kbd.hasNext()){
	    String s = kbd.next();
	    if(!s.equals(END_OF_TEXT)){
		if(s.substring(s.length()-1, s.length()).equals("."))
		    s = s.substring(0, s.length()-1);
		if(s.equals(x)) cnt++;
	    }
	    System.out.println(cnt);
	}
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
	    if(!s.equals(END_OF_TEXT)){
	                 ^
  symbol:   variable END_OF_TEXT
  location: class Main
1 error
Language: C

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

int main(void){
  int i,n = 0;
  char w[11], t[1001];

  scanf("%s", w);

  while(1){
    scanf("%s",t);
    if(!strcmp(t,"END_OF_TEXT")
      for(i=0;t[i]!='\0';i++)
        if(t[i]<91) t[i] += 32;
    if( !strcmp(w,t) ) n++;
    printf("%s\n", t);
  }

  printf("%d\n",n);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:32: error: expected ')' before 'for'
   12 |     if(!strcmp(t,"END_OF_TEXT")
      |       ~                        ^
      |                                )
   13 |       for(i=0;t[i]!='\0';i++)
      |       ~~~                       
main.c:17:3: error: expected expression before '}' token
   17 |   }
      |   ^
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  int a,d=0;
  char c[11],b[11];
  scanf("%s",c);
  while(1){
    a=0;
    scanf("%s ",b);
    int a strcmp(c,b);
    if(a==0){
      d++;
    }
    if(c="END_OF_TEXT"){
      break;
    }
  }
  printf("%d\n",d);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strcmp'
   10 |     int a strcmp(c,b);
      |           ^~~~~~
main.c:14:9: error: assignment to expression with array type
   14 |     if(c="END_OF_TEXT"){
      |         ^
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc,const char *argv[]){
    int count_same_word,i=0,j,k,chcmp;
    char word[11];
    char Str[1001];
    scanf("%s",word)
    while(1){
        scanf("%s"Str);
        if(strcmp(str,END_OF_TEXT)==0){
            break;
        }
        for(i=0;i<strlen(Str);i++){
            if(strcmp(Str,word)==0){
                count_same_word++;
            }
        }
    }
    printf("%d\n",count_same_word);
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected ';' before 'while'
    8 |     scanf("%s",word)
      |                     ^
      |                     ;
    9 |     while(1){
      |     ~~~~~
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc,const char *argv[]){
    int count_same_word,i=0,j,k,chcmp;
    char word[11];
    char Str[1001];
    scanf("%s",word);
    while(1){
        scanf("%s"Str);
        if(strcmp(str,END_OF_TEXT)==0){
            break;
        }
        for(i=0;i<strlen(Str);i++){
            if(strcmp(Str,word)==0){
                count_same_word++;
            }
        }
    }
    printf("%d\n",count_same_word);
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected ')' before 'Str'
   10 |         scanf("%s"Str);
      |              ~    ^~~
      |                   )
main.c:11:19: error: 'str' undeclared (first use in this function); did you mean 'Str'?
   11 |         if(strcmp(str,END_OF_TEXT)==0){
      |                   ^~~
      |                   Str
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:23: error: 'END_OF_TEXT' undeclared (first use in this function)
   11 |         if(strcmp(str,END_OF_TEXT)==0){
      |                       ^~~~~~~~~~~
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc,const char *argv[]){
    int count_same_word,i=0,j,k,chcmp;
    char word[11];
    char Str[1001];
    scanf("%s",word);
    while(1){
        scanf("%s",Str);
        if(strcmp(str,"END_OF_TEXT")==0){
            break;
        }
        for(i=0;i<strlen(Str);i++){
            if(strcmp(Str,word)==0){
                count_same_word++;
            }
        }
    }
    printf("%d\n",count_same_word);
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:11:19: error: 'str' undeclared (first use in this function); did you mean 'Str'?
   11 |         if(strcmp(str,"END_OF_TEXT")==0){
      |                   ^~~
      |                   Str
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc,const char *argv[]){
    int count_same_word,i=0;
    char word[12];
    char Str[1001];
    scanf("%s",word);
    while(1){
        scanf("%s",Str);
        if(strcmp(Str,"END_OF_TEXT")==0){
            break;
        }
        for(i=0;i<strlen(Str);i++){
            Str=tolower(Str[i]);
            if(strcmp(Str,word)==0){
                count_same_word++;
            }
        }
    }
    printf("%d\n",count_same_word);
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:16: error: assignment to expression with array type
   15 |             Str=tolower(Str[i]);
      |                ^
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc,const char *argv[]){
    int count_same_word,i=0;
    char word[12];
    char Str[1001];
    scanf("%s",word);
    while(1){
        scanf("%s",Str);
        if(strcmp(Str,"END_OF_TEXT")==0){
            break;
        }
        for(i=0;i<strlen(Str);i++){
            Str=tolower(Str[i]);
        }
            if(strcmp(Str,word)==0){
                count_same_word++;
            }
        
    }
    printf("%d\n",count_same_word);
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:16: error: assignment to expression with array type
   15 |             Str=tolower(Str[i]);
      |                ^
Language: C

w = raw_input()

count = 0

while True:
    s = raw_input()

    if s == "END_OF_TEXT":
        break

    if s == w:
        count += 1

print count

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | w = raw_input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'w' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'raw_input' [-Wimplicit-function-declaration]
    1 | w = raw_input()
      |     ^~~~~~~~~
main.c:1:5: error: initializer element is not constant
main.c:3:1: error: expected ',' or ';' before 'count'
    3 | count = 0
      | ^~~~~
Language: C

#include <stdio.h>

main(){
  char w[15], w1[15], s[1000], t[1000];
  int count=0, p, p1;
  int i, j, k;

  gets( w );
  
  for(i=0; w[i]!='\0';i++){
    if((int)w[i]>='A' && (int)w[i]<='Z'){
      w1[i] = (int)w[i]+(int)('a'-'A');
    }
    else if((int)w[i]>='a' && (int)w[i]<='z'){
      w1[i] = (int)w[i]-(int)('a'-'A');
    }
    
    while(1){
      t[0] = ' ';
      gets( s );
      if(s[0]=='E'){
	if(s[1]=='N'){
	  if(s[2]=='D'){
	    if(s[3]=='_'){
	      if(s[4]=='O'){
		if(s[5]=='F'){
		  if(s[6]=='_'){
		    if(s[7]=='T'){
		      if(s[8]=='E'){
			if(s[9]=='X'){
			  if(s[10]=='T'){
			    printf("%d\n", count);
			    return 0;
			  }
			}
		      }
		    }
		  }
		}
	      }
	    }
	  }
	}
      }
      for(j=0; s[j] != '\0'; j++){
	t[j+1] = s[j];
      }
      for(i=0; t[i] != '\0'; i++){
	if(t[i]=='\n' || t[i]==' ' || t[i]=='\t'){
	  p1=0;
	  for(p=0, j=i+1; t[j]!='\0' && w1[p]!='\0';p++, j++){
	    if(t[j]==w[p] || t[j]==w1[p]){
	      p1=1;
	    }
	    else{
	      p1=0;
	      break;
	    }
	  }
	  if(p1==1) count++;
	}
      }
    }
  }
  return 0;
}
  
  

   

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |   gets( w );
      |   ^~~~
      |   fgets
Language: C

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

int main(void) {
	int count=0;
	char tango[10000]={0};
	char searchfor[10000]={0};
	scanf("%s",searchfor);
	do {
		scanf("%s",tango);
		if(strcmpi(tango,searchfor)==0)count++;
	} while(strcmp(tango,"END_OF_TEXT"));
	printf("%d\n",count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: implicit declaration of function 'strcmpi'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
   11 |                 if(strcmpi(tango,searchfor)==0)count++;
      |                    ^~~~~~~
      |                    strcmp
Language: C

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

int main(void){
	int count = 0;
	char W[256];
	char T_i[256];
	gets(W);
	for(;;){
		scanf("%s" , T_i);
		if(strcmp("END_OF_TEXT" , T_i) == 0) break;
		if(strcmp(W , T_i) == 0) count++;
	}
	printf("%d\n" , count);


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |         gets(W);
      |         ^~~~
      |         fgets
Language: C

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

int main( void )
{
	char word[11];
	char str[1001];
	int counter = 0;
	scanf("%s", word);
	for( i = 0; i < strlen( word ); i++ )
	{
		if( word[i] >= 'A' && word[i] <= 'Z' )
		{
			word[i] = word[i] - ('A'-'a');
		}
	}
	while( 1 )
	{
		int i;
		scanf("%s", str);
		for( i = 0; i < strlen( str ); i++ )
		{
			if( str[i] >= 'A' && str[i] <= 'Z' )
			{
				str[i] = str[i] - ('A'-'a');
			}
		}
		printf("%s\n",str);
		if( !strcmp( str, "END_OF_TEXT" ) )break;
		if( !strcmp( str, word ) )
		{
			counter++;
		}
	}
	printf("%d",counter);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: 'i' undeclared (first use in this function)
   10 |         for( i = 0; i < strlen( word ); i++ )
      |              ^
main.c:10:14: 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 )
{
	char word[11];
	char str[1001];
	int counter = 0;
	scanf("%s", word);
	for( i = 0; i < strlen( word ); i++ )
	{
		if( word[i] >= 'A' && word[i] <= 'Z' )
		{
			word[i] = word[i] - ('A'-'a');
		}
	}
	while( 1 )
	{
		int i;
		scanf("%s", str);
		for( i = 0; i < strlen( str ); i++ )
		{
			if( str[i] >= 'A' && str[i] <= 'Z' )
			{
				str[i] = str[i] - ('A'-'a');
			}
		}
		if( !strcmp( str, "END_OF_TEXT" ) )break;
		if( !strcmp( str, word ) )
		{
			counter++;
		}
	}
	printf("%d",counter);
	return 0;
}

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

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

int scanWord( char* Word );

int main( void )
{
	char Word[11];
	char String[1001];
	char c;
	int array = 0;
	int count = 0;
	
	scanf("%s",Word);
	while( Word[array] != '\0' )
	{
		if( Word[array] >= 'A' && Word[array] <= 'Z' )
		{
			Word[array] += ( 'a' - 'A' );
		}
		array++;
	}
	array = 0;
	scanf("%c",&c);
	
	while( 1 )
	{
		scanWord( String );
		while( String[array] != '\0' )
		{
			if( String[array] >= 'A' && String[array] <= 'Z' )
			{
				String[array] += ( 'a' - 'A' );
			}
			array++;
		}
		array = 0;
		
		if( !strcmp(Word, String) )
		{
			count++;
			printf("count:%d\n",count);
		}
		if( !strcmp(String, "end_of_text") )
		{
			break;
		}
	}
	
	printf("%d\n",count);
	
	return 0;
}

int scanWord( char* Word )
{
	int array = 0;
	char c;
	while( 1 )
	{
		scanf("%c",&c);
		if( c == ' ' || c == '\n' )
		{
			break;
		}
		Word[array] = c;
		array++;
	}
	Word[array] = '\0';
	
	return array;
}

Compiler output:
main.c:2:10: fatal error: conio.h: No such file or directory
    2 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.
Language: C

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

int main(){
  char line[1000];
  count ans = 0;
  char pattern[10];

  scanf("%s", pattern);
  while(1){
    scanf("%s", line[1000]);
    if(strcmp(line,"END_OF_TEXT") == 0){
      break;
    }
    if(strcmp(line, pattern) == 0){
      i++;
    }
  }
  printf("%d\n", i);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'count'
    6 |   count ans = 0;
      |   ^~~~~
main.c:16:7: error: 'i' undeclared (first use in this function)
   16 |       i++;
      |       ^
main.c:16:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include<stdio.h>
int main(){
  char w[10]={0},str[30]={0},end[]={"END_OF_TEXT"};
  int i,j,n=0;
  scanf("%s",w);
  while(1){
    for(i=0;i<30;i++){
      str[i]=0;
    }
    j=0;
    scanf("%s",str);
    for(i=0;i<11;i++){
      if(end[i]!=str[i]){
        j=1;
        break;
      }
    }
    if(j==0) break;
    j=0;
    for(i=0;i<10;i++){
      if(w[i]!=str[i]){
        j=1;
        break;
      }
    }
    if(j==0) n++;
  }
  printf("%d\n",n);
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
	char obj[11],word[1001];
	int cnt=0;
	
	gets(obj);
	do{
		scanf("%s",word);
		if(!strcmp(word,obj)){
			cnt++;
		}
	}while(strcmp(word,"END_OF_TEXT")!=0)
	
	printf("%d\n",cnt);
	return 0;
}

	

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         gets(obj);
      |         ^~~~
      |         fgets
main.c:12:21: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   12 |                 if(!strcmp(word,obj)){
      |                     ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | 
main.c:15:46: error: expected ';' before 'printf'
   15 |         }while(strcmp(word,"END_OF_TEXT")!=0)
      |                                              ^
      |                                              ;
   16 | 
   17 |         printf("%d\n",cnt);
      |         ~~~~~~
Language: C

#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>

int main(){

	char buf1[13];
	char buf3[13];
	char buf4[13]="END_OF_TEXT";
	int i,j,flag,wa;
	FILE *fp;
	/*if ((fp = fopen("text.txt", "r")) == NULL) {
		printf("file open error!!\n");
		exit(EXIT_FAILURE);	/* (3)エラーの場合は通常、異常終了する */
	}*/
	scanf("%s%*c",buf1);
	//fscanf(fp,"%s%*c",buf1);
	wa=0;
	while(1){
		scanf("%s",buf3);
		//fscanf(fp,"%s",buf3);
		flag=1;
		for(i=0;i<13;i++){
			if(buf4[i]=='\0'&&buf3[i]=='\0')
				break;
			if(buf4[i]=='\0'){
				flag=0;
				break;
			}
			if(buf3[i]=='\0'){
				flag=0;
				break;
			}
			if(buf3[i]!=buf4[i] /*&& (buf3[i]<'a'||buf3[i]>'z'||buf3[i]-'a'+'A'!=buf4[i]) && (buf3[i]<'A'||buf3[i]>'Z'||buf3[i]-'A'+'a'!=buf1[i])*/){
				flag=0;
				break;
			}
		}
		if(flag==1)
			break;
		flag=1;
		for(i=0;i<11;i++){
			if(buf1[i]=='\0'&&buf3[i]=='\0')
				break;
			if(buf1[i]=='\0'){
				flag=0;
				break;
			}
			if(buf3[i]=='\0'){
				flag=0;
				break;
			}
			if(buf3[i]!=buf1[i]&&(buf3[i]<'a'||buf3[i]>'z'||buf3[i]-'a'+'A'!=buf1[i]) && (buf3[i]<'A'||buf3[i]>'Z'||buf3[i]-'A'+'a'!=buf1[i])){
				flag=0;
				break;
			}
		}
		if(flag==1)
			wa++;
	}
	printf("%d\n",wa);
	//for(i=0;i<=1000000000;i++);
	return 0;
}

Compiler output:
main.c:15:11: error: expected identifier or '(' before '/' token
   15 |         }*/
      |           ^
main.c:18:9: warning: data definition has no type or storage class
   18 |         wa=0;
      |         ^~
main.c:18:9: error: type defaults to 'int' in declaration of 'wa' [-Wimplicit-int]
main.c:19:9: error: expected identifier or '(' before 'while'
   19 |         while(1){
      |         ^~~~~
main.c:61:16: error: expected declaration specifiers or '...' before string constant
   61 |         printf("%d\n",wa);
      |                ^~~~~~
main.c:61:23: error: expected declaration specifiers or '...' before 'wa'
   61 |         printf("%d\n",wa);
      |                       ^~
main.c:63:9: error: expected identifier or '(' before 'return'
   63 |         return 0;
      |         ^~~~~~
main.c:64:1: error: expected identifier or '(' before '}' token
   64 | }
      | ^
Language: C

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

int main(){
        string W;
        string T;
        int ans;
        cin >> W;
        while(1){
                cin >> T;
                if(T =="END_OF_TEXT"){
                        break;
                }
                if(W == T){
                        ans++;
                }
        }
        cout << ans << endl;
return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[])
{
    int result = 0;
    string W;
    string E = "END_OF_TEXT";
    string T;
    cin >> W;
    while(true){
        cin >> T;
        if (T == "END_OF_TEXT"){
            break;
        }
        if (T == W) {
            result++;
        }
    }
    cout << result << endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

int main()
{
    char word[1000][32]; //単語
    int i=0,j,n;

    int max_word=0, max_count=0, count;
    int max_letter=0, max_letter_count=0, letter_count;

    printf("input:");
    while(scanf("%s",word[i]) != EOF) {
        i++;
    }
      n=i;
      for(i=0; i<n; i++){
          count=0;
          letter_count = (int)strlen(word[i]);
          if(max_letter_count < letter_count){
              max_letter_count = letter_count;
              max_letter = i; //単語の単語の番号登録
          }
          for(j=i+1; j<n; j++){
              if(strcmp(word[i], word[j]) == 0){
                  count++;
              }
          }
          if(max_count < count){
              max_count = count;
              max_word = i;
          }
      }
    printf("%s %s\n",word[max_word], word[max_letter]);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("input:");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |     printf("input:");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |     while(scanf("%s",word[i]) != EOF) {
      |           ^~~~~
main.c:10:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:10:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:34: error: 'EOF' undeclared (first use in this function)
   10 |     while(scanf("%s",word[i]) != EOF) {
      |                                  ^~~
main.c:10:34: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:10:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:31: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   16 |           letter_count = (int)strlen(word[i]);
      |                               ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | int main()
main.c:16:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   16 |           letter_count = (int)strlen(word[i]);
      |                               ^~~~~~
main.c:16:31: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:22:18: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   22 |               if(strcmp(word[i], word[j]) == 0){
      |                  ^~~~~~
main.c:22:18: note: include '<string.h>' or provide a declaration of 'strcmp'
Language: C

int main()
{
    char word[1000][32];
    int i=0,j,n;
 
    int max_word=0, max_count=0, count;
    int max_letter=0, max_letter_count=0, letter_count;
 
    printf("input:");
    while(scanf("%s",word[i]) != EOF) {
        i++;
    }
      n=i;
      for(i=0; i<n; i++){
          count=0;
          letter_count = (int)strlen(word[i]);
          if(max_letter_count < letter_count){
              max_letter_count = letter_count;
              max_letter = i;
          }
          for(j=i+1; j<n; j++){
              if(strcmp(word[i], word[j]) == 0){
                  count++;
              }
          }
          if(max_count < count){
              max_count = count;
              max_word = i;
          }
      }
    printf("%s %s\n",word[max_word], word[max_letter]);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("input:");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |     printf("input:");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |     while(scanf("%s",word[i]) != EOF) {
      |           ^~~~~
main.c:10:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:10:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:34: error: 'EOF' undeclared (first use in this function)
   10 |     while(scanf("%s",word[i]) != EOF) {
      |                                  ^~~
main.c:10:34: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:10:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:31: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   16 |           letter_count = (int)strlen(word[i]);
      |                               ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | int main()
main.c:16:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   16 |           letter_count = (int)strlen(word[i]);
      |                               ^~~~~~
main.c:16:31: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:22:18: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   22 |               if(strcmp(word[i], word[j]) == 0){
      |                  ^~~~~~
main.c:22:18: note: include '<string.h>' or provide a declaration of 'strcmp'
Language: C

int main()
{
    char word[1000][32];
    int i=0,j,n;

    int max_word=0, max_count=0, count;
    int max_letter=0, max_letter_count=0, letter_count;
    while(scanf("%s",word[i]) != EOF) {
        i++;
    }
      n=i;
      for(i=0; i<n; i++){
          count=0;
          letter_count = (int)strlen(word[i]);
          if(max_letter_count < letter_count){
              max_letter_count = letter_count;
              max_letter = i;
          }
          for(j=i+1; j<n; j++){
              if(strcmp(word[i], word[j]) == 0){
                  count++;
              }
          }
          if(max_count < count){
              max_count = count;
              max_word = i;
          }
      }
    printf("%s %s\n",word[max_word], word[max_letter]);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |     while(scanf("%s",word[i]) != EOF) {
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:8:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |     while(scanf("%s",word[i]) != EOF) {
      |           ^~~~~
main.c:8:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:34: error: 'EOF' undeclared (first use in this function)
    8 |     while(scanf("%s",word[i]) != EOF) {
      |                                  ^~~
main.c:8:34: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:8:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:31: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   14 |           letter_count = (int)strlen(word[i]);
      |                               ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | int main()
main.c:14:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   14 |           letter_count = (int)strlen(word[i]);
      |                               ^~~~~~
main.c:14:31: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:20:18: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   20 |               if(strcmp(word[i], word[j]) == 0){
      |                  ^~~~~~
main.c:20:18: note: include '<string.h>' or provide a declaration of 'strcmp'
main.c:29:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   29 |     printf("%s %s\n",word[max_word], word[max_letter]);
      |     ^~~~~~
main.c:29:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:29:5: note: include '<stdio.h>' or provide a declaration of 'printf'