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

#include <iostream.h>
#include <conio.h>
using namespace std;
int main()
{
	int n=0, fact=1;
	 cout<<"Enter a number:";
	 cin>>n;

	 for(int i=n; i>=1; i--)
     fact*=i;
	 cout<<"Factorial for the number is: "<<fact<<endl;
     getchar();


	system("pause");
	return 0;
}

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

#include<stdio.h>
#include<string.h>
int main()
{
    int n;
    int f[50];
    int i, j, s, c;
    while (scanf ("%d", &n)??EOF)
    {
        memset(f,0,sizeof(f));
        f[0]=1;
        for (i=2; i<=n; i++)
        {
            c=0;
            for (j=0; j<50; j++)
            {
                s=f[j]*i+c;
                f[j]=s%10;
                c=s/10;
            }
        }
        for (i=49; i>=0; i--) if (f[i]!=0) break;
        for (j=i; j>=0; j--) printf ("%d", f[j]);
        printf ("\n");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected primary-expression before '?' token
    8 |     while (scanf ("%d", &n)??EOF)
      |                             ^
a.cc:8:33: error: expected ':' before ')' token
    8 |     while (scanf ("%d", &n)??EOF)
      |                                 ^
a.cc:8:33: error: expected primary-expression before ')' token
a.cc:8:33: error: expected ':' before ')' token
a.cc:8:33: error: expected primary-expression before ')' token
Language: C++

#include<iostream>

using namespace std;

int Main()
{
     int counter, n, fact = 1;

     cin>>n;

     for (int counter = n; counter >= 1; counter--)
     {
         fact = fact * counter;
     }

     cout<<fact;
 }

Compiler output:
a.cc: In function 'int Main()':
a.cc:17:2: warning: no return statement in function returning non-void [-Wreturn-type]
   17 |  }
      |  ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

int fact(int number) {
    long r=0;
    for(int i=number; i>=1; i--)
{
r = r*i;
}
return r;
}
 
int Main() {

int num=0;
long result =0;

cin >> num;

result = fact(num);

cout<<result;

    
}

Compiler output:
a.cc: In function 'int Main()':
a.cc:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
   25 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

import java.util.*;

public Main{
public static viod main(String[] args){
Scanner sc=new Scanner(System.in);
System.out.println(sc.nextLine().toUpperCase());
}
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static viod main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.*;

public Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
System.out.println(sc.nextLine().toUpperCase());
}
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
public class O {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String upper_a = a.toUpperCase();
		System.out.println(upper_a);
	
	}
}

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

public class StringToUpperCaseEmp {
   public static void main(String[] args) {
      String str = "string abc to uppercase ";
      String strUpper = str.toUpperCase();
      System.out.println("Original String: " + str);
      System.out.println("String changed to upper case: "
      + strUpper);
   }
}

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

#!/usr/bin/ruby
# -*- coding: utf-8 -*-
=begin
Volume0-0020
=end

str = STDIN.gets.chomp
puts str.tr("a-z","A-Z")

Compiler output:
Main.java:1: error: illegal character: '#'
#!/usr/bin/ruby
^
Main.java:1: error: class, interface, enum, or record expected
#!/usr/bin/ruby
  ^
Main.java:2: error: illegal character: '#'
# -*- coding: utf-8 -*-
^
3 errors
Language: Java

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

	public static void main(String[] args){
		
		String line = scan.nextInt();
		StringBuffer sb = new StringBuffer();
		for(int i = 0; i < line.length(); i++){
			char ch = line.charAt(i);
			if(Character.isLowerCase(ch)){
				ch = Character.toUpperCase(ch);
			}
			sb.append(ch);
		}
		String out = sb.toString();
		System.out.printf("%s\n", out);
	}
}

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

import java.util.*;

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

	public static void main(String[] args){
		
		String line = scan.nextInt();
		StringBuffer sb = new StringBuffer();
		for(int i = 0; i < line.length(); i++){
			char ch = line.charAt(i);
			if(Character.isLowerCase(ch)){
				ch = Character.toUpperCase(ch);
			}
			sb.append(ch);
		}
		String out = sb.toString();
		System.out.printf("%s\n", out);
	}
}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to String
		String line = scan.nextInt();
		                          ^
1 error
Language: Java


public class Capitalize {

	public static void main(String[] args) {
		String str = new java.util.Scanner(System.in).nextLinet();
		System.out.println (str.toLowerCase());
	}

}

Compiler output:
Main.java:2: error: class Capitalize is public, should be declared in a file named Capitalize.java
public class Capitalize {
       ^
Main.java:5: error: cannot find symbol
		String str = new java.util.Scanner(System.in).nextLinet();
		                                             ^
  symbol:   method nextLinet()
  location: class Scanner
2 errors
Language: Java


public class Main {

	public static void main(String[] args) {
		String str = new java.util.Scanner(System.in).nextLinet();
		System.out.println (str.toLowerCase());
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		String str = new java.util.Scanner(System.in).nextLinet();
		                                             ^
  symbol:   method nextLinet()
  location: class Scanner
1 error
Language: Java

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

public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();

		System.out.println (str.toLowerCase());
	}

}

Compiler output:
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
		String str = br.readLine();
		                        ^
1 error
Language: Java

public class Main {

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

		System.out.println (str.toLowerCase());
	}

}

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

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

public class Main {

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

		System.out.println (str.toLowerCase());
	}

}

Compiler output:
Main.java:10: error: cannot find symbol
		System.out.println (str.toLowerCase());
		                       ^
  symbol:   method toLowerCase()
  location: variable str of type BufferedReader
1 error
Language: Java

import com.sun.tools.javac.util.StringUtils;

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

public class Main {

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

        String line;
        while ((line = br.readLine()) != null && !line.isEmpty()) {
            System.out.println(StringUtils.toUpperCase(line));
        }
    }
}

Compiler output:
Main.java:1: error: package com.sun.tools.javac.util is not visible
import com.sun.tools.javac.util.StringUtils;
                          ^
  (package com.sun.tools.javac.util is declared in module jdk.compiler, which does not export it to the unnamed module)
1 error
Language: Java

import java.util.Scanner;

public class AOJ0020 {
    
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		for(;;){
			String a = s.next();
			String b = a.toUpperCase();
			System.out.print(b);
			if(s.hasNext())
				System.out.print(" ");
			else
				break;
		}
    }
}

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



import java.io.*;

public class A024{
    public static void main(String[] args)throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        System.out.println(str.toUpperCase());
        br.close();
    }
}

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

import java.util.Scanner;

public class Test {
	public static void main(String args[]){
		Scanner stdIn = new Scanner(System.in).useDelimiter("\\r\\n");
		String s = stdIn.next();
		s = s.toUpperCase();
		System.out.println(s);
	}
}

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

class Main{
    public static void main(String[] args){
	try{
	    BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
	    String st = sc.readLine();
	    System.out.println(st.toUpperCase());
	}catch(Exception e){
	    System.out.println("Error");
	}
    }
}

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

import java.io.*

class Main{
    public static void main(String[] args){
	try{
	    BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
	    String st = sc.readLine();
	    System.out.println(st.toUpperCase());
	}catch(Exception e){
	    System.out.println("Error");
	}
    }
}

Compiler output:
Main.java:1: error: ';' expected
import java.io.*
                ^
1 error
Language: Java

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

public class g
{
    public static void main(String[] args) throws IOException
    {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s;
		while((s=br.readLine())!=null){
			char[] chars = s.toCharArray();
			for(char c : chars){
					if(c==' ' || c=='.')   	System.out.print(c);
					else	   				System.out.print((char)(c-32));
			}
		}
    }
}

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

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


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

		String str = br.readLine();
		/*
		System.out.println(str.toUpperCase());
		*/

		char text[] = str.toCharArray();

		for(int i=0; i<text.length; i++){
			if('a' <= text[i] && text[i] <= 'z'){
				text[i] = (char)(text[i] - 'a' + 'A');
			}
		}
		System.out.println(text);
	}
}

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

import java.io.*;

public class Main0020{
	public static void main(String[] args){
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		try{
			String s;
			while((s=reader.readLine()) != null){
				String t=s.toUpperCase();
				System.out.println(t);
			}
		}catch(IOException e){
			System.exit(0);
		}
	}
}

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

#include<stdio.h>
#include<ctype.h>

int main()
{
 char str[256];
 char *p;
 fgets(str,256,stdin);
 for(p=str;*p;p++)*p=upper(*p);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: implicit declaration of function 'upper'; did you mean 'toupper'? [-Wimplicit-function-declaration]
    9 |  for(p=str;*p;p++)*p=upper(*p);
      |                      ^~~~~
      |                      toupper
Language: C

#include<stdio.h>
#include<ctype.h>

int main()
{
 char str[256];
 char *p;
 fgets(str,256,stdin);
 for(p=str;*p;p++)
  *p=upper(*p);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:6: error: implicit declaration of function 'upper'; did you mean 'toupper'? [-Wimplicit-function-declaration]
   10 |   *p=upper(*p);
      |      ^~~~~
      |      toupper
Language: C

#include <stdio.h>

int main(void){
	char n[100];
	gets(n);
	for(int i=0;i<100;i++){
		if((n[i]>='a')&&(n[i]<='z')){
			n[i]=n[i]+'A'-'a';
		}
	}
	printf("%s\n",n);
return 0;
}

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

#include <stdio.h>

int main(void){
	char n[30];
	gets(n);
	for(int i=0;i<30;i++){
		if((n[i]>='a')&&(n[i]<='z')){
			n[i]=n[i]+'A'-'a';
		}
	}
	printf("%s\n",n);
return 0;
}

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

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

int main()
{
	char c;
	while ((c = getch()) != EOF){
		if (c >= 'a' && c <= 'z'){
			c -= ('a'-'A');
		}
		printf("%c",c);
	}
	
	return (0);
}

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 <conio.h>

int main(void)
{
	char c;
	while ((c = getch()) != EOF){
		if (c >= 'a' && c <= 'z'){
			c -= ('a'-'A');
		}
		printf("%c",c);
	}
	
	return (0);
}

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>
int main(){
	char s[2056]="\0";
	gets(s);
	for(int i=0;i<2056;i++){
		if(s[i]=='\0')	break;
		if('a'<=s[i]&&s[i]<='z'){
			s[i]='A'+(s[i]-'a');
		}
	}
	puts(s);
	return 0;
}

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

#include<stdio.h> 
#include <ctype.h>

int main(){
 
  int i;
  char str[1024] ;

  scanf("%[a-zA-Z .]", &str);
  len=strlen(str);
  for(i=0;str[i] != '\0';i++){
    str[i] = toupper(str[i]);
  }
  printf( "%s\n", str );

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'len' undeclared (first use in this function)
   10 |   len=strlen(str);
      |   ^~~
main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   10 |   len=strlen(str);
      |       ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <ctype.h>
  +++ |+#include <string.h>
    3 | 
main.c:10:7: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   10 |   len=strlen(str);
      |       ^~~~~~
main.c:10:7: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C

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

int main()
{
    char a[200];
    gets(a);
    for(int i=0; a[i]!='\0'; i++)
    {
        if(a[i]>=97 && a[i]<=122){
            a[i]=a[i]-32;
        }
    }
    printf("%s\n",a);

    return 0;
}

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

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

int main()
{
   char str[200];
   gets(str);
   printf("%s\n",strlwr(str));

   return  0;

}

Compiler output:
main.c: In function 'main':
main.c:7:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |    gets(str);
      |    ^~~~
      |    fgets
main.c:8:18: error: implicit declaration of function 'strlwr'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    8 |    printf("%s\n",strlwr(str));
      |                  ^~~~~~
      |                  strlen
Language: C

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

int main(void)
{
	int i;
	char c[200];
	
	scanf("%s",c);
	for(i=0;i<=strlen(c)-1;i++
	{
		if('a'<=c[i] && c[i]<='z') c[i]-=32;
		printf("%c",c[i]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:35: error: expected ')' before '{' token
   10 |         for(i=0;i<=strlen(c)-1;i++
      |            ~                      ^
      |                                   )
   11 |         {
      |         ~                          
main.c:16:1: error: expected expression before '}' token
   16 | }
      | ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define U1 unsigned char
#define S1 char
#define	S4 int
#define S8 long

#define MAX_NUM_CHARACTERS            (200)    /* 文字数の上限 */
#define DIF_UPPERCACE_LOWERCASE       ('a'-'A')/* 大文字と小文字の文字コードの差 */

/* 小文字(a～z)を大文字に変換する関数 */
/* 入力文字列の領域を置換する */
void vd_d_toUpperCase(S1* s1_ap_arrCharacters)
{
	S1* s1_tp_indexArrCharacters;		/* 入力文字列操作用インデックス */

	/* a-zなら、A-Zに変換 */
	s1_tp_indexArrCharacters = &s1_ap_arrCharacters[0];
	while (*s1_tp_indexArrCharacters != (S1)'\0')
	{
		if ((*s1_tp_indexArrCharacters >= (S1)'a') &&
			(*s1_tp_indexArrCharacters <= (S1)'z'))
		{
			*s1_tp_indexArrCharacters -= (S1)DIF_UPPERCACE_LOWERCASE;
		}
		s1_tp_indexArrCharacters++;
	}
}

S4 main(void)
{
	S1 s1_tp_inputCharacters[MAX_NUM_CHARACTERS + 1];    /* 終端文字のために余分に配列を確保 */

	(void)gets_s(s1_tp_inputCharacters, sizeof(s1_tp_inputCharacters));

	/* 小文字を大文字に変換 */
	vd_d_toUpperCase(s1_tp_inputCharacters);

	/* 結果を出力 */
	printf("%s\n", s1_tp_inputCharacters);

	return((S4)0);
}



Compiler output:
main.c: In function 'main':
main.c:37:15: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   37 |         (void)gets_s(s1_tp_inputCharacters, sizeof(s1_tp_inputCharacters));
      |               ^~~~~~
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define U1 unsigned char
#define S1 char
#define	S4 int
#define S8 long

#define MAX_NUM_CHARACTERS            (200)    /* 文字数の上限 */
#define DIF_UPPERCACE_LOWERCASE       ('a'-'A')/* 大文字と小文字の文字コードの差 */

/* 小文字(a～z)を大文字に変換する関数 */
/* 入力文字列の領域を置換する */
void vd_d_toUpperCase(S1* s1_ap_arrCharacters)
{
	S1* s1_tp_indexArrCharacters;		/* 入力文字列操作用インデックス */

	/* a-zなら、A-Zに変換 */
	s1_tp_indexArrCharacters = &s1_ap_arrCharacters[0];
	while (*s1_tp_indexArrCharacters != (S1)'\0')
	{
		if ((*s1_tp_indexArrCharacters >= (S1)'a') &&
			(*s1_tp_indexArrCharacters <= (S1)'z'))
		{
			*s1_tp_indexArrCharacters -= (S1)DIF_UPPERCACE_LOWERCASE;
		}
		s1_tp_indexArrCharacters++;
	}
}

S4 main(void)
{
	S1 s1_tp_inputCharacters[MAX_NUM_CHARACTERS + 1];    /* 終端文字のために余分に配列を確保 */

	(void)gets(s1_tp_inputCharacters, sizeof(s1_tp_inputCharacters));

	/* 小文字を大文字に変換 */
	vd_d_toUpperCase(s1_tp_inputCharacters);

	/* 結果を出力 */
	printf("%s\n", s1_tp_inputCharacters);

	return((S4)0);
}



Compiler output:
main.c: In function 'main':
main.c:37:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   37 |         (void)gets(s1_tp_inputCharacters, sizeof(s1_tp_inputCharacters));
      |               ^~~~
      |               fgets
Language: C



#include<stdio.h>



int main()
{
	char a[210];
	gets(a);
	int i=0;
	char b;
	while(a[i]!='\0')
	{
		if(a[i]>='a'&&a[i]<='z')
		{
			b=(char)(a[i]+('A'-'a'));
			printf("%c",b);
		}
		else
		printf("%c",a[i]);
		i++;
	}
	return 0;
} 


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

#include <stdio.h>
int main(void){
    char moji;
    int i;

    for(i=1;1<=200;i++){
    scanf("%c",&moji);
    if(moji=='a'){
        printf("A");
    }else if(moji=='b'){
        printf("B");
    }else if(moji=='c'){
        printf("C");
    }else if(moji=='d'){
        printf("D");
    }else if(moji=='e'){
        printf("E");
    }else if(moji=='f'){
        printf("F");
    }else if(moji=='g'){
        printf("G");
    }else if(moji=='h'){
        printf("H");
    }else if(moji=='i'){
        printf("I");
    }else if(moji=='j'){
        printf("J");
    }else if(moji=='k'){
        printf("K");
    }else if(moji=='l'){
        printf("L");
    }else if(moji=='m'){
        printf("M");
    }else if(moji=='n'){
        printf("N");
    }else if(moji=='o'){
        printf("O");
    }else if(moji=='p'){
        printf("P");
    }else if(moji=='q'){
        printf("Q");
    }else if(moji=='r'){
        printf("R");
    }else if(moji=='s'){
        printf("S");
    }else if(moji=='t'){
        printf("T");
    }else if(moji=='u'){
        printf("U");
    }else if(moji=='v'){
        printf("V");
    }else if(moji=='v'){
        printf("V");
    }else if(moji=='x'){
        printf("X");
    }else if(moji=='y'){
        printf("Y");
    }else if(moji=='z'){
        printf("Z");
    }else if(moji==' '){
        printf(" ");
    }else if(moji=='.'){
        printf(".");
    }else{
        printf("\n);
        break;
    }
    }
    return 0;
    }



Compiler output:
main.c: In function 'main':
main.c:65:16: warning: missing terminating " character
   65 |         printf("\n);
      |                ^
main.c:65:16: error: missing terminating " character
   65 |         printf("\n);
      |                ^~~~~
main.c:66:9: error: expected expression before 'break'
   66 |         break;
      |         ^~~~~
main.c:66:15: error: expected ';' before '}' token
   66 |         break;
      |               ^
      |               ;
   67 |     }
      |     ~
Language: C

#include<stdio.h>
#include<ctype.h>
int main(){
  char str[100000];
  int i=0;
  gets(str);
  for(i=0;str[i]!='\0';){
    str[i]=toupper(str[i]);
  i++;
 }
  printf("%s\n",str);
  return 0;
}


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

#include<stdio.h>
int main(void){
    char a[1000];
    int i,j;
 
    gets(a);
    for(i=0;a[i]!='\0';i++){
        if(a[i]==32 || a[i]==46)continue;
        a[i]-=32;
    }
    printf("%s\n",a);
 
 
    return 0;
 


Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |     gets(a);
      |     ^~~~
      |     fgets
main.c:14:5: error: expected declaration or statement at end of input
   14 |     return 0;
      |     ^~~~~~
Language: C

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

char str[201];

int main() {
    scanf("%s", str);

    int len = strlen(str);
    for(int i=0; i<len; ++i) {
        char c = str[i];
        if(c >= 'a' && c <= 'z') {
            //cが英小文字である場合
            char upper = (c - 'a') + 'A';
            printf("%d", upper)
        } else {
            printf("%c", c);
        }
    }
    printf("\n");
}


Compiler output:
main.c: In function 'main':
main.c:13:13: error: stray '\10' in program
   13 |             <U+0008>//c<U+304C><U+82F1><U+5C0F><U+6587><U+5B57><U+3067><U+3042><U+308B><U+5834><U+5408>
      |             ^~~~~~~~
main.c:15:32: error: expected ';' before '}' token
   15 |             printf("%d", upper)
      |                                ^
      |                                ;
   16 |         } else {
      |         ~
Language: C

#include<stdio.h>
int main(){
int ch;
while((ch=getchar())!=EOF){
if(ch=' '||ch='.')
switch(ch){
case 'a':ch='A';break;
case 'b':ch='B';break;
case 'c':ch='C';break;
case 'd':ch='D';break;
case 'e':ch='E';break;
case 'f':ch='F';break;
case 'g':ch='G';break;
case 'h':ch='H';break;
case 'i':ch='I';break;
case 'j':ch='J';break;
case 'k':ch='K';break;
case 'l':ch='L';break;
case 'm':ch='M';break;
case 'n':ch='N';break;
case 'o':ch='O';break;
case 'p':ch='P';break;
case 'q':ch='Q';break;
case 'r':ch='R';break;
case 's':ch='S';break;
case 't':ch='T';break;
case 'u':ch='U';break;
case 'v':ch='V';break;
case 'w':ch='W';break;
case 'x':ch='X';break;
case 'y':ch='Y';break;
case 'z':ch='Z';break;
}
putchar(ch);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: lvalue required as left operand of assignment
    5 | if(ch=' '||ch='.')
      |              ^
Language: C

#include<stdio.h>
int main(){
int ch;
while((ch=getchar())!=EOF){
if(ch=' '||ch='.'){
switch(ch){
case 'a':ch='A';break;
case 'b':ch='B';break;
case 'c':ch='C';break;
case 'd':ch='D';break;
case 'e':ch='E';break;
case 'f':ch='F';break;
case 'g':ch='G';break;
case 'h':ch='H';break;
case 'i':ch='I';break;
case 'j':ch='J';break;
case 'k':ch='K';break;
case 'l':ch='L';break;
case 'm':ch='M';break;
case 'n':ch='N';break;
case 'o':ch='O';break;
case 'p':ch='P';break;
case 'q':ch='Q';break;
case 'r':ch='R';break;
case 's':ch='S';break;
case 't':ch='T';break;
case 'u':ch='U';break;
case 'v':ch='V';break;
case 'w':ch='W';break;
case 'x':ch='X';break;
case 'y':ch='Y';break;
case 'z':ch='Z';break;
}}
putchar(ch);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: lvalue required as left operand of assignment
    5 | if(ch=' '||ch='.'){
      |              ^
Language: C

#include<stdio.h>
int main(){
int ch;
while((ch=getchar())!=EOF){
if(ch='\b'||ch='.'){
switch(ch){
case 'a':ch='A';break;
case 'b':ch='B';break;
case 'c':ch='C';break;
case 'd':ch='D';break;
case 'e':ch='E';break;
case 'f':ch='F';break;
case 'g':ch='G';break;
case 'h':ch='H';break;
case 'i':ch='I';break;
case 'j':ch='J';break;
case 'k':ch='K';break;
case 'l':ch='L';break;
case 'm':ch='M';break;
case 'n':ch='N';break;
case 'o':ch='O';break;
case 'p':ch='P';break;
case 'q':ch='Q';break;
case 'r':ch='R';break;
case 's':ch='S';break;
case 't':ch='T';break;
case 'u':ch='U';break;
case 'v':ch='V';break;
case 'w':ch='W';break;
case 'x':ch='X';break;
case 'y':ch='Y';break;
case 'z':ch='Z';break;
}}
putchar(ch);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: lvalue required as left operand of assignment
    5 | if(ch='\b'||ch='.'){
      |               ^
Language: C

include<stdio.h>

int main(){
	char s[26]={'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , 'o' , 'p' , 'q' , 'r' , 's' , 't' , 'u' , 'v' , 'w' , 'x' , 'y' , 'z'};
	char l[26]={'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' , 'N' , 'O' , 'P' , 'Q' , 'R' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z'};
	char str[1000];
	int c,i,j;
	
	for(c=0;;c++){
		scanf("%c",&str[c]);
		if(str[c]=='\n')break;
	}
	
	for(i=0;i<c;i++){
		for(j=0;j<26;j++){
			if(str[i]==s[j]){
				str[i]=l[j];
			}
		}
		printf("%c",str[i]);
	}
	
	printf("\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>
main(){char a[99]; int i=0;gets(a);do{if(a[i]>'`' && a[i]<'{')a[i]-=32;}while(a[++i]!='\0');puts(a);return 0;}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){char a[99]; int i=0;gets(a);do{if(a[i]>'`' && a[i]<'{')a[i]-=32;}while(a[++i]!='\0');puts(a);return 0;}
      | ^~~~
main.c: In function 'main':
main.c:2:28: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    2 | main(){char a[99]; int i=0;gets(a);do{if(a[i]>'`' && a[i]<'{')a[i]-=32;}while(a[++i]!='\0');puts(a);return 0;}
      |                            ^~~~
      |                            fgets
Language: C

main(){for(char c;~c;putchar(c))c=getchar();}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){for(char c;~c;putchar(c))c=getchar();}
      | ^~~~
main.c: In function 'main':
main.c:1:22: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(){for(char c;~c;putchar(c))c=getchar();}
      |                      ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
  +++ |+#include <stdio.h>
    1 | main(){for(char c;~c;putchar(c))c=getchar();}
main.c:1:35: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | main(){for(char c;~c;putchar(c))c=getchar();}
      |                                   ^~~~~~~
main.c:1:35: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
Language: C

main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      | ^~~~
main.c: In function 'main':
main.c:1:14: error: 'c' undeclared (first use in this function)
    1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      |              ^
main.c:1:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:16: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      |                ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
  +++ |+#include <stdio.h>
    1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:24: error: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration]
    1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      |                        ^~~~~~~
main.c:1:1: note: include '<ctype.h>' or provide a declaration of 'isalpha'
  +++ |+#include <ctype.h>
    1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:45: error: 'getchar' undeclared (first use in this function)
    1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      |                                             ^~~~~~~
main.c:1:45: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
Language: C

main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      |                 ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
  +++ |+#include <stdio.h>
    1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:25: error: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration]
    1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      |                         ^~~~~~~
main.c:1:1: note: include '<ctype.h>' or provide a declaration of 'isalpha'
  +++ |+#include <ctype.h>
    1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:46: error: 'getchar' undeclared (first use in this function)
    1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
      |                                              ^~~~~~~
main.c:1:46: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:46: note: each undeclared identifier is reported only once for each function it appears in
Language: C

main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
      | ^~~~
main.c: In function 'main':
main.c:1:25: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
      |                         ^~~~
main.c:1:43: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
      |                                           ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
main.c:1:43: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
      |                                           ^~~~~~
main.c:1:43: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:1:57: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
      |                                                         ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
  +++ |+#include <stdio.h>
    1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
main.c:1:94: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
      |                                                                                              ^~~~
main.c:1:94: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

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

int i=0,n;
char s[1005];

int main(){
	gets(s);
	for(i=0;i<strlen(s);i++){
		if(s[i]>96 && s[i]<123)s[i]=s[i]-32;
	}
	printf("%s",s);
	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(s);
      |         ^~~~
      |         fgets
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main()
{
	char s[21];
	int i,l;
	gets(s);
	l=strlen(s);;
	for(i=0;i<l;i++)
	printf("%c",toupper(s[i]));
	printf("\n");
	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(s);
      |         ^~~~
      |         fgets
Language: C

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

int main(void)
{
	char str[1000];
	int i;
	
	gets(str);
	for (i = 0; i < strlen(str); i++){
		if (('a' <= str[i]) && (str[i] <= 'z')){
			str[i] -= 0x20;
		}
	}
	printf("%s\n", str);

	
	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(str);
      |         ^~~~
      |         fgets
Language: C

void main(){
	char s[9999]
int i;
	for(;~scanf("%s",s);printf("%s ",s))
		for(i=0;s[i];i++)
			s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	for(i=0;s[i];i++)
		s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	puts(s);
}

Compiler output:
main.c: In function 'main':
main.c:2:21: error: expected ';' before 'int'
    2 |         char s[9999]
      |                     ^
      |                     ;
    3 | int i;
      | ~~~                  
main.c:4:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         for(;~scanf("%s",s);printf("%s ",s))
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | void main(){
main.c:4:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         for(;~scanf("%s",s);printf("%s ",s))
      |               ^~~~~
main.c:4:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:26: error: 's' undeclared (first use in this function)
    4 |         for(;~scanf("%s",s);printf("%s ",s))
      |                          ^
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:29: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |         for(;~scanf("%s",s);printf("%s ",s))
      |                             ^~~~~~
main.c:4:29: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:29: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:29: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    9 |         puts(s);
      |         ^~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

void main(){
	char s[999];
	int i;
	for(;gets(s);printf("%s\n",s))
		for(i=0;s[i];i++)
			s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	puts("");
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    4 |         for(;gets(s);printf("%s\n",s))
      |              ^~~~
main.c:4:22: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |         for(;gets(s);printf("%s\n",s))
      |                      ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | void main(){
main.c:4:22: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    4 |         for(;gets(s);printf("%s\n",s))
      |                      ^~~~~~
main.c:4:22: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    7 |         puts("");
      |         ^~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

void main(){
	char s[999];
	int i;
	for(;fgets(s,999,stdin);printf("%s\n",s))
		for(i=0;s[i];i++)
			s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	puts("");
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: implicit declaration of function 'fgets' [-Wimplicit-function-declaration]
    4 |         for(;fgets(s,999,stdin);printf("%s\n",s))
      |              ^~~~~
main.c:4:26: error: 'stdin' undeclared (first use in this function)
    4 |         for(;fgets(s,999,stdin);printf("%s\n",s))
      |                          ^~~~~
main.c:1:1: note: 'stdin' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
  +++ |+#include <stdio.h>
    1 | void main(){
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
    4 |         for(;fgets(s,999,stdin);printf("%s\n",s))
      |                          ^~~~~
main.c:4:33: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |         for(;fgets(s,999,stdin);printf("%s\n",s))
      |                                 ^~~~~~
main.c:4:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    7 |         puts("");
      |         ^~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C

void main(){
	int c;
	for(;(c=getchar())!=EOF;putchar(c))
		c>='a'&&c<='z'?c-=32:0;
}

Compiler output:
main.c: In function 'main':
main.c:3:17: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    3 |         for(;(c=getchar())!=EOF;putchar(c))
      |                 ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
  +++ |+#include <stdio.h>
    1 | void main(){
main.c:3:29: error: 'EOF' undeclared (first use in this function)
    3 |         for(;(c=getchar())!=EOF;putchar(c))
      |                             ^~~
main.c:3:29: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:33: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    3 |         for(;(c=getchar())!=EOF;putchar(c))
      |                                 ^~~~~~~
main.c:3:33: note: include '<stdio.h>' or provide a declaration of 'putchar'
Language: C

main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:18: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
      |                  ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
  +++ |+#include <stdio.h>
    1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
main.c:1:29: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
      |                             ^~~~~~~
main.c:1:29: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:1:59: error: expected ';' before '}' token
    1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
      |                                                           ^
      |                                                           ;
Language: C

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

int i=0,n=1;
char s[1005];

int main(){
	/*while(scanf("%s",s)!=EOF){
		//if(n!=1)printf(" ");n=0;
		for(i=0;i<strlen(s);i++){
			if(s[i]>96 && s[i]<123)s[i]=s[i]-32;
		}
		printf("%s ",s);
	}
	printf("\n");*/
	gets(s);
	for(i=0;i<strlen(s);i++){
		if(s[i]>96 && s[i]<123)s[i]=s[i]-32;
	}
	printf("%s\n",s);
	return 0;
}

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

import java.io.*;

public class Main {	
	public static void main(String[] args) throws IOException {
		BufferedReader din = new BufferedReader( new InputStreamReader(System.in));
		String str = din.readLine();
		System.out.println(str.toUpperCase());
	}
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.io.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.io.*;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C

include <stdio.h>

int main(void)
{
  char ch[81];
  int i;

  fgets(ch, 80, stdin);
  for(i = 0; ch[i] != '\0'; ++i)
    {
      if('a' <= ch[i] && ch[i] <= 'z')
	{
	  ch[i] -= 32;
	}
    }
  fputs(ch, stdout);
  return 0;
}

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

include <stdio.h>

int main(void)
{
  char ch[81];
  int i;

  fgets(ch, 80, stdin);
  for(i = 0; ch[i] != '\0'; ++i)
    {
      if('a' <= ch[i] && ch[i] <= 'z')
	{
	  ch[i] -= 32;
	}
    }
  printf("%s", ch);
  return 0;
}

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

#include <stdio.h>

int main(void)
{
  char ch[81];
  int i;

  gets(ch);
  for(i = 0; ch[i] != '\0'; ++i)
    {
      if('a' <= ch[i] && ch[i] <= 'z')
	{
	  ch[i] -= 32;
	}
    }
  puts(ch);
  return 0;
}

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