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

#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef pair<pair<int,int>,string> item;
main(){
	int n,i,w,s,S;
	string f;
	for(;cin>>n,n;){
		vector<item> items,result;
		for(i=0;i<n;i++)cin>>f>>w>>s,items.push_back(make_pair(make_pair(w,s),f));
		sort(items.begin(),items.end());
		S=999999999;
		do{
			for(s=w=i=0;i<n;i++){ //from upper
				if(items[i].first.second<w)break;
				w+=items[i].first.first;
				s+=(n-i)*items[i].first.first;
			}
			if(i==n&&s<S)cout<<s<<endl,S=s,result=items;
		}while(next_permutation(items.begin(),items.end()));
		reverse(result.begin(),result.end());
		for(i=0;i<n;i++)cout<<result[i].second<<endl;
	}
}

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |                 sort(items.begin(),items.end());
      |                 ^~~~
      |                 short
a.cc:21:24: error: 'next_permutation' was not declared in this scope
   21 |                 }while(next_permutation(items.begin(),items.end()));
      |                        ^~~~~~~~~~~~~~~~
a.cc:22:17: error: 'reverse' was not declared in this scope
   22 |                 reverse(result.begin(),result.end());
      |                 ^~~~~~~
Language: Java

import java.util.Scanner;

class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str;
		int am, pm;
		
		for(int i = 0; i < 9; i++){
			str = scan.next();
			am = scan.nextInt();
			pm = scan.nextInt();
			
			System.out.println(str + " " + am + pm + " " + am * 200 + pm * 300);
		}

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

import java.util.*;
public class HauntedHouse {
	static Scanner sc = new Scanner(System.in);
	static String[] name = new String[9];
	static int[][] Array = new int[9][2];
	
	public static void main(String[] args) {
		for(int i = 0; i < 9; i++){
			read();
			slove();
		}

	}
	static boolean read(){
		String line;
		String[] devide = new String[3];
		
		for(int i = 0; i < 9; i++){
			line = sc.nextLine();
			devide = line.split(" ");
			name[i] = devide[0];
			Array[i][0] = Integer.parseInt(devide[1])
							+Integer.parseInt(devide[2]);
			Array[i][1] = Integer.parseInt(devide[1])*200
			+Integer.parseInt(devide[2])*300;
		}
		return true;
	}
	static void slove(){
		for(int i = 0; i < 9; i++){
			System.out.print(name[i] + " ");
			System.out.print(Array[i][0] + " ");
			System.out.println(Array[i][1]);
		}
	}
}

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

import java.util.*;
public class aoj0173 {
	static final Scanner stdin = new Scanner(System.in);
	public static void main(String[] args) {
		int i = 9;
		while(i-- > 0){
			String s = stdin.next(); 
                        int a = stdin.nextInt(), b = stdin.nextInt();
			System.out.println(s + " " + (a+b) + " " + (200*a+300*b));
		}
	}
}

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

import java.util.*;
public Main {   	
	public static void main(String[] args) {
        static  Scanner stdin = new Scanner(System.in); 
		int i = 9;
		 while(i-- > 0){
			String s = stdin.next(); 
                        int a = stdin.nextInt(), b = stdin.nextInt();
			System.out.println(s + " " + (a+b) + " " + (200*a+300*b));
		}
	}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public Main {   	
       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: illegal start of expression
        static  Scanner stdin = new Scanner(System.in); 
        ^
Main.java:6: error: class, interface, enum, or record expected
		 while(i-- > 0){
		 ^
Main.java:9: error: class, interface, enum, or record expected
			System.out.println(s + " " + (a+b) + " " + (200*a+300*b));
			^
Main.java:10: error: class, interface, enum, or record expected
		}
		^
6 errors
Language: Java

import java.util.*;
public Main {   	
	public static void main(String[] args) {
        static final Scanner stdin = new Scanner(System.in); 
		int i = 9;
		 while(i-- > 0){
			String s = stdin.next(); 
                        int a = stdin.nextInt(), b = stdin.nextInt();
			System.out.println(s + " " + (a+b) + " " + (200*a+300*b));
		}
	}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public Main {   	
       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: illegal start of expression
        static final Scanner stdin = new Scanner(System.in); 
        ^
Main.java:6: error: class, interface, enum, or record expected
		 while(i-- > 0){
		 ^
Main.java:9: error: class, interface, enum, or record expected
			System.out.println(s + " " + (a+b) + " " + (200*a+300*b));
			^
Main.java:10: error: class, interface, enum, or record expected
		}
		^
6 errors
Language: Java

import java.util.*;
public Main {
	static final Scanner stdin = new Scanner(System.in);
	public static void main(String[] args) {
		int i = 9;
		while(i-- > 0){
			String s = stdin.next();
                        int a = stdin.nextInt(), b = stdin.nextInt();
			System.out.println(s + " " + (a+b) + " " + (200*a+300*b));
		}
	}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	static final Scanner stdin = new Scanner(System.in);
	             ^
  (use --enable-preview to enable unnamed classes)
Main.java:12: error: class, interface, enum, or record expected
}
^
3 errors
Language: C

#include<stdio.h>
int main(void){
	char c[8][1];
	int a[8] ={0},b[8] = {0},i;
	for(i=0;i<8;i++){
		scanf("%d%d %d %d",&c[i][0],&c[i][1],&a[i],&b[i]);
	}
	for(i=0;i<8;i++){
		printf("%d%d %d %d\n",c[i][0],c[i]c[1],a[i]+b[i],a[i]*200+b[i]*300);
	}
}

Compiler output:
main.c: In function 'main':
main.c:9:51: error: expected ')' before 'c'
    9 |                 printf("%d%d %d %d\n",c[i][0],c[i]c[1],a[i]+b[i],a[i]*200+b[i]*300);
      |                       ~                           ^
      |                                                   )
Language: C

#include<stdio.h>
int main(void){
	char c[8][1];
	int a[8] ={0},b[8] = {0},i;
	for(i=0;i<8;i++){
		scanf("%s%s %d %d",&c[i][0],&c[i][1],&a[i],&b[i]);
	}
	for(i=0;i<8;i++){
		printf("%s%s %d %d\n",c[i][0],c[i]c[1],a[i]+b[i],a[i]*200+b[i]*300);
	}
}

Compiler output:
main.c: In function 'main':
main.c:9:51: error: expected ')' before 'c'
    9 |                 printf("%s%s %d %d\n",c[i][0],c[i]c[1],a[i]+b[i],a[i]*200+b[i]*300);
      |                       ~                           ^
      |                                                   )
Language: C

#include <stdio.h>
#include <string.h>
int main(void) {

	int i,m,n,l,k;
	char str[200],s[5];

	for( ;fgets(str,sizeof(str),stdin)!=NULL;){
		sscanf(str,"%s %d %d",&s,&n,&m);
		l=n+m; k=n*200+m*300
		printf("%s %d %d\n",&s,l,k);	
	}		
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:37: error: expected ';' before 'printf'
   10 |                 l=n+m; k=n*200+m*300
      |                                     ^
      |                                     ;
   11 |                 printf("%s %d %d\n",&s,l,k);
      |                 ~~~~~~
Language: C

main(){char s[20];for(int a,b;~scanf("%s%d%d",s,&a,&b);printf("%s %d %d\n",s,a+b,a*200+b*300));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){char s[20];for(int a,b;~scanf("%s%d%d",s,&a,&b);printf("%s %d %d\n",s,a+b,a*200+b*300));}
      | ^~~~
main.c: In function 'main':
main.c:1:32: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){char s[20];for(int a,b;~scanf("%s%d%d",s,&a,&b);printf("%s %d %d\n",s,a+b,a*200+b*300));}
      |                                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){char s[20];for(int a,b;~scanf("%s%d%d",s,&a,&b);printf("%s %d %d\n",s,a+b,a*200+b*300));}
main.c:1:32: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){char s[20];for(int a,b;~scanf("%s%d%d",s,&a,&b);printf("%s %d %d\n",s,a+b,a*200+b*300));}
      |                                ^~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:56: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(){char s[20];for(int a,b;~scanf("%s%d%d",s,&a,&b);printf("%s %d %d\n",s,a+b,a*200+b*300));}
      |                                                        ^~~~~~
main.c:1:56: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:56: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:56: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){
	int i;
	char str[15];
	int am;
	int pm;
	for(i = 0; i < 9; i++){
		scanf("%s", str);
		scanf("%d", &am);
		scanf("%d", &pm);
		printf("%s %d %d\n", str, am + pm, a * 200 + a * 300);
	}
	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:52: error: 'a' undeclared (first use in this function); did you mean 'am'?
   12 |                 printf("%s %d %d\n", str, am + pm, a * 200 + a * 300);
      |                                                    ^
      |                                                    am
main.c:12:52: note: each undeclared identifier is reported only once for each function it appears in
Language: C

d=400;main(a,b){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | d=400;main(a,b){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | d=400;main(a,b){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:7: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:32: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | d=400;main(a,b){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | d=400;main(a,b){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
main.c:1:32: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | d=400;main(a,b){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                ^~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:66: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | d=400;main(a,b){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                                                  ^~~~~~
main.c:1:66: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:66: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:66: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
    1 | a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |     ^
main.c:1:11: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |           ^~~~
main.c: In function 'main':
main.c:1:33: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |                                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
main.c:1:33: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |                                 ^~~~~
main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a,b,d=400;main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |                                                                   ^~~~~~
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:67: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |     ^
main.c:1:16: error: variably modified 'c' at file scope
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |                ^
main.c:1:21: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |                     ^~~~
main.c: In function 'main':
main.c:1:34: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |                                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
main.c:1:34: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |                                  ^~~~~
main.c:1:34: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:68: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a,b,d=400;char c[d];main(){for(;~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d00\n",c,a+b,a*2+b*3))b=b/d?d:b;}
      |                                                                    ^~~~~~
main.c:1:68: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:68: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:68: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

using System;

class main {
	public static void Main(string[] args) {
		for(int i=0; i<9; i++) {
			var input = Console.ReadLine().Split();
			int a = int.Parse(input[1]);
			int b = int.Parse(input[2]);
			Console.WriteLine("{0} {1} {2}", input[0], a+b, a*200+b*300);
		}
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void Main(string[] args) {
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'string' has not been declared
    4 |         public static void Main(string[] args) {
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void Main(string[] args) {
      |                                          ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void main::Main(int*)':
a.cc:6:25: error: 'var' was not declared in this scope
    6 |                         var input = Console.ReadLine().Split();
      |                         ^~~
a.cc:7:33: error: expected primary-expression before 'int'
    7 |                         int a = int.Parse(input[1]);
      |                                 ^~~
a.cc:8:33: error: expected primary-expression before 'int'
    8 |                         int b = int.Parse(input[2]);
      |                                 ^~~
a.cc:9:25: error: 'Console' was not declared in this scope
    9 |                         Console.WriteLine("{0} {1} {2}", input[0], a+b, a*200+b*300);
      |                         ^~~~~~~
a.cc:9:58: error: 'input' was not declared in this scope; did you mean 'int'?
    9 |                         Console.WriteLine("{0} {1} {2}", input[0], a+b, a*200+b*300);
      |                                                          ^~~~~
      |                                                          int
Language: C++

1a 132 243
1c 324 183
1f 93 199
2b 372 163
2c 229 293
2e 391 206
3a 118 168
3b 263 293
3d 281 102

Compiler output:
a.cc:6:1: error: exponent has no digits
    6 | 2e 391 206
      | ^~
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1a 132 243
      | ^~
Language: C++

#include <iostream>
#include <string>
#define N 9
using namespace std;

int main() {
  string name;
  int a, b;
  while (N--) {
    int am = 200, pm = 300;
    cin >> name >> a >> b;
    int num = a+b;
    int fee = a*am+b*pm;
    cout << name << " " << num << " " << fee << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: lvalue required as decrement operand
    3 | #define N 9
      |           ^
a.cc:9:10: note: in expansion of macro 'N'
    9 |   while (N--) {
      |          ^
Language: C++

using namespace std;

int main(int argc, char const* argv[])
{
	string name;
	int a,b;

	for( int i = 0;i < 9;i++ ){
		cin >> name >> a >> b;
		cout << name << " " << a + b << " " << a * 200 + b * 300 << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string name;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:9:17: error: 'cin' was not declared in this scope
    9 |                 cin >> name >> a >> b;
      |                 ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:24: error: 'name' was not declared in this scope
    9 |                 cin >> name >> a >> b;
      |                        ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << name << " " << a + b << " " << a * 200 + b * 300 << endl;
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:77: error: 'endl' was not declared in this scope
   10 |                 cout << name << " " << a + b << " " << a * 200 + b * 300 << endl;
      |                                                                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <stdio.h>

int main(void) {

  int am,pm;
  char class[20];

  
  while(scanf("%s %d %d",class,&am,&pm)!=EOF) {

    printf("%s %d %d\n",class,am+pm,am*200+pm*300);

  }

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: two or more data types in declaration of 'structured binding'
    6 |   char class[20];
      |   ^~~~
a.cc:6:13: error: empty structured binding declaration
    6 |   char class[20];
      |             ^
a.cc:6:3: error: expected primary-expression before 'char'
    6 |   char class[20];
      |   ^~~~
a.cc:9:26: error: expected primary-expression before 'class'
    9 |   while(scanf("%s %d %d",class,&am,&pm)!=EOF) {
      |                          ^~~~~
a.cc:11:25: error: expected primary-expression before 'class'
   11 |     printf("%s %d %d\n",class,am+pm,am*200+pm*300);
      |                         ^~~~~
Language: C++

#include <stdio.h>

int main(void) {

  int am,pm;
  char class[20];

  int i;

  
  for(i=0;i<9;i++) {

    scanf("%s %d %d",class,&am,&pm);
    
    printf("%s %d %d\n",class,am+pm,am*200+pm*300);
    
  }

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: two or more data types in declaration of 'structured binding'
    6 |   char class[20];
      |   ^~~~
a.cc:6:13: error: empty structured binding declaration
    6 |   char class[20];
      |             ^
a.cc:6:3: error: expected primary-expression before 'char'
    6 |   char class[20];
      |   ^~~~
a.cc:13:22: error: expected primary-expression before 'class'
   13 |     scanf("%s %d %d",class,&am,&pm);
      |                      ^~~~~
a.cc:15:25: error: expected primary-expression before 'class'
   15 |     printf("%s %d %d\n",class,am+pm,am*200+pm*300);
      |                         ^~~~~
Language: C++

include<cstdio>
int a,b,d=400;int main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<cstdio>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:2:37: error: 'd' was not declared in this scope
    2 | int a,b,d=400;int main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                     ^
a.cc:2:56: error: 'c' was not declared in this scope
    2 | int a,b,d=400;int main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                                        ^
a.cc:2:59: error: 'a' was not declared in this scope
    2 | int a,b,d=400;int main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                                           ^
a.cc:2:62: error: 'b' was not declared in this scope
    2 | int a,b,d=400;int main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                                              ^
a.cc:2:41: error: 'scanf' was not declared in this scope
    2 | int a,b,d=400;int main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                         ^~~~~
a.cc:2:75: error: 'printf' was not declared in this scope
    2 | int a,b,d=400;int main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}
      |                                                                           ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<cstdio>
Language: C++

//3ゲーム目の最後の得点をどちらがとったのかが分からないので、このときは2点連続同じ人がとったと仮定する。
#include<iostream>
#include<string.h>
using namespace std;

char s[3][102];

int main(){
	int i,j;
	while( cin >> s[0] ){
		if( s[0][0] == '0' )
			break;
		cin >> s[1] >> s[2];
		
		for( i = 0;i < 3;i++ ){
			int cnt[2] = {0};
			for( j = 1;j < strlen( s[i] );j++ ){
				cnt[ s[i][j]-'A' ]++;
			}
			/*if( i == 2 ){
				cnt[ s[i][j-1]-'A' ]++;
			}*/
			else{
				cnt[ s[i+1][0]-'A' ]++;
			}
			cout << cnt[0] << " " << cnt[1] << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: 'else' without a previous 'if'
   23 |                         else{
      |                         ^~~~
Language: C++

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

int main(){
	strng s;
	while(cin>>s,s!="0"){
		int a,b;
		a=b=0;
		for(int i=1;i<s.size();i++){
			if(s[i]=='A') a++; else b++;
		}
		if(a>b) a++; else b++;
		cout<<a<<" "<<b<<endl;
		
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'strng' was not declared in this scope
    6 |         strng s;
      |         ^~~~~
a.cc:7:20: error: 's' was not declared in this scope
    7 |         while(cin>>s,s!="0"){
      |                    ^
Language: C++

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

int main(){
	char ta[1000]="",tmp[1000];
	int a,b;

	while(true){
	for(int i=0;i<3;i++){
	cin>>ta;
	if(strcmp(ta,"0"==0)break;
	a=b=0;
		for(int j=(i>=1);ta[j]!='\0';j++){
		(ta[j]=='A')?a++:b++;
		}
		(a>b)?a++:b++;
		cout<<" "<<a<<" "<<b<<endl;
	}
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: cannot convert 'bool' to 'const char*'
   13 |         if(strcmp(ta,"0"==0)break;
      |                      ~~~^~~
      |                         |
      |                         bool
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:3:
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
a.cc:14:14: error: expected ')' before ';' token
   14 |         a=b=0;
      |              ^
      |              )
a.cc:13:11: note: to match this '('
   13 |         if(strcmp(ta,"0"==0)break;
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(){string a[3];while(cin>>a[0]){if(a=="0")break;int p[2]={};cin>>a[1]>>a[2];for(int i=0;i<a[0].size();i++)p[a[0][i]=='B']++;for(int i=1;i<a[1].size();i++)p[a[1][i]=='B']++;for(int i=1;i<a[2].size();i++)p[a[2][i]]++;cout<<p[0]<<" "<<p[1]<<endl;}}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:45: error: comparison between distinct pointer types 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} and 'const char*' lacks a cast
    3 | int main(){string a[3];while(cin>>a[0]){if(a=="0")break;int p[2]={};cin>>a[1]>>a[2];for(int i=0;i<a[0].size();i++)p[a[0][i]=='B']++;for(int i=1;i<a[1].size();i++)p[a[1][i]=='B']++;for(int i=1;i<a[2].size();i++)p[a[2][i]]++;cout<<p[0]<<" "<<p[1]<<endl;}}
      |                                            ~^~~~~
Language: C++

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

int main(){
	char serve[3][101];
	char latestServe;
	int APoint[3];
	int BPoint[3];
	bool isDeuce = false;
	while(true){
		cin >> serve[0];
		if(strlen(serve) == 1){
			break;
		}
		cin >> serve[1] >> serve[2];
		APoint = 0;
		BPoint = 0;
		
		for(int i=0;i<3;i++){
			for(int j=1;j<101;j++){
				if(serve[i]=='A'){
					APoint[i]++;
				}else if(serve[i]=='B'){
					BPoint[i]++;
				}else if(serve[i]=='\0'){
					break;
				}
			  latestServe = serve[i];
				if(APoint == BPoint && APoint == 10){
					isDeuce = true;
				}
			}
			if(isDeuce){
				if(latestDuce == 'A'){
					APoint[i]++;
				}else{
					BPoint[i]++;
				}
			}else{
				if(APoint[i] > BPoint[i]){
					APoint[i]++;
				}else{
					BPoint[i]++;
				}
			}
			isDeuce = false;
			cout << APoint[i] << ' ' << BPoint[i] << '\n';
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: cannot convert 'char (*)[101]' to 'const char*'
   13 |                 if(strlen(serve) == 1){
      |                           ^~~~~
      |                           |
      |                           char (*)[101]
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:17:24: error: incompatible types in assignment of 'int' to 'int [3]'
   17 |                 APoint = 0;
      |                 ~~~~~~~^~~
a.cc:18:24: error: incompatible types in assignment of 'int' to 'int [3]'
   18 |                 BPoint = 0;
      |                 ~~~~~~~^~~
a.cc:22:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |                                 if(serve[i]=='A'){
      |                                    ~~~~~~~~^~~~~
a.cc:24:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                                 }else if(serve[i]=='B'){
      |                                          ~~~~~~~~^~~~~
a.cc:26:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |                                 }else if(serve[i]=='\0'){
      |                                          ~~~~~~~~^~~~~~
a.cc:29:48: error: invalid conversion from 'char*' to 'char' [-fpermissive]
   29 |                           latestServe = serve[i];
      |                                         ~~~~~~~^
      |                                                |
      |                                                char*
a.cc:30:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |                                 if(APoint == BPoint && APoint == 10){
      |                                                        ~~~~~~~^~~~~
a.cc:35:36: error: 'latestDuce' was not declared in this scope
   35 |                                 if(latestDuce == 'A'){
      |                                    ^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define r(i,a,n) for(int i=a;i<n;i++)
using namespace std;
int main(){
	while(cin>>s){
		if(s[0]=='0')break;
		int a=0,b=0;
		r(i,0,s.size()){
			if(s[i]=='A')a++;
			else b++;
		}
		cout<<a<<' '<<b<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 's' was not declared in this scope
    5 |         while(cin>>s){
      |                    ^
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main(void)
{
	int i,j,k,a,b,f=0,cnt=0;
	char sabu[101];
	while(1) {
		f=cnt=0;
		for(i=0;i<3;i++) {
			cin>>sabu;
			a=b=0;
			if(sabu[0]=='0') {
				cnt=1;
				break;
			}
			for(j=1;j<strlen(sabu);j++) {
				if(sabu[j]=='A') a++;
				else b++;  
				if(a==b&&a>10) a=b=10;
			}
			if(a>b)cout<<a+1<<" "<<b<<endl;
			else cout<<a<<" "<<b+1<<endl;
		}
		if(cnt==1) break;
	}
}

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

#include<bits\stdc++.h>
using namespace std;
int main(void)
{
	int i,j,k,a,b,f=0,cnt=0;
	char sabu[102];
	while(1) {
		f=cnt=0;
		for(i=0;i<3;i++) {
			cin>>sabu;
			a=b=0;
			if(sabu[0]=='0') {
				cnt=1;
				break;
			}
			for(j=1;j<strlen(sabu);j++) {
				if(sabu[j]=='A') a++;
				else b++;  
				if(a==b&&a>10) a=b=10;
			}
			if(a>b)cout<<a+1<<" "<<b<<endl;
			else cout<<a<<" "<<b+1<<endl;
		}
		if(cnt==1) break;
	}
}

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

#include<bits\stdc++.h>
using namespace std;
int main(void)
{
	int i,j,k,a,b,f=0,cnt=0,s1[3],s2[3];
	char sabu[102];
	while(1) {
		f=cnt=0;
		for(i=0;i<3;i++) {
			cin>>sabu;
			a=b=0;
			if(sabu[0]=='0') {
				cnt=1;
				break;
			}
			for(j=1;j<strlen(sabu);j++) {
				if(sabu[j]=='A') a++;
				else b++;  
				if(a==b&&a>10) a=b=10;
			}
			if(a>b)s1[i]=a+1,s2[i]=b;
			else s1[i]=a,s2[i]=b+1;
		}
		if(cnt==1) break;
		for(i=0;i<3;i++) cout<<s1[i]<<" "<<s2[i]<<endl;
		
	}
	return 0;
}

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

#include<bits\stdc++.h>
using namespace std;
int main(void)
{
	int i,j,k,a,b,f=0,cnt=0,s1[3],s2[3];
	char sabu[102];
	while(1) {
		cnt=0;
		for(i=0;i<3;i++) {
			cin>>sabu;
			a=b=0;
			if(sabu[0]=='0') {
				cnt=1;
				break;
			}
			for(j=1;j<strlen(sabu);j++) {
				if(sabu[j]=='A') a++;
				else b++;  
				if(a==b&&a>10) a=b=10;
			}
			if(a>b)s1[i]=a+1,s2[i]=b;
			else s1[i]=a,s2[i]=b+1;
		}
		if(cnt==1) break;
		for(i=0;i<3;i++) cout<<s1[i]<<" "<<s2[i]<<endl;
	}
	return 0;
}

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

#include <string>
using namespace std;

int main() {
	int a,b;
	string s;
	while(cin>>s,s!="0"){
		a=b=0;
		for(int i=0;i<s.size();i++){
			if(s[i]=='A')a++;
			if(s[i]=='B')b++;
		}
		if(a!=11||b!=11){
			if(a==10){a++;b--;}
			if(b==10){a--;b++;}
		}
		if(a==11&&b==11){
			if(s[s.size()]=='A'){a++;b--;}
			else{a--;b++;}
		}
		cout<<a<<" "<<b<<endl;
			
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'cin' was not declared in this scope
    7 |         while(cin>>s,s!="0"){
      |               ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:21:17: error: 'cout' was not declared in this scope
   21 |                 cout<<a<<" "<<b<<endl;
      |                 ^~~~
a.cc:21:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:34: error: 'endl' was not declared in this scope
   21 |                 cout<<a<<" "<<b<<endl;
      |                                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <string>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: Java

import java.math.BigInteger;
import java.util.Scanner;

public class Mani {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(true){
			BigInteger b = sc.nextBigInteger();
			System.out.println(b.toString(4));
		}
	}
}

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

z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
main.c:1:5: error: return type defaults to 'int' [-Wimplicit-int]
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |     ^~~~
main.c: In function 'main':
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:35: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                                   ^~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:40: error: passing argument 1 of 'puts' from incompatible pointer type [-Wincompatible-pointer-types]
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                                        ^
      |                                        |
      |                                        int *
main.c:1:40: note: expected 'const char *' but argument is of type 'int *'
main.c:1:43: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                                           ^~~~
main.c: At top level:
main.c:1:1: warning: array 'z' assumed to have one element
    1 | z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      | ^
Language: C

itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      | ^~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'itoa' [-Wimplicit-int]
main.c:1:8: warning: data definition has no type or storage class
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |        ^
main.c:1:8: error: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
main.c:1:12: error: return type defaults to 'int' [-Wimplicit-int]
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |            ^~~~
main.c: In function 'main':
main.c:1:24: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
main.c:1:24: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                        ^~~~~
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:42: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                                          ^~~~
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:47: error: passing argument 1 of 'puts' from incompatible pointer type [-Wincompatible-pointer-types]
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |                                               ^
      |                                               |
      |                                               int *
main.c:1:47: note: expected 'const char *' but argument is of type 'int *'
main.c: At top level:
main.c:1:8: warning: array 'z' assumed to have one element
    1 | itoa();z[];main(){for(;scanf("%d",z),~*z;puts(z))itoa(*z,z,4);}
      |        ^
Language: C

#include <stdio.h>

int main(void)
{
	int n;
	int keta;
	__int64 ans;
	
	while (1){
		scanf("%d", &n);
		if (n == -1){
			break;
		}
		
		keta = 1;
		ans = 0;
		while (n != 0){
			ans += keta * (n % 4);
			n /= 4;
			keta *= 10;
		}
		printf("%I64d\n", ans);
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    7 |         __int64 ans;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include <stdio.h>

int main(void)
{
	int n;
	int keta;
	__int64 ans;
	
	while (1){
		scanf("%d", &n);
		if (n == -1){
			break;
		}
		
		keta = 1;
		ans = 0;
		while (n != 0){
			ans += keta * (n % 4);
			n /= 4;
			keta *= 10;
		}
		printf("%I64u\n", ans);
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    7 |         __int64 ans;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include <stdio.h>

int main(void)
{
	int n;
	int keta;
	longlong ans;
	
	while (1){
		scanf("%d", &n);
		if (n == -1){
			break;
		}
		
		keta = 1;
		ans = 0;
		while (n != 0){
			ans += keta * (n % 4);
			n /= 4;
			keta *= 10;
		}
		printf("%I64u\n", ans);
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'longlong'
    7 |         longlong ans;
      |         ^~~~~~~~
Language: C

#include <stdio.h>

int main(void)
{
	int n;
	int keta;
	LONGLONG ans;
	
	while (1){
		scanf("%d", &n);
		if (n == -1){
			break;
		}
		
		keta = 1;
		ans = 0;
		while (n != 0){
			ans += keta * (n % 4);
			n /= 4;
			keta *= 10;
		}
		printf("%lld\n", ans);
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'LONGLONG'
    7 |         LONGLONG ans;
      |         ^~~~~~~~
Language: C++

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

int main(){
	int n,t;
	while(1){
		string a;
		cin >> n;
		if(n==-1){
			return 0;
		}
		if(n==0){
			a += '0';
		}
		for(t=0;n!=0;t++){
			a += '0' + n%4;
			n=n/4;
		}
		reverse(a.begin(), a.end());
		cout << a << endl;

	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: 'reverse' was not declared in this scope
   22 |                 reverse(a.begin(), a.end());
      |                 ^~~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int i,c,w[10000];
	int n,x;
	while(1){
	c=0;
		scanf("%d",&n);
		if(n==-1) break;
			while(1){
				x=n/4;
			if(x<0) break;  
				w[c]=n%4;
				n=x;
				c++;
			}
		printf("%d",n);	
	for(i=c-1;i>=0;i--){
		printf("%d\n",w[i]);
	}
	print("\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   21 |         print("\n");
      |         ^~~~~
      |         printf
Language: C++

#include<math.h>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,x,n) for(int i=x;i<n;i++)
using namespace std;
const int INF=100000000;
int main(){
  int n;
  while(cin>>n,n!=-1){
    vector<int> a;
    if(n<4)cout<<n<<endl;
    else{
      for(int i=0; ;i++){
	int amari=n%4;
	a.push_back(amari);
	int b=n;
	n=n/4;
	if(n<4&&n!=0){
	  a.push_back(n);
	  break;
	}
      }
    }
    for(int i=a.size()-1;i>=0;i--){
      cout<<a[i];
    }
    cout<<endl;
  }
  return 0;
}
     

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |   while(cin>>n,n!=-1){
      |         ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include<queue>
  +++ |+#include <iostream>
    6 | #define rep(i,n) for(int i=0;i<n;i++)
a.cc:14:12: error: 'cout' was not declared in this scope
   14 |     if(n<4)cout<<n<<endl;
      |            ^~~~
a.cc:14:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:21: error: 'endl' was not declared in this scope
   14 |     if(n<4)cout<<n<<endl;
      |                     ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include<queue>
  +++ |+#include <ostream>
    6 | #define rep(i,n) for(int i=0;i<n;i++)
a.cc:28:7: error: 'cout' was not declared in this scope
   28 |       cout<<a[i];
      |       ^~~~
a.cc:28:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:5: error: 'cout' was not declared in this scope
   30 |     cout<<endl;
      |     ^~~~
a.cc:30:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:11: error: 'endl' was not declared in this scope
   30 |     cout<<endl;
      |           ^~~~
a.cc:30:11: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
using namespace std;
int main(){
    int n;
    while(cin>>n&&n!=-1){
        int ans=0;
        for(int i=0;;i++){
            ans+=(n%4*pow(10,i));
            if(n/4==0) break;
            n=n/4;
        }
        cout<<ans<<endl;
    }
    return 0;
}



AOJ 0175 why wrong answer?

Compiler output:
a.cc:24:1: error: 'AOJ' does not name a type
   24 | AOJ 0175 why wrong answer?
      | ^~~
Language: C++

#include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
using namespace std;
int main(){
    int n;
    while(cin>>n){
        if(n=-1)break;
        int ans=0;
        for(int i=0;;i++){
            ans+=(n%4*pow(10,i));
            if(n/4==0) break;
            n=n/4;
        }
        cout<<ans<<endl;
    }
    return 0;
}



AOJ 0175 why wrong answer?

Compiler output:
a.cc:25:1: error: 'AOJ' does not name a type
   25 | AOJ 0175 why wrong answer?
      | ^~~
Language: C++

#include <iostream>
using namespace std;

string four(int n){
	string ret;
	while(n){
		ret += (char)(n%4+'0');
		n/=4;
	}
	reverse(ret.begin(),ret.end());
	return ret;
}

int main(){
	int n;
	while(cin >> n && n != -1){
		cout << four(n) << endl;
	}
}

Compiler output:
a.cc: In function 'std::string four(int)':
a.cc:10:9: error: 'reverse' was not declared in this scope
   10 |         reverse(ret.begin(),ret.end());
      |         ^~~~~~~