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

#include <stdio.h>
#include <stdbool.h>

int main(int argc, char const *argv[])
{
	int i, j, n;
	char mark;
	char marks[4] = {'S', 'H', 'C', 'D'};
	int num;
	bool cards[4][13]={false};

	scanf("%d", &n);
	for (i=0;i<n;i++){
		scanf("%c %d", &mark, &num); 
		for (j=0;j<4;j++) {
			if(mark==marks[j]) {
				cards[j][num-1]=true;
				break;
			}
		}

	}
	for(i=0;i<4;i++) {
		for(j=0;j<13;j++) {		
			if(!cards[i][j]) {
				printf("%c %d\n", marks[i], j+1);
			}
		}
	}
	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <stdbool.h>
^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
	char mark;
	^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
	char marks[4] = {'S', 'H', 'C', 'D'};
	^
Main.java:10: error: class, interface, enum, or record expected
	bool cards[4][13]={false};
	^
Main.java:12: error: class, interface, enum, or record expected
	scanf("%d", &n);
	^
Main.java:13: error: class, interface, enum, or record expected
	for (i=0;i<n;i++){
	^
Main.java:13: error: class, interface, enum, or record expected
	for (i=0;i<n;i++){
	         ^
Main.java:13: error: class, interface, enum, or record expected
	for (i=0;i<n;i++){
	             ^
Main.java:15: error: class, interface, enum, or record expected
		for (j=0;j<4;j++) {
		^
Main.java:15: error: class, interface, enum, or record expected
		for (j=0;j<4;j++) {
		         ^
Main.java:15: error: class, interface, enum, or record expected
		for (j=0;j<4;j++) {
		             ^
Main.java:18: error: class, interface, enum, or record expected
				break;
				^
Main.java:19: error: class, interface, enum, or record expected
			}
			^
Main.java:23: error: class, interface, enum, or record expected
	for(i=0;i<4;i++) {
	        ^
Main.java:23: error: class, interface, enum, or record expected
	for(i=0;i<4;i++) {
	            ^
Main.java:24: error: class, interface, enum, or record expected
		for(j=0;j<13;j++) {		
		        ^
Main.java:24: error: class, interface, enum, or record expected
		for(j=0;j<13;j++) {		
		             ^
Main.java:27: error: class, interface, enum, or record expected
			}
			^
Main.java:31: error: class, interface, enum, or record expected
}
^
21 errors
Language: Java

import java.util.*;

public class FindingMissingCards{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int[] spade = new int[13];
        int[] heart = new int[13];
        int[] club = new int[13];
        int[] diamond = new int[13];

        for(int i=0;i<n;i++){
            String mark = sc.next();
            int number = sc.nextInt();

            switch(mark){
                case "S":
                    spade[number-1]++;
                    break;
                case "H":
                    heart[number-1]++;
                    break;
                case "C":
                    club[number-1]++;
                    break;
                case "D":
                    diamond[number-1]++;
                    break;
            }
        }
        for(int i=0;i<13;i++){
           if(spade[i]==0) {System.out.println("S " + (i+1));}
        }for(int i=0;i<13;i++){
            if(heart[i]==0) {System.out.println("H " + (i+1));}  
        }for(int i=0;i<13;i++){
            if(club[i]==0) {System.out.println("C " + (i+1));}
        }for(int i=0;i<13;i++){
            if(diamond[i]==0) {System.out.println("D " + (i+1));}
        }
    }
}


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

import java.util.Scanner;

public class Aim {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		boolean[][] trumps = new boolean[4][54];
		int missingTrumps = sc.nextInt();
		String character;
		int number;
		int trumpsIndex = 0;

		for (int i = 0; i < missingTrumps; i++) {
			character = sc.next();
			number = sc.nextInt() - 1;
			switch (character) {
			case "S":
				trumpsIndex = 0;
				break;
			case "H":
				trumpsIndex = 1;
				break;
			case "C":
				trumpsIndex = 2;
				break;
			case "D":
				trumpsIndex = 3;
				break;
			}
			trumps[trumpsIndex][number] = true;
		}
		character = "";
		for (int i = 0; i < trumps.length; i++) {
			for (int j = 0; j < trumps[i].length; j++) {
				if (trumps[i][j] == false) {
					switch (i) {
					case 0:
						character = "S";
						break;
					case 1:
						character = "H";
						break;
					case 2:
						character = "C";
						break;
					case 3:
						character = "D";
						break;
					}
					System.out.println(character + " " + (j + 1));
				}
			}
		}
		sc.close();
	}
}


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

import java.util.Scanner;
class Main
{
    public static void main(String args[])
    {
	int n,c;
	String b;
	Scanner scan=new Scanner(System.in);
	n=scan.nextInt();
	int a[][]=new int[4][13];
	for(int i=0;i<n;i++)
	    {
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;
	    }
	for(int i=0;i<4;i++)
	    {
		for(int j=0;j<13;j++)
		    {
			if(a[i]==0 && i==0)
			    {
				System.out.println("S "+j+1);
			    }
			else if(a[i]==0 && i==1)
			    {
				System.out.println("H "+j+1);
			    }
			else if(a[i]==0 && i==2)
			    {
				System.out.println("C "+j+1);
			    }
			if(a[i]==0 && i==3)
			    {
				System.out.println("D "+j+1);
			    }
		    }
	    }
    }
}

Compiler output:
Main.java:24: error: bad operand types for binary operator '=='
			if(a[i]==0 && i==0)
			       ^
  first type:  int[]
  second type: int
Main.java:28: error: bad operand types for binary operator '=='
			else if(a[i]==0 && i==1)
			            ^
  first type:  int[]
  second type: int
Main.java:32: error: bad operand types for binary operator '=='
			else if(a[i]==0 && i==2)
			            ^
  first type:  int[]
  second type: int
Main.java:36: error: bad operand types for binary operator '=='
			if(a[i]==0 && i==3)
			       ^
  first type:  int[]
  second type: int
4 errors
Language: Java



import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args){
		
		String[] tramp = {"S","D","H","C"};
		
		//トランプの各図柄の配列を作る
		int[] S;
		S = new int[14];
		int[] D;
		D = new int[14];
		int[] H;
		H = new int[14];
		int[] C;
		C = new int[14];
		
		Finding_Missing_Card fmc = new Finding_Missing_Card();
		
		//テキスト入力
		Scanner sc = new Scanner(System.in);
		//タローが持っているカードの数
		int taro_card_number = sc.nextInt();
		//ループ処理
		for(int i =0;i <taro_card_number;i++){
			//図柄
			String design = sc.next();
			//数
			int number = sc.nextInt();
			
			//図柄の指定に従い、数字を配列に格納
			if(design.equals("S")){
				//
				fmc.set_property(S,number);
			}
			if(design.equals("H")){
				fmc.set_property(H,number);
			}
			if(design.equals("D")){
				fmc.set_property(D,number);
			}
			if(design.equals("C")){
				fmc.set_property(C,number);
			}
		}
		
		////配列に入力情報が格納されたので、入力情報にないものをピックアップして出力
		
		//スペードから順にないものを出力
		for(int i=0;i < 14;i++){
			
			//ないものをピックアップ
			if(S[i] == 0){
				System.out.println("S "+i);
			}
		}
		
		for(int i=0;i < 14;i++){
			
			//ないものをピックアップ
			if(H[i] == 0){
				System.out.println("H "+i);
			}
		}
		
		for(int i=0;i < 14;i++){
			
			//ないものをピックアップ
			if(C[i] == 0){
				System.out.println("C "+i);
			}
		}
		
		for(int i=0;i < 14;i++){
			
			//ないものをピックアップ
			if(D[i] == 0){
				System.out.println("D "+i);
			}
		}
		
		
	}
	
	//図柄の属性と数を取ってきて、配列に格納する
	public void set_property(int[] design,int number){
		 design [number] = 1;
	}
	
//	//配列に格納しなかったものを表示する
//	public void output_result(int[] design,int i){
//		if(design[i] == 0){
//			System.out.println()
//		}
//	}

}

Compiler output:
Main.java:22: error: cannot find symbol
		Finding_Missing_Card fmc = new Finding_Missing_Card();
		^
  symbol:   class Finding_Missing_Card
  location: class Main
Main.java:22: error: cannot find symbol
		Finding_Missing_Card fmc = new Finding_Missing_Card();
		                               ^
  symbol:   class Finding_Missing_Card
  location: class Main
2 errors
Language: Java

import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		String[] tramp = { "S", "D", "H", "C" };

		// トランプの各図柄の配列を作る
		try {
			int[] S;
			S = new int[12];
			int[] D;
			D = new int[12];
			int[] H;
			H = new int[12];
			int[] C;
			C = new int[12];

			Main fmc = new Main();

			// テキスト入力
			Scanner sc = new Scanner(System.in);
			// タローが持っているカードの数
			int taro_card_number = sc.nextInt();
			// ループ処理
			for (int i = 0; i < taro_card_number; i++) {
				// 図柄
				String design = sc.next();
				// 数
				int number = sc.nextInt();

				// 図柄の指定に従い、数字を配列に格納
				if (design.equals("S")) {
					//
					fmc.set_property(S, number);
				}
				if (design.equals("H")) {
					fmc.set_property(H, number);
				}
				if (design.equals("D")) {
					fmc.set_property(D, number);
				}
				if (design.equals("C")) {
					fmc.set_property(C, number);
				}
			}
			// //配列に入力情報が格納されたので、入力情報にないものをピックアップして出力

			// スペードから順にないものを出力
			for (int i = 0; i < 13; i++) {

				// ないものをピックアップ
				if (S[i] == 0) {
					System.out.println("S " + i + 1);
				}
			}

			for (int i = 0; i < 13; i++) {

				// ないものをピックアップ
				if (H[i] == 0) {
					System.out.println("H " + i + 1);
				}
			}

			for (int i = 0; i < 13; i++) {

				// ないものをピックアップ
				if (C[i] == 0) {
					System.out.println("C " + i + 1);
				}
			}

			for (int i = 0; i < 13; i++) {

				// ないものをピックアップ
				if (D[i] == 0) {
					System.out.println("D " + i + 1);
				}
			}
		} catch (IOException e) {
			System.out.println("");
		}

	}

	// 図柄の属性と数を取ってきて、配列に格納する
	public void set_property(int[] design, int number) {
		design[number] = 1;
	}

	// //配列に格納しなかったものを表示する
	// public void output_result(int[] design,int i){
	// if(design[i] == 0){
	// System.out.println()
	// }
	// }

}

Compiler output:
Main.java:84: error: exception IOException is never thrown in body of corresponding try statement
		} catch (IOException e) {
		  ^
1 error
Language: Java

package Array;

import java.util.Scanner;

public class Finding_Missing2 {

	public static void main(String[] args) {

		//
		int taro_card_number = 0;
		Finding_Missing_Card fmc = new Finding_Missing_Card();

		String[] tramp = { "S", "H", "C", "D" };

		for (String val : tramp) {
			int[] val;
			val = new int[13];
		}

		// トランプの各図柄の配列を作る
		int[] S;
		S = new int[13];
		int[] D;
		D = new int[13];
		int[] H;
		H = new int[13];
		int[] C;
		C = new int[13];
		
		int[] [] array_tramp = {S,H,C,D};

		// テキスト入力
		Scanner sc = new Scanner(System.in);
		// タローが持っているカードの数
		while (sc.hasNext()) {
			taro_card_number = sc.nextInt();
			System.out.print(sc.hasNext());

			// ループ処理(カードの数だけ回す)
			for (int i = 0; i < taro_card_number; i++) {

				// 図柄
				String design = sc.next();
				// 数
				int number = sc.nextInt();

				for (int[] val : array_tramp) {

					// 図柄の指定に従い、数字を配列に格納
					if (design.equals(val)) {
						//
						fmc.set_property(val, number);
					}
				}

			}
			// //配列に入力情報が格納されたので、入力情報にないものをピックアップして出力

			// スペードから順にないものを出力
			for (int i = 0; i < 13; i++) {

				for(int[] val: array_tramp)
				// ないものをピックアップ
				if (val[i] == 0) {
					System.out.println("S" + (i + 1));
				}
			}
			
		}
	}

	// 図柄の属性と数を取ってきて、配列に格納する
	public void set_property(int[] design, int number) {
		design[number - 1] = 1;
	}

}

//それぞれの図柄について扱う
class mark{
	
	//
	int all_number =13;
	
	//カードを作る
	public int[] 
	
	
	
	
}

Compiler output:
Main.java:86: error: <identifier> expected
	public int[] 
	            ^
1 error
Language: Java

import java.util.Scanner;
public class Cards {
	public static void main(String[] args) {
		int[][] card = new int[4][13];
		String mark = "";
		int num =0;
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		for(int i=0;i<n;i++){
			mark= scan.next();
			num = Integer.parseInt(scan.next());
			if(mark.equals("S")) 	 card[0][num-1]=1;
			else if(mark.equals("H"))card[1][num-1]=2;
			else if(mark.equals("C"))card[2][num-1]=3;
			else 					 card[3][num-1]=4;
		}
		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(card[i][j]==0){
					if(i==0) System.out.println("S "+(j+1));
					if(i==1) System.out.println("H "+(j+1));
					if(i==2) System.out.println("C "+(j+1));
					if(i==3) System.out.println("D "+(j+1));
				}
			}
		}
	}
}

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

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

int main(){
  char text;
  int t[4][14],c,d,i,v;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%c",%v);
    scanf("%c %d",&text,&d);
    if(text == 'H'){
}}}


Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected expression before '%' token
    9 |     scanf("%c",%v);
      |                ^
Language: C

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

int main(){
  char text;
  int t[4][14],c,d,i,v;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%c",&v);
    scanf("%c %d",&text,&d);
    if(text == 'S'){
    t[1][d]=1;}
    else{ if(text == 'H'){
    t[2][d]=1;}
    else{ if(text == 'C'){
    t[3][d]=1;}
    else{ if(text == 'D'){
    t[4][d]=1;}}}}}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: expected declaration or statement at end of input
   18 |     t[4][d]=1;}}}}}
      |     ^
Language: C

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

int main(){
  char text;
  int t[4][14],c,d,i,v;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%c",&v);
    scanf("%c %d",&text,&d);
    if(text == 'S'){
    t[1][d]=1;}
    else{ if(text == 'H'){
    t[2][d]=1;}
    else{ if(text == 'C'){
    t[3][d]=1;}
    else{ if(text == 'D'){
    t[4][d]=1;}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: expected declaration or statement at end of input
   18 |     t[4][d]=1;}
      |     ^
main.c:18:5: error: expected declaration or statement at end of input
main.c:18:5: error: expected declaration or statement at end of input
main.c:18:5: error: expected declaration or statement at end of input
main.c:18:5: error: expected declaration or statement at end of input
Language: C

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

int main(){
  char text;
  int t[4][14],c,d,i,v;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%c",&v);
    scanf("%c %d",&text,&d);
    if(text == 'S'){
    t[1][d]=1;}
    else{ if(text == 'H'){
    t[2][d]=1;}
    else{ if(text == 'C'){
    t[3][d]=1;}
    else{ if(text == 'D'){
    t[4][d]=1;}}}}}}}}}}


Compiler output:
main.c:18:21: error: expected identifier or '(' before '}' token
   18 |     t[4][d]=1;}}}}}}}}}}
      |                     ^
main.c:18:22: error: expected identifier or '(' before '}' token
   18 |     t[4][d]=1;}}}}}}}}}}
      |                      ^
main.c:18:23: error: expected identifier or '(' before '}' token
   18 |     t[4][d]=1;}}}}}}}}}}
      |                       ^
main.c:18:24: error: expected identifier or '(' before '}' token
   18 |     t[4][d]=1;}}}}}}}}}}
      |                        ^
Language: C

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

int main(){
  char text;
  int t[4][14],c,d,i,v;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%c",&v);
    scanf("%c %d",&text,&d);
    if(text == 'S'){
    t[1][d]=1;}
    else{ if(text == 'H'){
    t[2][d]=1;}
    else{ if(text == 'C'){
    t[3][d]=1;}
    else{ if(text == 'D'){
    t[4][d]=1;}
}}}}}}}}}


Compiler output:
main.c:19:6: error: expected identifier or '(' before '}' token
   19 | }}}}}}}}}
      |      ^
main.c:19:7: error: expected identifier or '(' before '}' token
   19 | }}}}}}}}}
      |       ^
main.c:19:8: error: expected identifier or '(' before '}' token
   19 | }}}}}}}}}
      |        ^
main.c:19:9: error: expected identifier or '(' before '}' token
   19 | }}}}}}}}}
      |         ^
Language: C

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

int main(){
  char text;
  int t[4][14],c,d,i,v;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%c",&v);
    scanf("%c %d",&text,&d);
    if(text == 'S'){
    t[1][d]=1;}
    else{ if(text == 'H'){
    t[2][d]=1;}
    else{ if(text == 'C'){
    t[3][d]=1;}
    else{ if(text == 'D'){
    t[4][d]=1;}
}}}


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

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

int main(){
  char text;
  int t[4][14],c,d,i,v;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%c",&v);
    scanf("%c %d",&text,&d);
    if(text == 'S'){
    t[1][d]=1;}
    else{ if(text == 'H'){
      t[2][d]=1;}
      else{ if(text == 'C'){
        t[3][d]=1;}
        else{ if(text == 'D'){
          t[4][d]=1;}
        }
      }
    }}


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

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

int main(){
  char text;
  int t[4][14],c,d,i,v;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%c",&v);
    scanf("%c %d",&text,&d);
    if(text == 'S'){
    t[1][d] = 1;}
    else if(text == 'H'){
    t[2][d] = 1;}
    else if(text == 'C'){
    t[3][d] = 1;}
    else if(text == 'D'){
    t[4][d] = 1;}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: expected declaration or statement at end of input
   18 |     t[4][d] = 1;}
      |     ^
main.c:18:5: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
  
int main()
{
  int t[4][14];
  int n, i,j,c;
  char m, d;
  for(i=0; i < 4; i++){
    for(j=0; j < 14; j++){
      t[i][j]=0;
    }
  }
 scanf("%d", &c);
  for(i = 0; i < c; i++){
    scanf("%c", &d);
    scanf("%c %d", &m, &n);
    if(m == 'S'){
      t[0][n] = 1;
    }
    else if(m == 'H'){
      t[1][n] = 1;
    }
    else if(m == 'C'){
      t[2][n] = 1;
    }
    else if(m == 'D'){
      t[3][n] = 1;
    }
  }
  for(j=1; j < 14; j++){
    if(t[0][j] != 1){
      printf("S %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[1][j] != 1){
      printf("H %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[2][j] != 1){
      printf("C %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[3][j] != 1){
      printf("D %d\n", j);
    }
  }
 return 0;
}

Compile Error Logs:

ステータス
Judge: 4/4	C	CPU: 00:00 sec	Memory: 596 KB	Length: 794 B	2016-04-20 21:06
テストケースの判定結果
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1	: Accepted	00:00	596	160	67	testcase_00
Case #2	: Accepted	00:00	592	18	208	testcase_01
Case #3	: Accepted	00:00	556	227	0	testcase_02
Case #4	: Accepted	00:00	596	211	16	testcase_03

< prev |		/		| next >	 		
 
Judge Input #  ( | )		Judge Output #  ( | )



Compiler output:
main.c:56:1: error: unknown type name 'Compile'
   56 | Compile Error Logs:
      | ^~~~~~~
main.c:56:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   56 | Compile Error Logs:
      |               ^~~~
main.c:61:6: error: stray '#' in program
   61 | Case #  Verdict CPU Time        Memory  In      Out     Case Name
      |      ^
main.c:62:6: error: stray '#' in program
   62 | Case #1 : Accepted      00:00   596     160     67      testcase_00
      |      ^
main.c:63:6: error: stray '#' in program
   63 | Case #2 : Accepted      00:00   592     18      208     testcase_01
      |      ^
main.c:64:6: error: stray '#' in program
   64 | Case #3 : Accepted      00:00   556     227     0       testcase_02
      |      ^
main.c:65:6: error: stray '#' in program
   65 | Case #4 : Accepted      00:00   596     211     16      testcase_03
      |      ^
main.c:69:13: error: stray '#' in program
   69 | Judge Input #  ( | )            Judge Output #  ( | )
      |             ^
main.c:69:46: error: stray '#' in program
   69 | Judge Input #  ( | )            Judge Output #  ( | )
      |                                              ^
Language: C

include<stido.h>

int main()
{
  int card[4][13];
  int i,j,a,k,c;
  char b;
  
 for(i=0;i<4;i++){
          for(j=0;j<13;j++){
                   int card[i][j]=0;
                            }
                  }
  
 scanf("%d",&a);

 for(k=0;k<=n;k++){ 
               scanf("%c %d",&b,&c);
               if(b=='S')i=0;
               if(b=='H')i=1;
               if(b=='C')i=2;
               if(b=='D')i=3;
               
               card[i][c-1]=1;
                  }

 for(i=0;i<4;i++){
                  for(j=0;j<13;j++){
                                    if(card[i][j]==0){
                                                      if(b=='S')printf("S %d\n",j-1);
                                                      if(b=='H')printf("H %d\n",j-1);
                                                      if(b=='C')printf("C %d\n",j-1);
                                                      if(b=='D')printf("D %d\n",j-1);
                                                      } 
                                    }
                 }

return 0;
}





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

include<stido.h>

int main()
{
  int card[4][13];
  int i,j,a,k,c;
  char b;
  
 for(i=0;i<4;i++){
          for(j=0;j<13;j++){
                   int card[i][j]=0;
                            }
                  }
  
 scanf("%d",&a);

 for(k=0;k<=n;k++){ 
               scanf("%c %d",&b,&c);
               if(b=='S')i=0;
               if(b=='H')i=1;
               if(b=='C')i=2;
               if(b=='D')i=3;
               
               card[i][c-1]=1;
                  }

 for(i=0;i<4;i++){
                  for(j=0;j<13;j++){
                                    if(card[i][j]==0){
                                                      if(i==0)printf("S %d\n",j-1);
                                                      if(i==1)printf("H %d\n",j-1);
                                                      if(i==2)printf("C %d\n",j-1);
                                                      if(i==3)printf("D %d\n",j-1);
                                                      } 
                                    }
                 }

return 0;
}





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

#include<stido.h>

int main()
{
  int card[4][13];
  int i,j,a,k,c;
  char b;
  
 for(i=0;i<4;i++){
          for(j=0;j<13;j++){
                   int card[i][j]=0;
                            }
                  }
  
 scanf("%d",&a);

 for(k=0;k<=n;k++){ 
               scanf("%c %d",&b,&c);
               if(b=='S')i=0;
               if(b=='H')i=1;
               if(b=='C')i=2;
               if(b=='D')i=3;
               
               card[i][c-1]=1;
                  }

 for(i=0;i<4;i++){
                  for(j=0;j<13;j++){
                                    if(card[i][j]==0){
                                                      if(i==0)printf("S %d\n",j-1);
                                                      if(i==1)printf("H %d\n",j-1);
                                                      if(i==2)printf("C %d\n",j-1);
                                                      if(i==3)printf("D %d\n",j-1);
                                                      } 
                                    }
                 }

return 0;
}





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

#include<studio.h>

int main()
{
  int card[4][13];
  int i,j,a,k,c;
  char b;
  
 for(i=0;i<4;i++){
          for(j=0;j<13;j++){
                   int card[i][j]=0;
                            }
                  }
  
 scanf("%d",&a);

 for(k=0;k<=n;k++){ 
               scanf("%c %d",&b,&c);
               if(b=='S')i=0;
               if(b=='H')i=1;
               if(b=='C')i=2;
               if(b=='D')i=3;
               
               card[i][c-1]=1;
                  }

 for(i=0;i<4;i++){
                  for(j=0;j<13;j++){
                                    if(card[i][j]==0){
                                                      if(i==0)printf("S %d\n",j-1);
                                                      if(i==1)printf("H %d\n",j-1);
                                                      if(i==2)printf("C %d\n",j-1);
                                                      if(i==3)printf("D %d\n",j-1);
                                                      } 
                                    }
                 }

return 0;
}





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

#include<stdio.h>

int main()
{
  int card[4][13];
  int i,j,a,k,c;
  char b;
  
 for(i=0;i<4;i++){
          for(j=0;j<13;j++){
                   int card[i][j]=0;
                            }
                  }
  
 scanf("%d",&a);

 for(k=0;k<=n;k++){ 
               scanf("%c %d",&b,&c);
               if(b=='S')i=0;
               if(b=='H')i=1;
               if(b=='C')i=2;
               if(b=='D')i=3;
               
               card[i][c-1]=1;
                  }

 for(i=0;i<4;i++){
                  for(j=0;j<13;j++){
                                    if(card[i][j]==0){
                                                      if(i==0)printf("S %d\n",j-1);
                                                      if(i==1)printf("H %d\n",j-1);
                                                      if(i==2)printf("C %d\n",j-1);
                                                      if(i==3)printf("D %d\n",j-1);
                                                      } 
                                    }
                 }

return 0;
}





Compiler output:
main.c: In function 'main':
main.c:11:35: error: variable-sized object may not be initialized except with an empty initializer
   11 |                    int card[i][j]=0;
      |                                   ^
main.c:17:13: error: 'n' undeclared (first use in this function)
   17 |  for(k=0;k<=n;k++){
      |             ^
main.c:17:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main()
{
  int card[4][13];
  int i,j,a,k,c;
  char b;
  
 for(i=0;i<4;i++){
          for(j=0;j<13;j++){
                   int card[i][j]=0;
                            }
                  }
  
 scanf("%d",&a);

 for(k=0;k<=a;k++){ 
               scanf("%c %d",&b,&c);
               if(b=='S')i=0;
               if(b=='H')i=1;
               if(b=='C')i=2;
               if(b=='D')i=3;
               
               card[i][c-1]=1;
                  }

 for(i=0;i<4;i++){
                  for(j=0;j<13;j++){
                                    if(card[i][j]==0){
                                                      if(i==0)printf("S %d\n",j-1);
                                                      if(i==1)printf("H %d\n",j-1);
                                                      if(i==2)printf("C %d\n",j-1);
                                                      if(i==3)printf("D %d\n",j-1);
                                                      } 
                                    }
                 }

return 0;
}





Compiler output:
main.c: In function 'main':
main.c:11:35: error: variable-sized object may not be initialized except with an empty initializer
   11 |                    int card[i][j]=0;
      |                                   ^
Language: C

#include<stdio.h>

int main()
{
  int card[4][13];
  int i,j,n,k,c,a;
  char b;
  
 for(i=0;i<4;i++){
          for(j=0;j<13;j++){
                   card[i][j]=0;
                            }
                  }
  
 scanf("%d",&n);

 for(k=0;k<=n;k++){ 
               scand("%d",&a);
               scanf("%c %d",&b,&c);
               if(b=='S')i=0;
               if(b=='H')i=1;
               if(b=='C')i=2;
               if(b=='D')i=3;
               
               card[i][c-1]=1;
                  }

 for(i=0;i<4;i++){
                  for(j=0;j<13;j++){
                                    if(card[i][j]==0){
                                                      if(i==0)printf("S %d\n",j+1);
                                                      if(i==1)printf("H %d\n",j+1);
                                                      if(i==2)printf("C %d\n",j+1);
                                                      if(i==3)printf("D %d\n",j+1);
                                                      } 
                                    }
                 }

return 0;
}





Compiler output:
main.c: In function 'main':
main.c:18:16: error: implicit declaration of function 'scand'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   18 |                scand("%d",&a);
      |                ^~~~~
      |                scanf
Language: C

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

int main()
{
	int i, n, id, rank;
	short card[4][14];
	char buf[100], *p;
	char ids[4] = { 'S', 'H', 'C', 'D' };

	for (id = 0; id < 4; id++) {
		for (rank = 1; rank <= 13; rank++) card[id][rank] = 1;
	}
	gets(buf);
	n = atoi(buf);
	for (i = 0; i < n; i++) {
		gets(buf);
		p = buf;
		while (isspace(*p)) p++;
		switch (*p) {
		case 'S': id = 0; break;
		case 'H': id = 1; break;
		case 'C': id = 2; break;
		case 'D': id = 3; break;
		}
		rank = atoi(++p);
//		printf("id=%d, rank=%d\n", id, rank);
		card[id][rank] = 0;
	}
	for (id = 0; id < 4; id++) {
		for (rank = 1; rank <= 13; rank++) {
			if (card[id][rank]) printf("%c %d\n", ids[id], rank);
		}
	}
	return 0;
}


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

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

int main()
{
	int i, n, id, rank;
	short card[4][14];
	char buf[100], *p;
	char ids[4] = { 'S', 'H', 'C', 'D' };

	for (id = 0; id < 4; id++) {
		for (rank = 1; rank <= 13; rank++) card[id][rank] = 1;
	}
	gets(buf);
	n = atoi(buf);
	for (i = 0; i < n; i++) {
		gets(buf);
		p = buf;
		while (isspace(*p)) p++;
		switch (*p) {
		case 'S': id = 0; break;
		case 'H': id = 1; break;
		case 'C': id = 2; break;
		case 'D': id = 3; break;
		}
		rank = atoi(++p);
//		printf("id=%d, rank=%d\n", id, rank);
		card[id][rank] = 0;
	}
	for (id = 0; id < 4; id++) {
		for (rank = 1; rank <= 13; rank++) {
			if (card[id][rank]) printf("%c %d\n", ids[id], rank);
		}
	}
	return 0;
}



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

#include<stdio.h>

int suitnum(char);
char rsuitnum(int);

int main(){
  int n,i,j,c[4][13]={};
  int rank;
  char s;

  scanf("%d", &n);
  for(i=0;i<n;i++){
    scanf("%c %d",&s,&rank);
    c[suitnum(s)][rank-1] = 1;
  }
  for(i=0;i<4;i++){
    for(j=0;j<13;j++){
      if (c[i][j]==0){
        print("%c %d\n",rsuitnum(i),j);
      }
    }
  }

  return 0;
}

int suitnum(char suit){
  if (suit=='S'){
    return 0;
  }
  else if (suit=='H'){
    return 1;
  }
  else if (suit=='C'){
    return 2;
  }
  else if (suit=='D'){
    return 3;
  }
}

char rsuitnum(int num){
  if (num==0){
    return 'S';
  }
  else if (num==1){
    return 'H';
  }
  else if (num==2){
    return 'C';
  }
  else if (num==3){
    return 'D';
  }
}


Compiler output:
main.c: In function 'main':
main.c:19:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |         print("%c %d\n",rsuitnum(i),j);
      |         ^~~~~
      |         printf
Language: C

#include <stdio.h> #include <stdbool.h> int main(){ int i, j, x; int num; char ch; char marks[4]={'S', 'H', 'C', 'D'};   int cards[4][13]={false};    scanf("%d ", &x);    for(i=0;i<x;i++){        scanf("%c %d ", &ch, &num);        for(j=0;j<4;j++){            if(ch==marks[j]){                cards[j][num-1]=true;                break;            }        }    }    for(i=0;i<4;i++){        for(j=0;j<13;j++){            if(!cards[i][j]){                printf("%c %d\n", marks[i], j+1);            } }    }    return 0;


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> #include <stdbool.h> int main(){ int i, j, x; int num; char ch; char marks[4]={'S', 'H', 'C', 'D'};   int cards[4][13]={false};    scanf("%d ", &x);    for(i=0;i<x;i++){        scanf("%c %d ", &ch, &num);        for(j=0;j<4;j++){            if(ch==marks[j]){                cards[j][num-1]=true;                break;            }        }    }    for(i=0;i<4;i++){        for(j=0;j<13;j++){            if(!cards[i][j]){                printf("%c %d\n", marks[i], j+1);            } }    }    return 0;
      |                    ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

void array_reset( int*, int );
int main(){
    int n;
    char mark;
    int rank;
    int spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c %d", &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default;
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:33:16: error: expected ':' before ';' token
   33 |         default;
      |                ^
      |                :
main.c:55:1: error: expected declaration or statement at end of input
   55 | }
      | ^
Language: C

#include <stdio.h>

void array_reset( int*, int );
int main(){
    int n;
    char mark;
    int rank;
    int spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c %d", &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default:;
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}


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

#include <stdio.h>

void array_reset( int*, int );
int main(){
    int n;
    char mark;
    int rank;
    int spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c %d", &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default:;
        }
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}


Compiler output:
/usr/bin/ld: /tmp/ccQN66um.o: in function `main':
main.c:(.text+0x18): undefined reference to `array_reset'
/usr/bin/ld: main.c:(.text+0x2c): undefined reference to `array_reset'
/usr/bin/ld: main.c:(.text+0x40): undefined reference to `array_reset'
/usr/bin/ld: main.c:(.text+0x54): undefined reference to `array_reset'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

void array_reset( int*, int );
int main(){
    int n;
    char mark;
    int rank;
    _BOOL spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c %d", &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default:;
        }
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}

void array_reset( int* array, int size )
{
    int i;
    for( i = 0; i < size; i++ ){
        *( array + i ) = 0;
    }
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: unknown type name '_BOOL'
    8 |     _BOOL spade[13], hert[13], crab[13], dia[13];
      |     ^~~~~
Language: C

#include <stdio.h>
#include <stdbool.H>
void array_reset( int*, int );
int main(){
    int n;
    char mark;
    int rank;
    bool spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c %d", &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default:;
        }
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}

void array_reset( int* array, int size )
{
    int i;
    for( i = 0; i < size; i++ ){
        *( array + i ) = 0;
    }
}


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

#include <stdio.h>

void array_reset( int*, int );
int main(){
    int n;
    char mark;
    int rank;
    bool spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c %d", &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default:;
        }
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}

void array_reset( int* array, int size )
{
    int i;
    for( i = 0; i < size; i++ ){
        *( array + i ) = 0;
    }
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: unknown type name 'bool'
    8 |     bool spade[13], hert[13], crab[13], dia[13];
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 |
Language: C

#include <stdio.h>
int main(void){
    char a,c;
    int n,b,i,j,k;
    int cards[4][13];
    for(i=0;i<4;i++){
        for(j=0;j<13;j++) cards[i][j]=0;
    }
     
    scanf("%d",&n);
    for(k=1;k<=n;k++){
        scanf("%c",&c);
        scanf("%c %d",&a,&b);
        if(a=='S') i=0;
        if(a=='H') i=1;
        if(a=='C') i=2;
        if(a=='D') i=3;
         
        cards[i][b-1]=1;
    }
     
    for(i=0;i<4;i++){
        for(j=0;j<13;j++){
            if(cards[i][j]==0){
               if(i==0) printf("S %d\n",j+1);
               if(i==1) printf("H %d\n",j+1);
               if(i==2) printf("C %d\n",j+1);
               if(i==3) printf("D %d\n",j+1);
                
            }
        }
    }
    return 0;
}

Compile Error Logs:

ステータス
Judge: 4/4	C	CPU: 00:00 sec	Memory: 2044 KB	Length: 727 B	2018-05-15 21:13
テストケースの判定結果
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1	: Accepted	00:00	2044	160	67	testcase_00
Case #2	: Accepted	00:00	2032	18	208	testcase_01
Case #3	: Accepted	00:00	2032	227	0	testcase_02
Case #4	: Accepted	00:00	2032	211	16	testcase_03

< prev |		/		| next >	 		
 
Judge Input #  ( | )		Judge Output #  ( | )



Compiler output:
main.c:36:1: error: unknown type name 'Compile'
   36 | Compile Error Logs:
      | ^~~~~~~
main.c:36:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   36 | Compile Error Logs:
      |               ^~~~
main.c:41:6: error: stray '#' in program
   41 | Case #  Verdict CPU Time        Memory  In      Out     Case Name
      |      ^
main.c:42:6: error: stray '#' in program
   42 | Case #1 : Accepted      00:00   2044    160     67      testcase_00
      |      ^
main.c:43:6: error: stray '#' in program
   43 | Case #2 : Accepted      00:00   2032    18      208     testcase_01
      |      ^
main.c:44:6: error: stray '#' in program
   44 | Case #3 : Accepted      00:00   2032    227     0       testcase_02
      |      ^
main.c:45:6: error: stray '#' in program
   45 | Case #4 : Accepted      00:00   2032    211     16      testcase_03
      |      ^
main.c:49:13: error: stray '#' in program
   49 | Judge Input #  ( | )            Judge Output #  ( | )
      |             ^
main.c:49:46: error: stray '#' in program
   49 | Judge Input #  ( | )            Judge Output #  ( | )
      |                                              ^
Language: C

#include<stdio.h>
#include<windows.h>
int main()
{
	int n, card[4][13], number, s;
	char code[1000];

	for(int i=0;i<=3;i++){
		for(int k=0;k<=12;k++){
			card[i][k]=0;
		}
	}

	scanf("%d",&n);

	for(int j=1;j<=n;j++){
		scanf("%s %d",&code,&number);
		if(strcmp(code,"A")==0){
			card[0][number-1]=1;
		}else if(strcmp(code,"H")==0){
			card[1][number-1]=1;
		}else if(strcmp(code,"C")==0){
			card[2][number-1]=1;
		}else if(strcmp(code,"D")==0){
			card[3][number-1]=1;
		}
	}

	for(s=0;s<=12;s++){
		if(card[0][s]==0){
			printf("A %d\n",s+1);
		}
	}

	for(s=0;s<=12;s++){
		if(card[1][s]==0){
			printf("H %d\n",s+1);
		}
	}

	for(s=0;s<=12;s++){
		if(card[2][s]==0){
			printf("C %d\n",s+1);
		}
	}

	for(s=0;s<=12;s++){
		if(card[3][s]==0){
			printf("D %d\n",s+1);
		}
	}
}



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

#include <stdio.h>
int main (){
int x[4][14]=0,a,b,c,d,e;
char y;
scanf ("%d",&a);
for (b=0;b<a;b++){
scanf ("%c %d",&c,&d);
if (c=='S'){
x[1][d]=1;}
else if (c=='H'){
x[2][d]=1;}
else if (c=='C'){
x[3][d]=1;}
else if (c=='D'){
x[4][d]=1;}
for (e=1;e<14;e++){
if (x[1][d]){printf("S %d",e)
}
}
for (e=1;e<14;e++){
if (x[2][d]){printf("H %d",e)
}
}
for (e=1;e<14;e++){
if (x[3][d]){printf("C %d",e)
}
}
for (e=1;e<14;e++){
if (x[4][d]){printf("D %d",e)
}
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:14: error: invalid initializer
    3 | int x[4][14]=0,a,b,c,d,e;
      |              ^
main.c:17:30: error: expected ';' before '}' token
   17 | if (x[1][d]){printf("S %d",e)
      |                              ^
      |                              ;
   18 | }
      | ~                             
main.c:21:30: error: expected ';' before '}' token
   21 | if (x[2][d]){printf("H %d",e)
      |                              ^
      |                              ;
   22 | }
      | ~                             
main.c:25:30: error: expected ';' before '}' token
   25 | if (x[3][d]){printf("C %d",e)
      |                              ^
      |                              ;
   26 | }
      | ~                             
main.c:29:30: error: expected ';' before '}' token
   29 | if (x[4][d]){printf("D %d",e)
      |                              ^
      |                              ;
   30 | }
      | ~                             
main.c:33:1: error: expected declaration or statement at end of input
   33 | }
      | ^