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

public class Main {
	Scanner sc = new Scanner(System.in);
	int t;
	int n;
	int tanka;
	int kingaku;
	
	public void kei(){
		t = sc.nextInt();
		n = sc.nextInt();
		switch(t){
		case 1:tanka = 6000;
		       kingaku = tanka * n;
		       break;
		case 2:tanka = 4000;
		       kingaku = tanka * n;
		       break;
		case 3:tanka = 3000;
		       kingaku = tanka * n;
		       break;
		case 4:tanka = 2000;
		       kingaku = tanka * n;
		       break;
		}
	}
	
	public void hyouji(){
		System.out.println(kingaku);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Main go = new Main();
		go.kei();
		go.hyouji();
	}

}

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

import java.util.Scanner;

public class Main2 {
	Scanner sc = new Scanner(System.in);
	int t,n,x;
	int sa[]=new int[4];{
		
		for(x=0; x<=4 ;x++){
			t = sc.nextInt();
			n = sc.nextInt();
			switch(t){
			case 1: System.out.println(6000*n);break;
			case 2: System.out.println(4000*n);break;
			case 3: System.out.println(3000*n);break;
			case 4: System.out.println(2000*n);break;
			
			}
		}
	}	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
			Main2 sa = new Main2();
			
	}

}

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

import java.util.Scanner;

public class Main2 {
	
	public Main2(){
	Scanner sc = new Scanner(System.in);
	int t,n,x;
	int sa[]=new int[4];{
		
		for(x=0; x<=4 ;x++){
			t = sc.nextInt();
			n = sc.nextInt();
			switch(t){
			case 1: System.out.println(6000*n);break;
			case 2: System.out.println(4000*n);break;
			case 3: System.out.println(3000*n);break;
			case 4: System.out.println(2000*n);break;
			
			}
		}
	}	
}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
			Main2 sa = new Main2();
			
	}

}

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

package pasokonkousien;

public class Toi22103 {
	int[] seki = {3,1,4,2};
	int[] maisu = {10,4,1,5};
	int[] kingaku = new int [5];
	int n;
	int oseki;
	
	
	
	public void keisan(){
		for(n=0;n<4;n++){
			oseki =seki[n];
			switch(oseki){
			case 1: kingaku[n] = 6000 * maisu[n];
				break;
			case 2: kingaku[n] = 4000 * maisu[n];
			break;
			case 3: kingaku[n] = 3000 * maisu[n];
			break;
			default : kingaku[n] = 2000 * maisu[n];
			break;
			
			}
			System.out.println(kingaku[n]);
		}
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Toi22103 toi = new Toi22103();
		toi.keisan();
	}

}

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


import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);


int k,inatai,atai,maisu;



for(k=0;k<=4;k++){
	atai=sc.nextInt();

	maisu=sc.nextInt();
switch(atai){

case 1:inatai = 6000*maisu;break;
case 2:inatai = 4000*maisu;break;
case 3:inatai = 3000*maisu;break;
case 4:inatai = 2000*maisu;break;


System.out.println(inatai);


}
}
}
}

Compiler output:
Main.java:24: error: unreachable statement
System.out.println(inatai);
^
1 error
Language: Java

import java.util.Scanner;
public class Main1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int t=0;
		int n=0;
		int z;
		for(z=0;z<4;z++);
		switch(t){
		case 1: System.out.println(n*6000);break;
		case 2: System.out.println(n*4000);break;
		case 3: System.out.println(n*3000);break;
		case 4: System.out.println(n*2000);break;
		}
	}

}

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

import java.util.Scanner;
public class Main1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int t=0;
		int n=0;
		int z;
		for(z=0;z<4;z++);
		t = sc.nextInt();
		n = sc.nextInt();
		switch(t){
		case 1: System.out.println(n*6000);break;
		case 2: System.out.println(n*4000);break;
		case 3: System.out.println(n*3000);break;
		case 4: System.out.println(n*2000);break;
		}
	}

}

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

class Main{
	public void run(){
		Scanner sc = new Scanner(System.in);
		for( int i = 0; i < 4; i++){
			int nType = sc.nextLine();
			int nNum = sc.nextLine();
			switch(nType){
				case 1: System.out.println(6000*nNum); break;
				case 2: System.out.println(4000*nNum); break;
				case 3: System.out.println(3000*nNum); break;
				case 4: System.out.println(2000*nNum); break;
			}
		}
	}
	
	public static void main(String[] args){	new Main().run();}
	
}

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

//2701 青木沙采 問２
import java.util.Scanner;
public class Q0277{
	int syurui[]={6000,4000,3000,2000};
	int mun;
	int maisuu;
	int urikin;
	
	public void soleve(){
		Scanner sc = new Scanner(System.in);
		for(int i=1;i<=4;i++){
			mun = sc.nextInt();
			maisuu = sc.nextInt();
			System.out.println((syurui[mun-1]*maisuu));
		}
	}
	
	public static void main(String[] args){
		Q0277 obj = new Q0277();
		obj.soleve();
	}
}

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

//2702 青山理恵　問２

import java.util.Scanner;
public class Q0277{
    int syurui[]={6000,4000,3000,2000};
	int num;
    int maisuu;
    int urikin;
    
    public void solve(){
       Scanner sc = new Scanner(System.in);
	   for(int i=1;i<=4;i++){
	   	num = sc.nextInt();
	   	maisuu = sc.nextInt();
	   	System.out.println((syurui[num-1])*maisuu);
	   }
		
    }
    
    public static void main(String[] args){
        Q0277 obj = new Q0277();
        obj.solve();
    }
}

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

import java.util.Scanner;

public class Main{
   public void solve(){
      Scanner sc = new Scanner(System.in);
      int syu,mai;

      for(int i=0;i<4,i++){
         syu = sc.nextInt();
         mai = sc.nextInt();

         switch(syu){
            case 1:
            System.out.println(6000*mai);
            break;

            case 2:
            System.out.println(4000*mai);
            break;

            case 3:
            System.out.println(3000*mai);
            break;

            case 4:
            System.out.println(2000*mai);
            break;
         }
      }
   }

   public static void main(String[]args){
      Main obj = new Main();
      obj.solve();
   }
}

Compiler output:
Main.java:8: error: ';' expected
      for(int i=0;i<4,i++){
                     ^
1 error
Language: Java

import java.util.Scanner;
public class Main2{
	int tiket[]={0,6000,4000,3000,2000};
	int t,n,uriage;
	
	public void solve(){
		Scanner sc=new Scanner(System.in);
		
		for(int i=1;i<5;i++){
			t=sc.nextInt();
			n=sc.nextInt();
			uriage=tiket[t]*n;
			System.out.println(uriage);
		}
	}
	public static void main(String[] args){
		Main2 obj=new Main2();
		obj.solve();
	}
}

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

import java.util.Scanner;
public class Q0277{
    
    public void solve(){
       Scanner sc = new Scanner(System.in);
	   int ninzu,k;
	   int ban;
	   for(int i=0;i<4;i++){
	   	ban = sc.nextInt();
		if(ban == 1){
			k = 6000;
		}else if(ban == 2){
			k = 4000;
		}else if(ban == 3){
			k = 3000;
		}else{
			k = 2000;
		}
		ninzu = sc.nextInt();
		int uriage = k*ninzu;
		System.out.println(uriage);
	   }
    }
    public static void main(String[] args){
        Q0277 obj = new Q0277();
        obj.solve();
    }
}

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


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.Scanner;
public class Main{
     
    public void solve(){
       Scanner sc = new Scanner(System.in);
       int ninzu,k;
       int ban;
       for(int i=0;i<4;i++){
        ban = sc.nextInt();
        if(ban == 1){
            k = 6000;
        }else if(ban == 2){
            k = 4000;
        }else if(ban == 3){
            k = 3000;
        }else{
            k = 2000;
        }
        ninzu = sc.nextInt();
        int uriage = k*ninzu;
        System.out.println(uriage);
       }
    }
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
}

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

import java.util.Scanner;
public class Q0277{
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		int ninzu,k;
		int ban;
		for(int i=0;i<4;i++){
			ban = sc.nextInt();
			if(ban == 1){
				k = 6000;
			}else if(ban == 2){
				k = 4000;
			}else if(ban == 3){
				k = 3000;
			}else{
				k = 2000;
			}
			ninzu = sc.nextInt();
			int uriage = k * ninzu;
			System.out.println(uriage);
		}
	}
	public static void main(String[] args){
		Q0277 obj = new Q0277();
		obj.solve();
	}
}

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

import java.util.Scanner;
public class Main.278{
	
    public void solve(){
		Scanner sc=new Scanner(System.in);
		int hito,i,ban,uriage;
		for(int a=0; a<4;a++){
			ban=sc.nextInt();
			if(ban==1){
				i=6000;
				}else if(ban ==2){
					i=4000;
				}else if(ban ==3){
					i=3000;
				}else{
					i=2000;
				}
				hito=sc.nextInt();
				uriage=i*hito;
				System.out.println(uriage);
		
			 }
    }
      public static void main(String[] args){
      Main obj = new  Main.278(); 
      obj.solve();      
  }
}

Compiler output:
Main.java:2: error: '{' expected
public class Main.278{
                 ^
Main.java:25: error: '(' or '[' expected
      Main obj = new  Main.278(); 
                          ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
    
    public void solve(){
        Scanner sc = new Scanner(System.in);
        int syu,mai,a,uri;
        for(int t=0; t<4; t++){
            syu = sc.nextInt;
            if(syu==1){
                a=6000;
            }else if(syu==2){
                a=4000;
            }else if(syu==3){
                a=3000;
            }else if(syu==4){
                a=2000;
            }
            mai = sc.nextInt();
            uri = a * mai;
            System.out.println(uri);
        }
    }
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
            syu = sc.nextInt;
                    ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;
public class tiketto{
	int kin[]= {6000,4000,3000,2000};
	int t;
	int n;
	int go;
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<=3;i++){
			t = sc.nextInt();
			n = sc.nextInt();
			t = t-1;
			go = n*kin[t];
			System.out.println(go);
		}
	}
	public static void main(String[] args){
		tiketto obj = new tiketto();
		obj.solve();
	}
}

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

//2706 石井夏鈴 問5
import java.util.Scanner;
public class Main2{
	int n,t,a;
	int ti[]={0,6000,4000,3000,2000};
	
    public void solve(){
		Scanner sc = new Scanner(System.in);
		for(int i=1;i<=4;i++){
			t=sc.nextInt();
			n=sc.nextInt();
			a=ti[t]*n;
    System.out.println(a);
		}
	}
   public static void main(String[] args){
   	Main2 obj=new Main2();
	obj.solve();
   }
}

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

//2706 石井夏鈴 問5
import java.util.Scanner;
public class Main2{
	int n,t;
	int a=0;
	int ti[]={0,6000,4000,3000,2000};
	
    public void solve(){
		Scanner sc = new Scanner(System.in);
		for(int i=1;i<=4;i++){
			t=sc.nextInt();
			n=sc.nextInt();
			a=ti[t]*n;
    System.out.println(a);
		}
	}
   public static void main(String[] args){
   	Main2 obj=new Main2();
	obj.solve();
   }
}

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

#include<stdio.h>
int main(){
int i,n,m,s,a,b,c;
for(i=0;i<4;i++){
	scanf("%d%d",&n,&m);
	switch (n){
		case 1:
			s=m*6000;
			break;
		case 2:
			a=m*4000;
			break;
		case 3:
			b=m*3000;
			break;
		case 4:
			c=m*2000;
			break;
	}
}
printf("%d\n%d\n%d\n%d\n",s,a,b,c);
return0;
}

Compiler output:
main.c: In function 'main':
main.c:22:1: error: 'return0' undeclared (first use in this function)
   22 | return0;
      | ^~~~~~~
main.c:22:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int i,input,a[4],b;
for(i=0;i<4;i++){
	scanf("%d%d",&input,&);
	case (input){
		case 1:
			a[i]=6000*b;
		case 2:
			a[i]=4000*b;
		case 3:
			a[i]=3000*b;
		case 4:
			a[i]=2000*b;
		}
}
for(i=0;i<4;i++){
printf("%d\n",a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:30: error: expected expression before ')' token
    5 |         scanf("%d%d",&input,&);
      |                              ^
main.c:6:21: error: expected ':' or '...' before '{' token
    6 |         case (input){
      |                     ^
main.c:7:17: error: case label not within a switch statement
    7 |                 case 1:
      |                 ^~~~
main.c:9:17: error: case label not within a switch statement
    9 |                 case 2:
      |                 ^~~~
main.c:11:17: error: case label not within a switch statement
   11 |                 case 3:
      |                 ^~~~
main.c:13:17: error: case label not within a switch statement
   13 |                 case 4:
      |                 ^~~~
Language: C

#include<stdio.h>
int main(){
int i,input,a[4],b;
for(i=0;i<4;i++){
	scanf("%d%d",&input,&b);
	case (input){
		case 1:
			a[i]=6000*b;
		case 2:
			a[i]=4000*b;
		case 3:
			a[i]=3000*b;
		case 4:
			a[i]=2000*b;
		}
}
for(i=0;i<4;i++){
printf("%d\n",a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: expected ':' or '...' before '{' token
    6 |         case (input){
      |                     ^
main.c:7:17: error: case label not within a switch statement
    7 |                 case 1:
      |                 ^~~~
main.c:9:17: error: case label not within a switch statement
    9 |                 case 2:
      |                 ^~~~
main.c:11:17: error: case label not within a switch statement
   11 |                 case 3:
      |                 ^~~~
main.c:13:17: error: case label not within a switch statement
   13 |                 case 4:
      |                 ^~~~
Language: C

#include<stdio.h>
int main(){
int i,input,a[4],b;
for(i=0;i<4;i++){
	scanf("%d%d",&input,&b);
	case (input){
		case 1:
			a[i]=6000*b;
			break;
		case 2:
			a[i]=4000*b;
			break;
		case 3:
			a[i]=3000*b;
			break;
		case 4:
			a[i]=2000*b;
			break;
	}
}
for(i=0;i<4;i++){
	printf("%d\n",a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: expected ':' or '...' before '{' token
    6 |         case (input){
      |                     ^
main.c:7:17: error: case label not within a switch statement
    7 |                 case 1:
      |                 ^~~~
main.c:10:17: error: case label not within a switch statement
   10 |                 case 2:
      |                 ^~~~
main.c:13:17: error: case label not within a switch statement
   13 |                 case 3:
      |                 ^~~~
main.c:16:17: error: case label not within a switch statement
   16 |                 case 4:
      |                 ^~~~
Language: C

#include<stdio.h>
int main(void)
{
  int i,t,n,k;
  for(i=0;i>4;i++){
    scanf("%d %d",&t,&n);
    if(t==1){
      k=6000;
    } else{
      k=(6-t)*1000;
    }
    k*=n;
    printf("%d\n",k)
  }
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:13:21: error: expected ';' before '}' token
   13 |     printf("%d\n",k)
      |                     ^
      |                     ;
   14 |   }
      |   ~
Language: C

#include <stdio.h>
int main(void)
{
	int t[4];
	int n[4];
	int i;
	
	for(i=0;i<4;i++)
	scanf("%d %d",&t[i],&n[i]);
	
	for(i=0;i<4;i++){
		switch(v[i])}
			case 1:t[i]=6000; break;
			case 2:t[i]=4000; break;
			case 3:t[i]=3000; break;
			case 4:t[i]=2000: break;
		}
	}
	
	for(i=0;i<4;i++)
	printf("%d\n",t[i]*n[i]);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:24: error: 'v' undeclared (first use in this function)
   12 |                 switch(v[i])}
      |                        ^
main.c:12:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:29: error: expected expression before '}' token
   12 |                 switch(v[i])}
      |                             ^
main.c:13:25: error: case label not within a switch statement
   13 |                         case 1:t[i]=6000; break;
      |                         ^~~~
main.c:13:43: error: break statement not within loop or switch
   13 |                         case 1:t[i]=6000; break;
      |                                           ^~~~~
main.c:14:25: error: case label not within a switch statement
   14 |                         case 2:t[i]=4000; break;
      |                         ^~~~
main.c:14:43: error: break statement not within loop or switch
   14 |                         case 2:t[i]=4000; break;
      |                                           ^~~~~
main.c:15:25: error: case label not within a switch statement
   15 |                         case 3:t[i]=3000; break;
      |                         ^~~~
main.c:15:43: error: break statement not within loop or switch
   15 |                         case 3:t[i]=3000; break;
      |                                           ^~~~~
main.c:16:25: error: case label not within a switch statement
   16 |                         case 4:t[i]=2000: break;
      |                         ^~~~
main.c:16:41: error: expected ';' before ':' token
   16 |                         case 4:t[i]=2000: break;
      |                                         ^
      |                                         ;
main.c: At top level:
main.c:18:9: error: expected identifier or '(' before '}' token
   18 |         }
      |         ^
main.c:20:9: error: expected identifier or '(' before 'for'
   20 |         for(i=0;i<4;i++)
      |         ^~~
main.c:20:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   20 |         for(i=0;i<4;i++)
      |                  ^
main.c:20:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   20 |         for(i=0;i<4;i++)
      |                      ^~
main.c:23:9: error: expected identifier or '(' before 'return'
   23 |         return 0;
      |         ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
{
	int t[4];
	int n[4];
	int i;
	
	for(i=0;i<4;i++)
	scanf("%d %d",&t[i],&n[i]);
	
	for(i=0;i<4;i++){
		switch(t[i])}
			case 1:t[i]=6000; break;
			case 2:t[i]=4000; break;
			case 3:t[i]=3000; break;
			case 4:t[i]=2000: break;
		}
	}
	
	for(i=0;i<4;i++)
	printf("%d\n",t[i]*n[i]);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:29: error: expected expression before '}' token
   12 |                 switch(t[i])}
      |                             ^
main.c:13:25: error: case label not within a switch statement
   13 |                         case 1:t[i]=6000; break;
      |                         ^~~~
main.c:13:43: error: break statement not within loop or switch
   13 |                         case 1:t[i]=6000; break;
      |                                           ^~~~~
main.c:14:25: error: case label not within a switch statement
   14 |                         case 2:t[i]=4000; break;
      |                         ^~~~
main.c:14:43: error: break statement not within loop or switch
   14 |                         case 2:t[i]=4000; break;
      |                                           ^~~~~
main.c:15:25: error: case label not within a switch statement
   15 |                         case 3:t[i]=3000; break;
      |                         ^~~~
main.c:15:43: error: break statement not within loop or switch
   15 |                         case 3:t[i]=3000; break;
      |                                           ^~~~~
main.c:16:25: error: case label not within a switch statement
   16 |                         case 4:t[i]=2000: break;
      |                         ^~~~
main.c:16:41: error: expected ';' before ':' token
   16 |                         case 4:t[i]=2000: break;
      |                                         ^
      |                                         ;
main.c: At top level:
main.c:18:9: error: expected identifier or '(' before '}' token
   18 |         }
      |         ^
main.c:20:9: error: expected identifier or '(' before 'for'
   20 |         for(i=0;i<4;i++)
      |         ^~~
main.c:20:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   20 |         for(i=0;i<4;i++)
      |                  ^
main.c:20:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   20 |         for(i=0;i<4;i++)
      |                      ^~
main.c:23:9: error: expected identifier or '(' before 'return'
   23 |         return 0;
      |         ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
{
	int t[4];
	int n[4];
	int i;
	
	for(i=0;i<4;i++)
	scanf("%d %d",&t[i],&n[i]);
	
	for(i=0;i<4;i++){
		switch(t[i]){
			case 1:t[i]=6000; break;
			case 2:t[i]=4000; break;
			case 3:t[i]=3000; break;
			case 4:t[i]=2000: break;
		}
	}
	
	for(i=0;i<4;i++)
	printf("%d\n",t[i]*n[i]);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:41: error: expected ';' before ':' token
   16 |                         case 4:t[i]=2000: break;
      |                                         ^
      |                                         ;
Language: C

#include<stdio.h>
int main(void)
{
		int t,n,x[4],i
		for(i=0;i<4;i++){
			scanf("%d %d",&t,&n);
		if(t==1){
			a[i]=n*6000;
			}
		if(t==2){
			a[i]=n*4000;
			}
		if(t==3){
			a[i]=n*3000;
			}
		if(t==4){
			a[i]=n*2000;
			}
		for(j=0;j<4;j++){
			printf("%d\n",x[j]);
			}
		return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    5 |                 for(i=0;i<4;i++){
      |                 ^~~
main.c:5:25: error: 'i' undeclared (first use in this function)
    5 |                 for(i=0;i<4;i++){
      |                         ^
main.c:5:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:32: error: expected ';' before ')' token
    5 |                 for(i=0;i<4;i++){
      |                                ^
      |                                ;
main.c:5:32: error: expected statement before ')' token
main.c:8:25: error: 'a' undeclared (first use in this function)
    8 |                         a[i]=n*6000;
      |                         ^
main.c:19:21: error: 'j' undeclared (first use in this function)
   19 |                 for(j=0;j<4;j++){
      |                     ^
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
		int t,n,x[4],i,j;
		for(i=0;i<4;i++){
			scanf("%d %d",&t,&n);
		if(t==1){
			a[i]=n*6000;
			}
		if(t==2){
			a[i]=n*4000;
			}
		if(t==3){
			a[i]=n*3000;
			}
		if(t==4){
			a[i]=n*2000;
			}
		for(j=0;j<4;j++){
			printf("%d\n",x[j]);
			}
		return 0;
}		

Compiler output:
main.c: In function 'main':
main.c:8:25: error: 'a' undeclared (first use in this function)
    8 |                         a[i]=n*6000;
      |                         ^
main.c:8:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
		int t,n,x[4],i,j;
		for(i=0;i<4;i++){
			scanf("%d %d",&t,&n);
		if(t==1){
			x[i]=n*6000;
			}
		if(t==2){
			x[i]=n*4000;
			}
		if(t==3){
			x[i]=n*3000;
			}
		if(t==4){
			x[i]=n*2000;
			}
		for(j=0;j<4;j++){
			printf("%d\n",x[j]);
			}
		return 0;
}

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

#include<stdio.h>
int main(void)
{
	int t[4],i,n[4],pokemon[4];
	for(i=0;i<4;i++){
	scanf("%d %d",&t[i],&n[i]);
	switch(t){
	case 1:
	pokemon[1]=6000*n;
	case 2:
	pokemon[2]=4000*n;
	case 3:
	pokemon[3]=3000*n;
	case 4:
	pokemon[4]=2000*n;
	}
	for(i=1;i<=4;i++)
	printf("%d\n",pokemon[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: switch quantity not an integer
    7 |         switch(t){
      |                ^
main.c:9:24: error: invalid operands to binary * (have 'int' and 'int *')
    9 |         pokemon[1]=6000*n;
      |                        ^
      |                        |
      |                        int *
main.c:11:24: error: invalid operands to binary * (have 'int' and 'int *')
   11 |         pokemon[2]=4000*n;
      |                        ^
      |                        |
      |                        int *
main.c:13:24: error: invalid operands to binary * (have 'int' and 'int *')
   13 |         pokemon[3]=3000*n;
      |                        ^
      |                        |
      |                        int *
main.c:15:24: error: invalid operands to binary * (have 'int' and 'int *')
   15 |         pokemon[4]=2000*n;
      |                        ^
      |                        |
      |                        int *
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
	int t[4],i,n[4],pokemon[4];
	for(i=0;i<4;i++){
	scanf("%d %d",&t[i],&n[i]);
	if(1==t)
	pokemon[i]=6000*n;
	else if(2==t)
	pokemon[i]=4000*n;
	else if(3==t)
	pokemon[i]=3000*n;
	else
	pokemon[i]=2000*n;
	}
	for(i=0;i<4;i++)
	printf("%d\n",pokemon[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: warning: comparison between pointer and integer
    7 |         if(1==t)
      |             ^~
main.c:8:24: error: invalid operands to binary * (have 'int' and 'int *')
    8 |         pokemon[i]=6000*n;
      |                        ^
      |                        |
      |                        int *
main.c:9:18: warning: comparison between pointer and integer
    9 |         else if(2==t)
      |                  ^~
main.c:10:24: error: invalid operands to binary * (have 'int' and 'int *')
   10 |         pokemon[i]=4000*n;
      |                        ^
      |                        |
      |                        int *
main.c:11:18: warning: comparison between pointer and integer
   11 |         else if(3==t)
      |                  ^~
main.c:12:24: error: invalid operands to binary * (have 'int' and 'int *')
   12 |         pokemon[i]=3000*n;
      |                        ^
      |                        |
      |                        int *
main.c:14:24: error: invalid operands to binary * (have 'int' and 'int *')
   14 |         pokemon[i]=2000*n;
      |                        ^
      |                        |
      |                        int *
Language: C

#include<stdio.h>
int main(void)
{
	int t[4],i,n[4],pokemon[4];
	for(i=0;i<4;i++){
	scanf("%d %d",&t[i],&n[i]);
	if(1==t){
	pokemon[i]=6000*n;}
	else if(2==t){
	pokemon[i]=4000*n;}
	else if(3==t){
	pokemon[i]=3000*n;}
	else{
	pokemon[i]=2000*n;}
	}
	for(i=0;i<4;i++){
	printf("%d\n",pokemon[i]);}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: warning: comparison between pointer and integer
    7 |         if(1==t){
      |             ^~
main.c:8:24: error: invalid operands to binary * (have 'int' and 'int *')
    8 |         pokemon[i]=6000*n;}
      |                        ^
      |                        |
      |                        int *
main.c:9:18: warning: comparison between pointer and integer
    9 |         else if(2==t){
      |                  ^~
main.c:10:24: error: invalid operands to binary * (have 'int' and 'int *')
   10 |         pokemon[i]=4000*n;}
      |                        ^
      |                        |
      |                        int *
main.c:11:18: warning: comparison between pointer and integer
   11 |         else if(3==t){
      |                  ^~
main.c:12:24: error: invalid operands to binary * (have 'int' and 'int *')
   12 |         pokemon[i]=3000*n;}
      |                        ^
      |                        |
      |                        int *
main.c:14:24: error: invalid operands to binary * (have 'int' and 'int *')
   14 |         pokemon[i]=2000*n;}
      |                        ^
      |                        |
      |                        int *
Language: C

#include<stdio.h>
int main(void)
{
	int t[4],i,n[4],pokemon[4];
	for(i=0;i<4;i++){
	scanf("%d %d",&t[i],&n[i]);
	if(1==t){
	pokemon[i]=6000*n;}
	else if(2==t){
	pokemon[i]=4000*n;}
	else if(3==t){
	pokemon[i]=3000*n;}
	else{
	pokemon[i]=2000*n;}
	printf("%d\n",pokemon[i]);	
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: warning: comparison between pointer and integer
    7 |         if(1==t){
      |             ^~
main.c:8:24: error: invalid operands to binary * (have 'int' and 'int *')
    8 |         pokemon[i]=6000*n;}
      |                        ^
      |                        |
      |                        int *
main.c:9:18: warning: comparison between pointer and integer
    9 |         else if(2==t){
      |                  ^~
main.c:10:24: error: invalid operands to binary * (have 'int' and 'int *')
   10 |         pokemon[i]=4000*n;}
      |                        ^
      |                        |
      |                        int *
main.c:11:18: warning: comparison between pointer and integer
   11 |         else if(3==t){
      |                  ^~
main.c:12:24: error: invalid operands to binary * (have 'int' and 'int *')
   12 |         pokemon[i]=3000*n;}
      |                        ^
      |                        |
      |                        int *
main.c:14:24: error: invalid operands to binary * (have 'int' and 'int *')
   14 |         pokemon[i]=2000*n;}
      |                        ^
      |                        |
      |                        int *
Language: C

#include<stdio.h>
int main(void)
{
	int t,n,d[4],cnt=0;
	while(cnt!=3){
	scanf("%d %d",&t,&n);
	if(t==1)
	d[cnt]=6000*n;
	else if(t==2)
	d[cnt]=4000*n;
	else if(t==3)
	d[cnt]=3000*n;
	else
	d[cnt]=2000*n;
	cnt++;
	}
	cnt=0
	while(cnt!=3)
	printf("%d\n",d[cnt]);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:14: error: expected ';' before 'while'
   17 |         cnt=0
      |              ^
      |              ;
   18 |         while(cnt!=3)
      |         ~~~~~
Language: C

#include<stdio.h>
int main(void)
{
	int t,n,i,Sseki,Aseki,Bseki,Cseki;
	for(i=1;i<5;i++){
	 scanf("%d%d",&t,&n);
	 swich (t)
	 {
	  case 1:
	  Sseki=6000*n;
	  break;
	  case 2:
	  Aseki=3000*n;
	  break;
	  case 3:
	  Bseki=3000*n;
	  break;
	  case 4:
	  Cseki=2000*n;
	  break;
	 }
	 if(t==1){
	  printf("%d\n",Sseki);
	 }
	 else if(t==2){
	  printf("%d\n",Aseki);
	 }
	 else if(t==3){
	  printf("%d\n",Bseki);
	 }
	 else{
	  printf("%d\n",Cseki);
	 }
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    7 |          swich (t)
      |          ^~~~~
main.c:7:19: error: expected ';' before '{' token
    7 |          swich (t)
      |                   ^
      |                   ;
    8 |          {
      |          ~
Language: C

#include<stdio.h>
int main(void)
{
	int t,n,i,Sseki,Aseki,Bseki,Cseki;
	for(i=1;i<5;i++){
	 scanf("%d%d",&t,&n);
	 swich (t)
	 {
	  case 1:
	  Sseki=6000*n;
	  break;
	  case 2:
	  Aseki=3000*n;
	  break;
	  case 3:
	  Bseki=3000*n;
	  break;
	  case 4:
	  Cseki=2000*n;
	  break;
          default
          break;
	 }
	 if(t==1){
	  printf("%d\n",Sseki);
	 }
	 else if(t==2){
	  printf("%d\n",Aseki);
	 }
	 else if(t==3){
	  printf("%d\n",Bseki);
	 }
	 else{
	  printf("%d\n",Cseki);
	 }
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    7 |          swich (t)
      |          ^~~~~
main.c:7:19: error: expected ';' before '{' token
    7 |          swich (t)
      |                   ^
      |                   ;
    8 |          {
      |          ~
Language: C

#include<stdio.h>
int main(void)
{
	int t,n,i,Sseki,Aseki,Bseki,Cseki;
	for(i=1;i<5;i++){
	 scanf("%d%d",&t,&n);
	 switch (t)
	 {
	  case 1:
	  Sseki=6000*n;
	  break;
	  case 2:
	  Aseki=3000*n;
	  break;
	  case 3:
	  Bseki=3000*n;
	  break;
	  case 4:
	  Cseki=2000*n;
	  break;
          default
          break;
	 }
	 if(t==1){
	  printf("%d\n",Sseki);
	 }
	 else if(t==2){
	  printf("%d\n",Aseki);
	 }
	 else if(t==3){
	  printf("%d\n",Bseki);
	 }
	 else{
	  printf("%d\n",Cseki);
	 }
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:18: error: expected ':' before 'break'
   21 |           default
      |                  ^
      |                  :
   22 |           break;
      |           ~~~~~
Language: C

#include<stdio.h>
int main(void)
{
	int t,n,i,iti,ni,san,si;
	for(i=1;i<5;i++){
	 scanf("%d%d",&t,&n);
	 switch (t)
	 {
	  case 1:
	  iti=6000*n;
	  break;
	  case 2:
	  ni=3000*n;
	  break;
	  case 3:
	  san=3000*n;
	  break;
	  case 4:
	  si=2000*n;
	  break;
          default
          break;
	 }
	 if(t==1){
	  printf("%d\n",iti);
	 }
	 else if(t==2){
	  printf("%d\n",ni);
	 }
	 else if(t==3){
	  printf("%d\n",san);
	 }
	 else{
	  printf("%d\n",si);
	 }
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:18: error: expected ':' before 'break'
   21 |           default
      |                  ^
      |                  :
   22 |           break;
      |           ~~~~~
Language: C

#include<stdio.h>
int main(void) {
	int f,n,u,i;
	for (i = 0; i < 4; i++) {
		scanf_s("%d %d", &f, &n);
		switch (f) {
		case 1:
			u = 6000 * n;
			break;
		case 2:
			u = 4000 * n;
			break;
		case 3:
			u = 3000 * n;
			break;
		case 4:
			u = 2000 * n;
			break;
		}
		printf("%d\n", u);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |                 scanf_s("%d %d", &f, &n);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include<stdio.h>

int main() {
    int i;
    int n;
    int prices[] = {6000, 4000, 3000, 2000};
    unsigned long long int sums[4];

    for (i=0; i<4; i++) {
        int ind;
	unsigned long long int  times;

        scanf("%d %llu", &ind, &times);
	sum[ind-1] = prices[ind-1] * times;
    }

    for (i=0; i<4; i++) {
        printf("%llu\n", sums[i]);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'sum' was not declared in this scope; did you mean 'sums'?
   14 |         sum[ind-1] = prices[ind-1] * times;
      |         ^~~
      |         sums
Language: C++

#include <cstdio>
#include <iostream>
#include <stdlib.h>
#include <iomanip>
#include <string> 
#include <sstream>  
#include <vector> 
#include <time.h>
#include <algorithm>
using namespace std;

int main(){
    int price = [6000,4000,3000,2000];
    int a,b;
    for(int i = 1;i <= 4;i++){cin >> a >> b;cout << b * price[a-1] << endl;}
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected identifier before numeric constant
   13 |     int price = [6000,4000,3000,2000];
      |                  ^~~~
a.cc:13:22: error: expected ']' before ',' token
   13 |     int price = [6000,4000,3000,2000];
      |                      ^
      |                      ]
a.cc: In lambda function:
a.cc:13:22: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:13:17: error: invalid user-defined conversion from 'main()::<lambda()>' to 'int' [-fpermissive]
   13 |     int price = [6000,4000,3000,2000];
      |                 ^~~~~
a.cc:13:17: note: candidate is: 'constexpr main()::<lambda()>::operator void (*)()() const' (near match)
   13 |     int price = [6000,4000,3000,2000];
      |                 ^
a.cc:13:17: note:   no known conversion from 'void (*)()' to 'int'
a.cc:13:23: error: expected unqualified-id before numeric constant
   13 |     int price = [6000,4000,3000,2000];
      |                       ^~~~
a.cc:15:62: error: invalid types 'int[int]' for array subscript
   15 |     for(int i = 1;i <= 4;i++){cin >> a >> b;cout << b * price[a-1] << endl;}
      |                                                              ^
Language: C++

#include <stdio.h>
#include <algorithm>
#include <stdlib.h>
#include <string.h>
#include <queue>
#define rep(i,n) for(int i = 0; i < n; ++i)
#define rrep(i,n) for(int i = 1; i <= n; ++i)
using namespace std;
typedef pair<int,int> P;
const int INF = 1000000000;

int main(){
	int i,a,b;
	rep(i,4){
		int scr;
	scanf("%d%d",&a,&b);
	switch(a){
		case: 1
		scr = 6000*b
		break;
		case: 2
		scr = 4000*b
		break;
		case: 3
		scr = 3000*b
		break;
		case: 4
		scr = 2000*b
		break;
		
	}
	printf("%d\n",scr);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: error: expected primary-expression before ':' token
   18 |                 case: 1
      |                     ^
a.cc:18:24: error: expected ';' before 'scr'
   18 |                 case: 1
      |                        ^
      |                        ;
   19 |                 scr = 6000*b
      |                 ~~~     
a.cc:21:21: error: expected primary-expression before ':' token
   21 |                 case: 2
      |                     ^
a.cc:21:24: error: expected ';' before 'scr'
   21 |                 case: 2
      |                        ^
      |                        ;
   22 |                 scr = 4000*b
      |                 ~~~     
a.cc:24:21: error: expected primary-expression before ':' token
   24 |                 case: 3
      |                     ^
a.cc:24:24: error: expected ';' before 'scr'
   24 |                 case: 3
      |                        ^
      |                        ;
   25 |                 scr = 3000*b
      |                 ~~~     
a.cc:27:21: error: expected primary-expression before ':' token
   27 |                 case: 4
      |                     ^
a.cc:27:24: error: expected ';' before 'scr'
   27 |                 case: 4
      |                        ^
      |                        ;
   28 |                 scr = 2000*b
      |                 ~~~
Language: C++

#include<iostream>
using namespace std;
int main(){

    int tick, n;
    int temp[5] = {0, 6000, 4000, 3000, 2000}
    for(int i=0;i<4;i++){
        cin >> tick >> n;
        cout << temp[tick] * n;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'for'
    7 |     for(int i=0;i<4;i++){
      |     ^~~
a.cc:7:17: error: 'i' was not declared in this scope
    7 |     for(int i=0;i<4;i++){
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int t,n;
  for(int i = 0; i < 4;i++){
    int result = 0
    cin >> t >> n;
    switch (t) {
      case 1:
      result = 6000*n;
      break;
      case 2:
      result = 4000*n;
      break;
      case 3:
      result = 3000*n;
      break;
      case 4:
      result = 2000*n;
      break;
    }
    cout << result << endle;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'cin'
    8 |     cin >> t >> n;
      |     ^~~
a.cc:23:23: error: 'endle' was not declared in this scope
   23 |     cout << result << endle;
      |                       ^~~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int t[4],i,n[4],pokemon[4];
	for(i=0;i<4;i++){
	scanf("%d %d",&t[i],&n[i]);
	if(1==t)
	pokemon[i]=6000*n;
	else if(2==t)
	pokemon[i]=4000*n;
	else if(3==t)
	pokemon[i]=3000*n;
	else
	pokemon[i]=2000*n;
	}
	for(i=0;i<4;i++)
	printf("%d\n",pokemon[i]);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(1==t)
      |            ~^~~
a.cc:8:24: error: invalid operands of types 'int' and 'int [4]' to binary 'operator*'
    8 |         pokemon[i]=6000*n;
      |                    ~~~~^~
      |                    |    |
      |                    int  int [4]
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         else if(2==t)
      |                 ~^~~
a.cc:10:24: error: invalid operands of types 'int' and 'int [4]' to binary 'operator*'
   10 |         pokemon[i]=4000*n;
      |                    ~~~~^~
      |                    |    |
      |                    int  int [4]
a.cc:11:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         else if(3==t)
      |                 ~^~~
a.cc:12:24: error: invalid operands of types 'int' and 'int [4]' to binary 'operator*'
   12 |         pokemon[i]=3000*n;
      |                    ~~~~^~
      |                    |    |
      |                    int  int [4]
a.cc:14:24: error: invalid operands of types 'int' and 'int [4]' to binary 'operator*'
   14 |         pokemon[i]=2000*n;
      |                    ~~~~^~
      |                    |    |
      |                    int  int [4]
Language: C++

#include<stdio.h>
int main(void)
{
int n,j,i;
int tike[4];
int en[4];
int temp;
scnaf(n);
for(i=0;i<n;i++)
scnaf("%d %d",&en[i],&tike[i]);
for(i=0;i<n+1;i++){
for(j=0;i+1;j<n++){
if(tike[i]>tike[j]){
temp=tike[i];
tike[i]=tike[j];
en[i]=en[j];
en[j]=temp;
}
}
}
for(i=0;i<4;i++){
printf("%d\n",tike[i]);
}
return 0;
}

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

#include <iostream>
using namespace std;

int main () {
  int t;
  int n;
  int result;
  for (int i = 0; i < 4; i++) {
    cin >> t >> n;
    switch (t) {
      case 1:
        result = 6000 * n;
        return;
      case 2:
        result = 4000 * n;
        return;
      case 3:
        result = 3000 * n;
        return;
      case 4:
        result = 2000 * n;
        return;
    }
    cout << result << endl();
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |         return;
      |         ^~~~~~
a.cc:16:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |         return;
      |         ^~~~~~
a.cc:19:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |         return;
      |         ^~~~~~
a.cc:22:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |         return;
      |         ^~~~~~
a.cc:24:27: error: no matching function for call to 'endl()'
   24 |     cout << result << endl();
      |                       ~~~~^~
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::endl(basic_ostream<_CharT, _Traits>&)'
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
/usr/include/c++/14/ostream:744:5: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <iostream>
using namespace std;

int main () {
  int t;
  int n;
  int result;
  for (int i = 0; i < 4; i++) {
    cin >> t >> n;
    switch (t) {
      case 1:
        result = 6000 * n;
        return;
      case 2:
        result = 4000 * n;
        return;
      case 3:
        result = 3000 * n;
        return;
      case 4:
        result = 2000 * n;
        return;
    }
    cout << result << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |         return;
      |         ^~~~~~
a.cc:16:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |         return;
      |         ^~~~~~
a.cc:19:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |         return;
      |         ^~~~~~
a.cc:22:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |         return;
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;

void main () {
  int t;
  int n;
  int result;
  for (int i = 0; i < 4; i++) {
    cin >> t >> n;
    switch (t) {
      case 1:
        result = 6000 * n;
        return;
      case 2:
        result = 4000 * n;
        return;
      case 3:
        result = 3000 * n;
        return;
      case 4:
        result = 2000 * n;
        return;
    }
    cout << result << endl;
  }
  return 0;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main () {
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |         return;
      |         ^~~~~~
a.cc:16:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |         return;
      |         ^~~~~~
a.cc:19:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |         return;
      |         ^~~~~~
a.cc:22:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |         return;
      |         ^~~~~~
Language: C++

#define scanf_s scanf

#include<stdio.h>
int main(void) {
	int a, b, i, mo[4] = { 6000,4000,3000,2000 };
	for (i = 0; i < 4; i++) {
		scanf_s("%d %d", &a, &b);
		printf("%d\n", mo[a - 1] * b);
	}	
	return(0);

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected '}' at end of input
   10 |         return(0);
      |                   ^
a.cc:4:16: note: to match this '{'
    4 | int main(void) {
      |                ^