criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new ImputStreamReader(System.in));
String line="";
double weight;
while((line=br.readLine())!=null){
weight=Double.parseDouble(line);
classOfBoxing(weight);
}
}
private static void classOfBoxing(double w){
PrintWriter p=new PrintWriter(System.out);
if(w<=48){
p.println("light fly");
}
else if(w<=51){
p.println("fly");
}
else if(w<=54){
p.println("bantam");
}
else if(w<=57){
p.println("feather");
}
else if(w<=60){
p.println("light");
}
else if(w<=64){
p.println("light welter");
}
else if(w<=69){
p.println("welter");
}
else if(w<=75){
p.println("light middle");
}
else if(w<=81){
p.println("middle");
}
else if(w<=91){
p.println("light heavy");
}
else{
p.println("heavy");
}
}

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

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new ImputStreamReader(System.in));
String line="";
double weight;
while((line=br.readLine())!=null){
weight=Double.parseDouble(line);
classOfBoxing(weight);
}
}
private static void classOfBoxing(double w){
PrintWriter p=new PrintWriter(System.out);
if(w<=48){
p.println("light fly");
}
else if(w<=51){
p.println("fly");
}
else if(w<=54){
p.println("bantam");
}
else if(w<=57){
p.println("feather");
}
else if(w<=60){
p.println("light");
}
else if(w<=64){
p.println("light welter");
}
else if(w<=69){
p.println("welter");
}
else if(w<=75){
p.println("light middle");
}
else if(w<=81){
p.println("middle");
}
else if(w<=91){
p.println("light heavy");
}
else{
p.println("heavy");
}
}
}

Compiler output:
Main.java:5: error: cannot find symbol
BufferedReader br=new BufferedReader(new ImputStreamReader(System.in));
                                         ^
  symbol:   class ImputStreamReader
  location: class Main
1 error
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
float weight;
while((line=br.readLine())!=null){
weight=Float.parseFloat(line);
classOfBoxing(weight);
}
}
private static void classOfBoxing(float w){
PrintWriter p=new PrintWriter(System.out);
w=Math.ceil(w);
if(w<=48){
p.println("light fly");
}
else if(w<=51){
p.println("fly");
}
else if(w<=54){
p.println("bantam");
}
else if(w<=57){
p.println("feather");
}
else if(w<=60){
p.println("light");
}
else if(w<=64){
p.println("light welter");
}
else if(w<=69){
p.println("welter");
}
else if(w<=75){
p.println("light middle");
}
else if(w<=81){
p.println("middle");
}
else if(w<=91){
p.println("light heavy");
}
else{
p.println("heavy");
}
}
}

Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to float
w=Math.ceil(w);
           ^
1 error
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
float weight;
while((line=br.readLine())!=null){
weight=Float.parseFloat(line);
classOfBoxing(weight);
}
}
private static void classOfBoxing(float w){
PrintWriter p=new PrintWriter(System.out);
w=Math.ceil((double)w);
if(w<=48){
p.println("light fly");
}
else if(w<=51){
p.println("fly");
}
else if(w<=54){
p.println("bantam");
}
else if(w<=57){
p.println("feather");
}
else if(w<=60){
p.println("light");
}
else if(w<=64){
p.println("light welter");
}
else if(w<=69){
p.println("welter");
}
else if(w<=75){
p.println("light middle");
}
else if(w<=81){
p.println("middle");
}
else if(w<=91){
p.println("light heavy");
}
else{
p.println("heavy");
}
}
}

Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to float
w=Math.ceil((double)w);
           ^
1 error
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
d weioubleght;
while((line=br.readLine())!=null){
weight=Double.parseDouble(line);
classOfBoxing(weight);
}
}
private static void classOfBoxing(double w){
PrintWriter p=new PrintWriter(System.out);
if(w<=48.0){
p.println("light fly");
}
else if(w<=51.0){
p.println("fly");
}
else if(w<=54.0){
p.println("bantam");
}
else if(w<=57.0){
p.println("feather");
}
else if(w<=60.0){
p.println("light");
}
else if(w<=64.0){
p.println("light welter");
}
else if(w<=69.0){
p.println("welter");
}
else if(w<=75.0){
p.println("light middle");
}
else if(w<=81.0){
p.println("middle");
}
else if(w<=91.0){
p.println("light heavy");
}
else{
p.println("heavy");
}
}
}

Compiler output:
Main.java:7: error: cannot find symbol
d weioubleght;
^
  symbol:   class d
  location: class Main
Main.java:9: error: cannot find symbol
weight=Double.parseDouble(line);
^
  symbol:   variable weight
  location: class Main
Main.java:10: error: cannot find symbol
classOfBoxing(weight);
              ^
  symbol:   variable weight
  location: class Main
3 errors
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
doubl weight;
while((line=br.readLine())!=null){
weight=Double.parseDouble(line);
classOfBoxing(weight);
}
}
private static void classOfBoxing(double w){
PrintWriter p=new PrintWriter(System.out);
if(w<=48.0){
p.println("light fly");
}
else if(w<=51.0){
p.println("fly");
}
else if(w<=54.0){
p.println("bantam");
}
else if(w<=57.0){
p.println("feather");
}
else if(w<=60.0){
p.println("light");
}
else if(w<=64.0){
p.println("light welter");
}
else if(w<=69.0){
p.println("welter");
}
else if(w<=75.0){
p.println("light middle");
}
else if(w<=81.0){
p.println("middle");
}
else if(w<=91.0){
p.println("light heavy");
}
else{
p.println("heavy");
}
}
}

Compiler output:
Main.java:7: error: cannot find symbol
doubl weight;
^
  symbol:   class doubl
  location: class Main
1 error
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
double weight;
while((line=br.readLine())!=null){
weight=Double.parseDouble(line);
classOfBoxing(weight);
}
}
private static void classOfBoxing(double n){
PrintWriter p=new PrintWriter(System.out);
if(n<=48.00){
p.println("light fly");
}
else if(n>48.00 &&n<=51.00){
p.println("fly");
}
else if(n>51.00 &&n<=54.00){
p.println("bantam");
}
else if(n>54.00 &&n<=57.00){
p.println("feather");
}
else if((n>57.00 &&n<=60.00){
p.println("light");
}
else if(n>60.00 &&n<=64.00){
p.println("light welter");
}
else if(n>64.00 &&n<=69.00){
p.println("welter");
}
else if(n>69.00 &&n<=75.00){
p.println("light middle");
}
else if(n>75.00 &&n<=81.00){
p.println("middle");
}
else if(n>81.00 &&n<=91.00){
p.println("light heavy");
}
else{
p.println("heavy");
}
}
}

Compiler output:
Main.java:27: error: ')' expected
else if((n>57.00 &&n<=60.00){
                            ^
1 error
Language: Java

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
double weight;
while((line=br.readLine())!=null){
weight=Double.parseDouble(line);
classOfBoxing(weight);
}
}
private static void classOfBoxing(double n){
if(n<=48.00){
System.out.println("light fly");
}
else if(n>48.00 &&n<=51.00){
System.out.println("fly");
}
else if(n>51.00 &&n<=54.00){
System.out.println("bantam");
}
else if(n>54.00 &&n<=57.00){
p.println("feather");
}
else if(n>57.00 &&n<=60.00){
System.out.println("light");
}
else if(n>60.00 &&n<=64.00){
System.out.println("light welter");
}
else if(n>64.00 &&n<=69.00){
System.out.println("welter");
}
else if(n>69.00 &&n<=75.00){
System.out.println("light middle");
}
else if(n>75.00 &&n<=81.00){
System.out.println("middle");
}
else if(n>81.00 &&n<=91.00){
System.out.println("light heavy");
}
else{
System.out.println("heavy");
}
}
}

Compiler output:
Main.java:24: error: cannot find symbol
p.println("feather");
^
  symbol:   variable p
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public enum Main{
	LF("light fly"), FL("fly"), BT("bantam"), FE("feather"), LG("light"), LW("light welter"),
	WT("welter"), LM("light middle"), MI("middle"), LH("light heavy"), HV("heavy"); 
	
	private String s;
	private BoxingClass(String str) { this.s = str;}
	public String toString() { return this.s;}
	
	private static BoxingClass classify(double weight) {
		if(weight <= 48) return LF;
		else if(weight <= 51) return FL;
		else if(weight <= 54) return BT;
		else if(weight <= 57) return FE;
		else if(weight <= 60) return LG;
		else if(weight <= 64) return LW;
		else if(weight <= 69) return WT;
		else if(weight <= 75) return LM;
		else if(weight <= 81) return MI;
		else if(weight <= 91) return LH;
		else return HV;
	}
	
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextDouble()) System.out.println(classify(sc.nextDouble()));
		sc.close();
	}
}

Compiler output:
Main.java:8: error: invalid method declaration; return type required
	private BoxingClass(String str) { this.s = str;}
	        ^
1 error
Language: Java

import java.util.*;public class Main {Scanner sc = new Scanner(System.in);void p(String s){System.out.println(s);}void run(){for(;sc.hasNextDouble();){double d =sc.nextDouble();if(d<=48)p("light fly");else if(d<=51)p("fly");else if(d<=54)p("bantam");else if(d<=57)p("feather");else if(d<=60)p("light");else if(d<=51){p("fly");else if(d<=64)p("light welter");else if(d<=69)p("welter");else if(d<=75)p("light middle");else if(d<=81)p("middle");else if(d<=91)p("light heavy");else{p("heavy");}}public static void main(String[] a){Main m=new Main();m.run();}}

Compiler output:
Main.java:1: error: 'else' without 'if'
import java.util.*;public class Main {Scanner sc = new Scanner(System.in);void p(String s){System.out.println(s);}void run(){for(;sc.hasNextDouble();){double d =sc.nextDouble();if(d<=48)p("light fly");else if(d<=51)p("fly");else if(d<=54)p("bantam");else if(d<=57)p("feather");else if(d<=60)p("light");else if(d<=51){p("fly");else if(d<=64)p("light welter");else if(d<=69)p("welter");else if(d<=75)p("light middle");else if(d<=81)p("middle");else if(d<=91)p("light heavy");else{p("heavy");}}public static void main(String[] a){Main m=new Main();m.run();}}
                                                                                                                                                                                                                                                                                                                                      ^
Main.java:1: error: illegal start of expression
import java.util.*;public class Main {Scanner sc = new Scanner(System.in);void p(String s){System.out.println(s);}void run(){for(;sc.hasNextDouble();){double d =sc.nextDouble();if(d<=48)p("light fly");else if(d<=51)p("fly");else if(d<=54)p("bantam");else if(d<=57)p("feather");else if(d<=60)p("light");else if(d<=51){p("fly");else if(d<=64)p("light welter");else if(d<=69)p("welter");else if(d<=75)p("light middle");else if(d<=81)p("middle");else if(d<=91)p("light heavy");else{p("heavy");}}public static void main(String[] a){Main m=new Main();m.run();}}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
2 errors
Language: Java

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

public class Main {
	public static void main(String[] args) throws IOException {
		String str;
		Double wgt;
		Scanner in = new Scanner(System.in);
//		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		while ( in.hasNext() ) {
			wgt = in.nextDouble();
			System.out.println(rank(wgt));
		}
	}
	
	public static String rank( double weight ) {
		String[] date = {"light fly" , "fly" , "bantam", "heather" , "light" ,
						"light welter" , "welter" , "light middle" , "middle" ,
						"light heavy" , "heavy"};
		int index;
		if ( weight <= 48.00 ) index = 0; 
		else if ( weight > 48.00 && weight <= 51.00 ) index = 1; 
		else if ( weight > 51.00 && weight <= 54.00 ) index = 2; 
		else if ( weight > 54.00 && weight <= 57.00 ) index = 3; 
		else if ( weight > 57.00 && weight <= 60.00 ) index = 4; 
		else if ( weight > 60.00 && weight <= 64.00 ) index = 5; 
		else if ( weight > 64.00 && weight <= 69.00 ) index = 6; 
		else if ( weight > 69.00 && weight <= 75.00 ) index = 7;
		else if ( weight > 75.00 && weight <= 81.00 ) index = 8; 
		else if ( weight > 81.00 && weight <= 91.00 ) index = 9;
		else if ( weight > 91.00 ) index = 10;
		return date[index];
	}
}

Compiler output:
Main.java:32: error: variable index might not have been initialized
		return date[index];
		            ^
1 error
Language: Java

import java.io.*;

public class Main{
    public static void main(String[] args){
	BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
	String s;
	double n;
	try{
	    while((s=reader.readLine()) !=null){
		n=Double.parseDouble(s);
		if(n<=48.00){
		    System.out.println("lightfly");
		}
		if(n>48.00 && n<=51.00){
		    System.out.println("fly");
		}
		if(n>51.00 &&n<=54.00){
		    System.out.println("bantam");
		}
		if(n>54.00 && n<=57.00){System.out.println("feather");}
		if(n>57.00 &&n<=60.00){System.out.println("light");}
		if(n>60.00 &&n<=64.00){System.out.println("light welter");}
		if(n>64.00 &&n<=69.00){System.out.println("welter");}
		if(n>69.00 &&n<=75.00){System.out.println("light middle");}
		if(n>75.00 &&n<=81.00){System.out.println("middle");}
		if(n>81.00 &&N<=91.00){System.out.println("light heavy");
		}else{System.out.println("heavy");}
	    }
	}catch(IOException e){
	    System.out.println(e);
	}
    }
}

Compiler output:
Main.java:26: error: cannot find symbol
		if(n>81.00 &&N<=91.00){System.out.println("light heavy");
		             ^
  symbol:   variable N
  location: class Main
1 error
Language: Java

import java.io.*;

public class Main{
    public static void main(String[] args){
	BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
	String s;
	double n;
	try{
	    while((s=reader.readLine()) !=null){
		n=Double.parseDouble(s);
		if(n<=48.00){
		    System.out.println("lightfly");
		}
		if(n>48.00 && n<=51.00){
		    System.out.println("fly");
		}
		if(n>51.00 &&n<=54.00){
		    System.out.println("bantam");
		}
		if(n>54.00 && n<=57.00){System.out.println("feather");}
		if(n>57.00 &&n<=60.00){System.out.println("light");}
		if(n>60.00 &&n<=64.00){System.out.println("light welter");}
		if(n>64.00 &&n<=69.00){System.out.println("welter");}
		if(n>69.00 &&n<=75.00){System.out.println("light middle");}
		if(n>75.00 &&n<=81.00){System.out.println("middle");}
		if(n>81.00 &&N<=91.00){System.out.println("light heavy");
		}else{System.out.println("heavy");}
	    }
	}catch(IOException e){
	    System.out.println(e);
	}
   }
}

Compiler output:
Main.java:26: error: cannot find symbol
		if(n>81.00 &&N<=91.00){System.out.println("light heavy");
		             ^
  symbol:   variable N
  location: class Main
1 error
Language: C

#include<stdio.h>
    
int main(){
    
double a;
  
while(1){
  scanf("%lfn", &a);
 
  if(a<=48.00){printf("light fly\n");}
  else ifif(a>48.00 && a<=51.00){printf("fly\n");}
  else ifif(a>51.00 && a<=54.00){printf("bantam\n");}
  else ifif(a>54.00 && a<=57.00){printf("feather\n");}
  else ifif(a>57.00 && a<=60.00){printf("light\n");}
  else ifif(a>60.00 && a<=64.00){printf("light welter\n");}
  else ifif(a>64.00 && a<=69.00){printf("welter\n");}
  else ifif(a>69.00 && a<=75.00){printf("light middle\n");}
  else ifif(a>75.00 && a<=81.00){printf("middle\n");}
  else ifif(a>81.00 && a<=91.00){printf("light heavy\n");}
  else ifif(a>91.00){printf("heavy\n");}
  
}
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: implicit declaration of function 'ifif' [-Wimplicit-function-declaration]
   11 |   else ifif(a>48.00 && a<=51.00){printf("fly\n");}
      |        ^~~~
main.c:11:33: error: expected ';' before '{' token
   11 |   else ifif(a>48.00 && a<=51.00){printf("fly\n");}
      |                                 ^
      |                                 ;
Language: C

#include <stdio.h>
 
int main(void)
{
    double w;
     
    while (scanf("%lf", &w) != EOF){
         
        if (w > 91.00){
            printf("heavy\n");
        }
        else if (w > 81.00){
            printf("light heavy\n");
        }
        else if (w > 75.00){
            printf("middle\n");
        }
        else if (w > 69.00){
            printf("light middle\n");
        }
        else if (w > 64.00){
            printf("welter\n");
        }
        else if (w > 60.00){
            printf("light welter\n");
        }
        else if (w > 57.00){
            printf("light\n");
        }
        else if (w > 54.00){
            printf("feather\n");
        }
        else if (w > 51.00){
            printf("bantam\n");
        }
        else if (w > 48.00){
            printf("fly\n");
        }
        else {
            printf("light fly\n");
        }
    }
    return (0);

Compiler output:
main.c: In function 'main':
main.c:43:5: error: expected declaration or statement at end of input
   43 |     return (0);
      |     ^~~~~~
Language: C

include <stdio.h>

int main(void){
    double num;
    for(;scanf("%lf",&num);){
        if(num <= 48.00)
            printf("light fly\n");
        else if(num <= 51.00)
            printf("fly\n");
        else if(num <= 54.00)
            printf("bantam\n");
        else if(num <= 57.00)
            printf("feather\n");
        else if(num <= 60.00)
            printf("light\n");
        else if(num <= 64.00)
            printf("light welter\n");
        else if(num <= 69.00)
            printf("welter\n");
        else if(num <= 75.00)
            printf("light middle\n");
        else if(num <= 81.00)
            printf("middle\n");
        else if(num <= 91.00)
            printf("light heavy\n");
        else
            printf("heavy\n");
    }
    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)
{
	double kg;

	while(scanf("%lf",&kg)!=EOF){
		if(kg<=48.00){
		kai[nin]="light fly";
		}else if(kg<=51.00){printf("fly");
		}else if(kg<=54.00){printf("bantam");
		}else if(kg<=57.00){printf("feather");
		}else if(kg<=60.00){printf("light");
		}else if(kg<=64.00){printf("light welter");
		}else if(kg<=69.00){printf("welter");
		}else if(kg<=75.00){printf("light middle");
		}else if(kg<=81.00){printf("middle");
		}else if(kg<=91.00){printf("light heavy");
		}else if(kg>91.000){printf("heavy");
		}

	}
	return 0;
}

/*
kg?¶?&&kg??\???

light fly	48.00kg ??\???
fly	48.00kg ?¶? 51.00kg ??\???
bantam	51.00kg ?¶? 54.00kg ??\???
feather	54.00kg ?¶? 57.00kg ??\???
light	57.00kg ?¶? 60.00kg ??\???
light welter	60.00kg ?¶? 64.00kg ??\???
welter	64.00kg ?¶? 69.00 kg ??\???
light middle	69.00kg ?¶? 75.00 kg ??\???
middle	75.00kg ?¶? 81.00 kg ??\???
light heavy	81.00kg ?¶? 91.00 kg ??\???
heavy	91.00kg ?¶?
*/

Compiler output:
main.c: In function 'main':
main.c:9:17: error: 'kai' undeclared (first use in this function)
    9 |                 kai[nin]="light fly";
      |                 ^~~
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:21: error: 'nin' undeclared (first use in this function)
    9 |                 kai[nin]="light fly";
      |                     ^~~
Language: C

#include <stdio.h>

int main(void)
{
	double kg;

	while(scanf("%lf",&kg)!=EOF){
		if(kg<=48.00){
		kai[nin]="light fly";
		}else if(kg<=51.00){printf("fly");
		}else if(kg<=54.00){printf("bantam");
		}else if(kg<=57.00){printf("feather");
		}else if(kg<=60.00){printf("light");
		}else if(kg<=64.00){printf("light welter");
		}else if(kg<=69.00){printf("welter");
		}else if(kg<=75.00){printf("light middle");
		}else if(kg<=81.00){printf("middle");
		}else if(kg<=91.00){printf("light heavy");
		}else if(kg>91.000){printf("heavy");
		}

	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: 'kai' undeclared (first use in this function)
    9 |                 kai[nin]="light fly";
      |                 ^~~
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:21: error: 'nin' undeclared (first use in this function)
    9 |                 kai[nin]="light fly";
      |                     ^~~
Language: C

#include <stdio.h>

int main(void)
{
	double kg;
	while(scanf("%lf",&kg)!=EOF){
		if(kg<=48.00){
		kai[nin]="light fly";
		}else if(kg<=51.00){printf("fly");
		}else if(kg<=54.00){printf("bantam");
		}else if(kg<=57.00){printf("feather");
		}else if(kg<=60.00){printf("light");
		}else if(kg<=64.00){printf("light welter");
		}else if(kg<=69.00){printf("welter");
		}else if(kg<=75.00){printf("light middle");
		}else if(kg<=81.00){printf("middle");
		}else if(kg<=91.00){printf("light heavy");
		}else if(kg>91.000){printf("heavy");
		}
	printf("\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: 'kai' undeclared (first use in this function)
    8 |                 kai[nin]="light fly";
      |                 ^~~
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:21: error: 'nin' undeclared (first use in this function)
    8 |                 kai[nin]="light fly";
      |                     ^~~
Language: C

#include <stdio.h>
main(){
  double a;
  while(scanf("%d",&a) !=EOF){
    if(a<=48) printf("light fly");
    else if(a>48&&a<=51) printf("fly");
    else if(a>51&&a<=54) printf("bantam");
    else if(a>54&&a<=57) printf("frather");
    else if(a>57&&a<=60) printf("light");
    else if(a>60&&a<=64) printf("light welter");
    else if(a>64&&a<=69) printf("welter");
    else if(a>69&&a<=75) printf("light middle");
    else if(a>75&&a<=81) printf("middle");
    else if(a>81&&a<=91) printf("light heavy");
    else if(a>91) printf("heavy");
 
  return 0; 
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

main(){
  int t[99];
  int r[99];
  int sum=0;
  int i=0;
  double n=0;

  while(scanf("%d,%d",&t[i],&r[i])!=EOF){
    sum=sum+t[i]*r[i];
    n=n+r[i++];
  }
  printf("%d\n%.0f\n",sum,round(n/i));
  exit(0);
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){
main.c:8:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |         ^~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:37: error: 'EOF' undeclared (first use in this function)
    8 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |                                     ^~~
main.c:8:37: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:8:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |   printf("%d\n%.0f\n",sum,round(n/i));
      |   ^~~~~~
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:27: error: implicit declaration of function 'round' [-Wimplicit-function-declaration]
   12 |   printf("%d\n%.0f\n",sum,round(n/i));
      |                           ^~~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'round'
  +++ |+#include <math.h>
    1 | main(){
main.c:12:27: warning: incompatible implicit declaration of built-in function 'round' [-Wbuiltin-declaration-mismatch]
   12 |   printf("%d\n%.0f\n",sum,round(n/i));
      |                           ^~~~~
main.c:12:27: note: include '<math.h>' or provide a declaration of 'round'
main.c:13:3: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   13 |   exit(0);
      |   ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | main(){
main.c:13:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   13 |   exit(0);
      |   ^~~~
main.c:13:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

main(){
  int t[99];
  int r[99];
  int sum=0;
  int i=0;
  double n=0;

  while(scanf("%d,%d",&t[i],&r[i])!=EOF){
    sum=sum+t[i]*r[i];
    n=n+r[i++];
  }
  printf("%d\n%.0f\n",sum,round(n/i));
  return 0;
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){
main.c:8:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |         ^~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:37: error: 'EOF' undeclared (first use in this function)
    8 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |                                     ^~~
main.c:8:37: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:8:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |   printf("%d\n%.0f\n",sum,round(n/i));
      |   ^~~~~~
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:27: error: implicit declaration of function 'round' [-Wimplicit-function-declaration]
   12 |   printf("%d\n%.0f\n",sum,round(n/i));
      |                           ^~~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'round'
  +++ |+#include <math.h>
    1 | main(){
main.c:12:27: warning: incompatible implicit declaration of built-in function 'round' [-Wbuiltin-declaration-mismatch]
   12 |   printf("%d\n%.0f\n",sum,round(n/i));
      |                           ^~~~~
main.c:12:27: note: include '<math.h>' or provide a declaration of 'round'
Language: C

#include<math.h>
main(){
  int t[99];
  int r[99];
  int sum=0;
  int i=0;
  double n=0;

  while(scanf("%d,%d",&t[i],&r[i])!=EOF){
    sum=sum+t[i]*r[i];
    n=n+r[i++];
  }
  printf("%d\n%.0f\n",sum,round(n/i));
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |         ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include<math.h>
  +++ |+#include <stdio.h>
    2 | main(){
main.c:9:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |         ^~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:37: error: 'EOF' undeclared (first use in this function)
    9 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |                                     ^~~
main.c:9:37: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:9:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |   printf("%d\n%.0f\n",sum,round(n/i));
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<math.h>
int main(){
  int t[99];
  int r[99];
  int sum=0;
  int i=0;
  double n=0;

  while(scanf("%d,%d",&t[i],&r[i])!=EOF){
    sum=sum+t[i]*r[i];
    n=n+r[i++];
  }
  printf("%d\n%.0f\n",sum,round(n/i));
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |         ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include<math.h>
  +++ |+#include <stdio.h>
    2 | int main(){
main.c:9:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |         ^~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:37: error: 'EOF' undeclared (first use in this function)
    9 |   while(scanf("%d,%d",&t[i],&r[i])!=EOF){
      |                                     ^~~
main.c:9:37: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:9:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |   printf("%d\n%.0f\n",sum,round(n/i));
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
int main(){
double n;
while(scanf("%d",&n)!=EOF){
if(n<=48){
printf("light fly\n");
}else if(n<=51){
printf("fly\n");
}else if(n<=54){
printf("bantam\n");
}else if(n<=57){
printf("feather\n");
}else if(n<=60){
printf("light\n");
}else if(n<=64){
printf("light welter\n");
}else if(n<=69){
printf("welter\n");
}else if(n<=75){
printf("light middle\n");
}else if(n<=81){
printf("middle\n");
}else if(n<=91){
printf("light heavy\n")
}else{
printf("heavy\n");
}}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:24: error: expected ';' before '}' token
   24 | printf("light heavy\n")
      |                        ^
      |                        ;
   25 | }else{
      | ~
Language: C

#include<stdio.h>

char cls[11][14]=
{{"light fly"},
{"fly"},
{"bantam"},
{"feather"},
{"light"},
{"light welter"},
{"welter"},
{"light middle"},
{"middle"},
{"light heavy"},
{"heavy"}};

int dif[10]={30,30,30,30,40,50,60,60,100,1};

int main()
{
	int t,x,i;
	double w;
	while(scanf("%lf",&w)!=EOF)
	{
		t=480,x=w*10;
		for(i=0;i<10&&x>t;i++)
		{
			t+=dif[i];
		}
		printf("%s\n",cls[i]);
	}
　　　　 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:1: error: stray '\343' in program
   31 | <U+3000><U+3000><U+3000><U+3000> return 0;
      | ^~~~~~~~
main.c:31:3: error: stray '\343' in program
   31 | <U+3000><U+3000><U+3000><U+3000> return 0;
      |         ^~~~~~~~
main.c:31:5: error: stray '\343' in program
   31 | <U+3000><U+3000><U+3000><U+3000> return 0;
      |                 ^~~~~~~~
main.c:31:7: error: stray '\343' in program
   31 | <U+3000><U+3000><U+3000><U+3000> return 0;
      |                         ^~~~~~~~
Language: C

#include<stdio.h>

int main(){
	float kg;
	while(scanf("%f", &kg) != EOF){
		if(kg <= 48.00){
			printf("light fly\n");
		}else if(kg <= 51.00){
			printf("fly\n");
		}else if(kg <= 54.00){
			printf("bantam\n");
		}else if(kg <= 57.00){
			printf("feather\n");
		}else if(kg <= 60.00){
			printf("light\n");
		}else if(kg <= 64.00){
			printf("light welter\n");
		}else if(kg <= 69.00){
			printf("welter\n");
		}else if(kg <= 75.00){
			printf("light middle\n");
		}else if(kg <= 81.00){
			printf("middle\n");
		}else(kg <= 91.00){
			printf("light heavy\n");
		}else{
			printf("heavy\n");
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:35: error: expected ';' before '{' token
   24 |                 }else(kg <= 91.00){
      |                                   ^
      |                                   ;
Language: C

#include<stdio.h>

int main(){
	double kg;
	while(scanf("%f", &kg) != EOF){
		if(kg <= 48.00){
			printf("light fly\n");
		}else if(kg <= 51.00){
			printf("fly\n");
		}else if(kg <= 54.00){
			printf("bantam\n");
		}else if(kg <= 57.00){
			printf("feather\n");
		}else if(kg <= 60.00){
			printf("light\n");
		}else if(kg <= 64.00){
			printf("light welter\n");
		}else if(kg <= 69.00){
			printf("welter\n");
		}else if(kg <= 75.00){
			printf("light middle\n");
		}else if(kg <= 81.00){
			printf("middle\n");
		}else(kg <= 91.00){
			printf("light heavy\n");
		}else{
			printf("heavy\n");
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:35: error: expected ';' before '{' token
   24 |                 }else(kg <= 91.00){
      |                                   ^
      |                                   ;
Language: C

#include<stdio.h>

int main(){
	double kg;
	while(scanf("%f", &kg) != EOF){
		if(kg <= 48.00){
			printf("light fly\n");
		}
		if(48.00 < kg <= 51.00){
			printf("fly\n");
		}
		if(51 < kg <= 54.00){
			printf("bantam\n");
		if(54 < kg <= 57.00){
			printf("feather\n");
		}
		if(57 < kg <= 60.00){
			printf("light\n");
		}
		if(60 < kg <= 64.00){
			printf("light welter\n");
		}
		if(64 < kg <= 69.00){
			printf("welter\n");
		}
		if(69 < kg <= 75.00){
			printf("light middle\n");
		}
		if(75 <kg <= 81.00){
			printf("middle\n");
		}
		if(81 < kg <= 91.00){
			printf("light heavy\n");
		}
		if(91 < kg){
			printf("heavy\n");
		}
	}

	return 0;
}

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

#include <stdio.h>

void judge(double);

int main(void){
  double weight;

  while( scanf("%lf" ,&weight) != EOF ) judge(wight);
  
  return 0;
}

void judge(double weight){

  if( wight <= 48 ) printf("light fly\n");
  else if( 48 < weight && weight <= 51 ) printf("fly\n");
  else if( 51 < weight && weight <= 54 ) printf("bantam\n");
  else if( 54 < weight && weight <= 57 ) printf("feather\n");
  else if( 57 < weight && weight <= 60 ) printf("light\n");
  else if( 60 < weight && weight <= 64 ) printf("light welter\n");
  else if( 64 < weight && weight <= 69 ) printf("welter\n");
  else if( 69 < weight && weight <= 75 ) printf("light middle\n");
  else if( 75 < weight && weight <= 81 ) printf("middle\n");
  else if( 81 < weight && weight <= 91 ) printf("light heavy\n");
  else printf("heavy\n");

}

Compiler output:
main.c: In function 'main':
main.c:8:47: error: 'wight' undeclared (first use in this function); did you mean 'weight'?
    8 |   while( scanf("%lf" ,&weight) != EOF ) judge(wight);
      |                                               ^~~~~
      |                                               weight
main.c:8:47: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'judge':
main.c:15:7: error: 'wight' undeclared (first use in this function); did you mean 'weight'?
   15 |   if( wight <= 48 ) printf("light fly\n");
      |       ^~~~~
      |       weight
Language: C

#include<stdio.h>
int main(void)
{
	float tai;
	scanf("%d",&tai);
	
	else if(tai<=48.00){
		printf("light fly");
	}
	else if(48.00<=tai && tai<=51.00){
		printf("fly");
	}
	else if(51.00<=tai && tai<=54.00){
		printf("bantam");
	}
	else if(54.00<=tai && tai<=57.00){
		printf("feather");
	}
	else if(57.00<=tai && tai<=60.00){
		printf("light");
	}
	else if(60.00<=tai && tai<=64.00){
		printf("light welter");
	}
	else if(64.00<=tai && tai<=69.00){
		printf("wllter");
	}
	else if(69.00<=tai && tai<=75.00){
		printf("light middle");
	}
	else if(75.00<=tai && tai<=81.00){
		printf("middle");
	}
	else if(81.00<=tai && tai<=91.00){
		printf("light heavy");
	}
	else{
		printf("heavy");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'else' without a previous 'if'
    7 |         else if(tai<=48.00){
      |         ^~~~
Language: C++

import java.util.Scanner;

public class AOJ0048 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			double x = sc.nextDouble();
			System.out.println(x<=48.00?"light fly":x<=51.00?"fly":x<=54.00?"bantam":x<=57.00?"feather":
                                           x<=60.00?"light":x<=64.00?"light welter":x<=69.00?"welter":
                                           x<=75.00?"light middle":x<=81.00?"middle":x<=91.00?"light heavy":x>=91.00?"heavy");
		}
	}
}

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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			double x = sc.nextDouble();
			System.out.println(x<=48.00?"light fly":x<=51.00?"fly":x<=54.00?"bantam":x<=57.00?"feather":
                                           x<=60.00?"light":x<=64.00?"light welter":x<=69.00?"welter":
                                           x<=75.00?"light middle":x<=81.00?"middle":x<=91.00?"light heavy":x>=91.00?"heavy");
		}
	}
}

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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			double x = sc.nextDouble();
			System.out.println(x<=48.00?"light fly":x<=51.00?"fly":x<=54.00?"bantam":x<=57.00?"feather":
                                           x<=60.00?"light":x<=64.00?"light welter":x<=69.00?"welter":
                                           x<=75.00?"light middle":x<=81.00?"middle":x<=91.00?"light heavy":"heavy");
		}
	}
}

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

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

int ft(double N)
{int f;
if(N<=48.00)f=11;
else if(N<=51.00)f=1;
else if(N<=54.00)f=2;
else if(N<=57.00)f=3;
else if(N<=60.00)f=4;
else if(N<=64.00)f=5;
else if(N<=69.00)f=6;
else if(N<=75.00)f=7;
else if(N<=81.00)f=8;
else if(N<=91.00)f=9;

return f;
}

int main()
{
int f=0;
int x;
double N;
while(scanf("%lf",&N)!=EOF)
{
f=ft(N);
switch(f){
case 11:
cout<<light fly<<endl;break; 

case 1:
cout<<bantam<<endl;break; 

case 2:
cout<<feather<<endl;break; 

case 3:
cout<<light<<endl;break; 

case 4:
cout<<light welter<<endl;break; 

case 5:
cout<<welter<<endl;break; 

case 6:
cout<<light middle<<endl;break; 

case 7:
cout<<middle<<endl;break; 

case 8:
cout<<light heavy<<endl;break; 

case 9:
cout<<heavy<<endl;break; 

}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   30 | cout<<light fly<<endl;break;
      | ^~~~
      | std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:30:7: error: 'light' was not declared in this scope
   30 | cout<<light fly<<endl;break;
      |       ^~~~~
a.cc:33:7: error: 'bantam' was not declared in this scope
   33 | cout<<bantam<<endl;break;
      |       ^~~~~~
a.cc:33:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   33 | cout<<bantam<<endl;break;
      |               ^~~~
      |               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:36:7: error: 'feather' was not declared in this scope
   36 | cout<<feather<<endl;break;
      |       ^~~~~~~
a.cc:45:7: error: 'welter' was not declared in this scope
   45 | cout<<welter<<endl;break;
      |       ^~~~~~
a.cc:51:7: error: 'middle' was not declared in this scope
   51 | cout<<middle<<endl;break;
      |       ^~~~~~
a.cc:57:7: error: 'heavy' was not declared in this scope
   57 | cout<<heavy<<endl;break;
      |       ^~~~~
Language: C++

while gets
  puts case $_.to_f
  when 0...48
    "light fly"
  when 48...51
    "fly"
  when 51...54
    "bantam"
  when 54...57
    "feather"
  when 57...60
    "light"
  when 60...64
    "light welter"
  when 64...69
    "welter"
  when 69...75
    "light middle"
  when 75...81
    "middle"
  when 81...91
    "light heavy"
  else
    "heavy"
  end
end

Compiler output:
a.cc:3:8: error: too many decimal points in number
    3 |   when 0...48
      |        ^~~~~~
a.cc:5:8: error: too many decimal points in number
    5 |   when 48...51
      |        ^~~~~~~
a.cc:7:8: error: too many decimal points in number
    7 |   when 51...54
      |        ^~~~~~~
a.cc:9:8: error: too many decimal points in number
    9 |   when 54...57
      |        ^~~~~~~
a.cc:11:8: error: too many decimal points in number
   11 |   when 57...60
      |        ^~~~~~~
a.cc:13:8: error: too many decimal points in number
   13 |   when 60...64
      |        ^~~~~~~
a.cc:15:8: error: too many decimal points in number
   15 |   when 64...69
      |        ^~~~~~~
a.cc:17:8: error: too many decimal points in number
   17 |   when 69...75
      |        ^~~~~~~
a.cc:19:8: error: too many decimal points in number
   19 |   when 75...81
      |        ^~~~~~~
a.cc:21:8: error: too many decimal points in number
   21 |   when 81...91
      |        ^~~~~~~
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while gets
      | ^~~~~
Language: C++

while gets
  puts case $_.to_f.ceil
  when 0..48
    "light fly"
  when 48..51
    "fly"
  when 51..54
    "bantam"
  when 54..57
    "feather"
  when 57..60
    "light"
  when 60..64
    "light welter"
  when 64..69
    "welter"
  when 69..75
    "light middle"
  when 75..81
    "middle"
  when 81..91
    "light heavy"
  else
    "heavy"
  end
end

Compiler output:
a.cc:3:8: error: too many decimal points in number
    3 |   when 0..48
      |        ^~~~~
a.cc:5:8: error: too many decimal points in number
    5 |   when 48..51
      |        ^~~~~~
a.cc:7:8: error: too many decimal points in number
    7 |   when 51..54
      |        ^~~~~~
a.cc:9:8: error: too many decimal points in number
    9 |   when 54..57
      |        ^~~~~~
a.cc:11:8: error: too many decimal points in number
   11 |   when 57..60
      |        ^~~~~~
a.cc:13:8: error: too many decimal points in number
   13 |   when 60..64
      |        ^~~~~~
a.cc:15:8: error: too many decimal points in number
   15 |   when 64..69
      |        ^~~~~~
a.cc:17:8: error: too many decimal points in number
   17 |   when 69..75
      |        ^~~~~~
a.cc:19:8: error: too many decimal points in number
   19 |   when 75..81
      |        ^~~~~~
a.cc:21:8: error: too many decimal points in number
   21 |   when 81..91
      |        ^~~~~~
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while gets
      | ^~~~~
Language: C++

#include <cstdio>

int main()
{
	float n;
	int m;
	const char *rank[] = {"light fly", "fly", "bantam", "feather", "light",
 "light welter","welter", "light middle", "middle", "light heavy", "heavy"};
	
        while(~scanf("%f\n", &n)){
		if(n <= 48.0) m = 0;
		else if(n <= 51.0) m = 1;
		else if(n <= 54.0) m = 2;
		else if(n <= 57.0) m = 3;
		else if(n <= 60.0) m = 4;
		else if(n <= 64.0) m = 5;
		else if(n <= 69.0) m = 6;
		else if(n <= 75.0) m = 7;
		else if(n <= 81.0) m = 8;
		else if(n <= 91.0) m = 9;
		else m = 10;
		puts(rank[m]);
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected '}' at end of input
   24 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <cstdio>

int main()
{
	float n;
	int m;
	const char *rank[] = {"light fly", "fly", "bantam", "feather", "light", "light welter",
		"welter", "light middle", "middle", "light heavy", "heavy"};
	while(~scanf("%f\n", &n)){
		if(n <= 48.0) m = 0;
		else if(n <= 51.0) 
                m = 1;
		else if(n <= 54.0) m = 2;
		else if(n <= 57.0) m = 3;
		else if(n <= 60.0) m = 4;
		else if(n <= 64.0) m = 5;
		else if(n <= 69.0) m = 6;
		else if(n <= 75.0) m = 7;
		else if(n <= 81.0) m = 8;
		else if(n <= 91.0) m = 9;
		else m = 10;
		puts(rank[m]);
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected '}' at end of input
   24 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <cstdio>

int main()
{
	float n;
	int m;
	const char *rank[] = {"light fly", "fly", "bantam", "feather", "light", "light welter",
		"welter", "light middle", "middle", "light heavy", "heavy"};
	while(~scanf("%f\n", &n)){
		if(n <= 48.0) m = 0;
		else if(n <= 51.0) m = 1;
		else if(n <= 54.0) m = 2;
		else if(n <= 57.0) m = 3;
		else if(n <= 60.0) m = 4;
		else if(n <= 64.0) m = 5;
		else if(n <= 69.0) m = 6;
		else if(n <= 75.0) m = 7;
		else if(n <= 81.0) m = 8;
		else if(n <= 91.0) m = 9;
		else m = 10;
		puts(rank[m]);
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: expected '}' at end of input
   23 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

404 Not Found
#include <cstdio>

int main()
{
	float n;
	int m;
	const char *rank[] = {"light fly", "fly", "bantam", "feather", "light", 
        "light welter",	"welter", "light middle", "middle", "light heavy", "heavy"};
	
        while(~scanf("%f\n", &n)){
		if(n <= 48.0)
                  m = 0;
		else if(n <= 51.0) 
                  m = 1;
		else if(n <= 54.0) 
                  m = 2;
		else if(n <= 57.0) 
                  m = 3;
		else if(n <= 60.0) 
                  m = 4;
		else if(n <= 64.0) 
                  m = 5;
		else if(n <= 69.0) 
                  m = 6;
		else if(n <= 75.0) 
                  m = 7;
		else if(n <= 81.0) 
                  m = 8;
		else if(n <= 91.0) 
                  m = 9;
		else m = 10;
		puts(rank[m]);
	}
	return 0;
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 404 Not Found
      | ^~~