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

import java.util.Scanner;

public class Ex02PrintTestCases {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int countDeta;
		int[] deta = new int[10000];
		for (countDeta = 0; countDeta < 10000; countDeta++) {
			int x = sc.nextInt();
			if (x == 0) {
				break;
			}
			deta[countDeta] = x;
		}
		for (int i = 0; i < countDeta; i++) {
			System.out.println("Case" + " " + (i + 1) + ": " + deta[i]);
		}
		sc.close();
	}
}


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

import java.util.Scanner;

public class ITP1_3_B {

	public static void main(String[] args) {

		for (int i = 1; i < 10000; i++) {
			Scanner sc = new Scanner(System.in);
			String line = sc.nextLine();
			int n = Integer.parseInt(line);
			if (n == 0) {
				break;
			}
			System.out.println("Case " + i + ": " + n);
		}

	}


}



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

import java.util.Scanner;
public class gg {
	public static void main(String[] args){
		Scanner  scan=new Scanner(System.in);
		int x=scan.nextInt();
		
		for(int i=1; i<8; i++){
			 x=scan.nextInt();
			 if(!(x==0))
				 break;
			System.out.println("Case "+ i+": "+x);
		}
		
	}

}



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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int i = 1;
        while(n == 0) {
        	System.out.println("Case" + i + ":" + " " + n);
        	i ++;
        	n = sc.nextInt();
        }
    }
}


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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int i = 1;
        while(n == 0) {
        	System.out.println("Case" + " " + i + ":" + " " + n);
        	i ++;
        	n = sc.nextInt();
        }
    }
}


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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int i = 1;
        do {
        	System.out.println("Case" + " " + i + ":" + " " + n);
        	i ++;
        	n = sc.nextInt();
        }while(n == 0);
    }
}


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

import java.util.Scanner;

class Main{
public static void main(String[] args){

	
	 int cnt=1;
	String  text1= "Case";
	String  text2=":";
 
	Scanner s = new Scanner(System.in);
while(s.hasNext())
	{
		int a=s.nextInt();
		if(a==0){break;}
		System.out.println(text1+cnt\n+ text2+a);
		cnt=cnt++;
		
		}
		
	}
	
}


Compiler output:
Main.java:16: error: illegal character: '\'
		System.out.println(text1+cnt\n+ text2+a);
		                            ^
Main.java:16: error: not a statement
		System.out.println(text1+cnt\n+ text2+a);
		                                     ^
Main.java:16: error: ';' expected
		System.out.println(text1+cnt\n+ text2+a);
		                                       ^
3 errors
Language: Java


class Main{
public static void main(String[] args){

	
	  int cnt=1;
	String  text1= "Case";
	String  text2=":";
 
	Scanner s = new Scanner(System.in);
while(s.hasNext())
	{
		int a=s.nextInt();
		if(a==0){break;}
		System.out.println(text1+cnt + text2+a);
		cnt++;
		
		}
		
	}
	
}


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

import java.util.Scanner;

class Main{
public static void main(String[] args){

	
	  int cnt=1;
	String  text1= "Case";
	String  text2=":";
 
	Scanner s = new Scanner(System.in);
while(s.hasNext())
	{
		int a=s.nextInt();
		if(a==0){break;}
		System.out.println(text1+cnt + text2+a);
		cnt++;
		
		}
		
	}


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

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


public class Main {
 private BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1);
 private ArrayList<Integer> case = new ArrayList<Integer>();

 private String inputData = null;

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

 public void start() {
  while (true) {
   try {
    this.inputData = reader.readLine();
   } catch (IOException e) {
    e.printStackTrace();
   }
   if (this.inputData.equals("0")) {
    break;
   }
   
   this.case.add(Integer.parseInt(
   this.inputData);

  }

   for (int i = 0; i < this.case.length; i++) {
    System.out.println("Case " + i + ": " + this.case.get(i));
   }

 }

}

Compiler output:
Main.java:9: error: <identifier> expected
 private ArrayList<Integer> case = new ArrayList<Integer>();
                           ^
Main.java:9: error: <identifier> expected
 private ArrayList<Integer> case = new ArrayList<Integer>();
                                                         ^
Main.java:28: error: <identifier> expected
   this.case.add(Integer.parseInt(
        ^
Main.java:28: error: not a statement
   this.case.add(Integer.parseInt(
       ^
Main.java:28: error: illegal start of expression
   this.case.add(Integer.parseInt(
            ^
Main.java:29: error: ')' or ',' expected
   this.inputData);
                  ^
Main.java:33: error: <identifier> expected
   for (int i = 0; i < this.case.length; i++) {
                            ^
Main.java:33: error: illegal start of expression
   for (int i = 0; i < this.case.length; i++) {
                                ^
Main.java:33: error: not a statement
   for (int i = 0; i < this.case.length; i++) {
                                 ^
Main.java:33: error: ';' expected
   for (int i = 0; i < this.case.length; i++) {
                                            ^
Main.java:34: error: <identifier> expected
    System.out.println("Case " + i + ": " + this.case.get(i));
                                                 ^
Main.java:34: error: illegal start of expression
    System.out.println("Case " + i + ": " + this.case.get(i));
                                                     ^
Main.java:34: error: ';' expected
    System.out.println("Case " + i + ": " + this.case.get(i));
                                                            ^
13 errors
Language: Java

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


public class Main {
 private BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1);
 private ArrayList<Integer> cases = new ArrayList<Integer>();

 private String inputData = null;

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

 public void start() {
  while (true) {
   try {
    this.inputData = reader.readLine();
   } catch (IOException e) {
    e.printStackTrace();
   }
   if (this.inputData.equals("0")) {
    break;
   }
   
   this.cases.add(Integer.parseInt(
   this.inputData);

  }

   for (int i = 0; i < this.cases.length; i++) {
    System.out.println("Case " + i + ": " + this.cases.get(i));
   }

 }

}

Compiler output:
Main.java:29: error: ')' or ',' expected
   this.inputData);
                  ^
1 error
Language: Java

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


public class Main {
 private BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1);
 private ArrayList<Integer> cases = new ArrayList<Integer>();

 private String inputData = null;

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

 public void start() {
  while (true) {
   try {
    this.inputData = reader.readLine();
   } catch (IOException e) {
    e.printStackTrace();
   }
   if (this.inputData.equals("0")) {
    break;
   }
   
   this.cases.add(Integer.parseInt(
   this.inputData));

  }

   for (int i = 0; i < this.cases.length; i++) {
    System.out.println("Case " + i + ": " + this.cases.get(i));
   }

 }

}

Compiler output:
Main.java:33: error: cannot find symbol
   for (int i = 0; i < this.cases.length; i++) {
                                 ^
  symbol:   variable length
  location: variable cases of type ArrayList<Integer>
1 error
Language: Java

import java.util.Scaner;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		for(int i = 0; ; i++){
			int a = scan.nextInt();
			if(a == 0) break;
			System.out.printf("Case %d: %d\n", i, a);
		}
	}
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.Scaner;
                ^
  symbol:   class Scaner
  location: package java.util
Main.java:4: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
 
public class exe7_ans{
    public static void main(String[] args){
        int x,t=1;
        Scanner sc = new Scanner(System.in);
        while(true){
            x=sc.nextInt();
            if(x == 0) break;
            System.out.println("Case "+ t++ +": "+x);
        }
    }
}

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

import java.util.Scanner;
  
class Main{
          public static void main(String [] args){
                      Scanner scan = new Scanner(System.in);
                      int i = 1;
                      while(scan.hasNext()){
                          int x = Integer.parseInt(scan.next());
                          System.out.println("Case " + i + ": " + x);
                          
                          if(x == 0){break;
                          }
　　　　　　　　　　　i++;
                      }
          }
}

Compiler output:
Main.java:13: error: illegal character: '\u3000'
???????????i++;
^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
 ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
  ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
   ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
    ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
     ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
      ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
       ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
        ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
         ^
Main.java:13: error: illegal character: '\u3000'
???????????i++;
          ^
11 errors
Language: Java

public class Main{
	
	public static void main(String[] args){

		//初期処理
		Scanner sc = null;
//		ArrayList array = new ArrayList();
		int number = 0;

		//do~while処理
		do{
			//テキスト入力クラス
			sc = new Scanner(System.in);
			
			//現在の入力値
			number = sc.nextInt();
			//配列に追加
//			array.add(number);

		//入力結果が0になるまで入力
		}while(number != 0);
		
		//最後の配列を出力しないので、ループは配列の数より１回少ない
//		for(int i =1;i < array.size();i++){
//			//配列に格納されている結果を出力
//			System.out.println("Case "+i+": "+array.get(i-1));
//		}
	}
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Scanner;

public class Main{
	
	public static void main(String[] args){

		//初期処理
		//Scanner sc = null;
		BufferedReader stdReader =
		        new BufferedReader(new InputStreamReader(System.in));
		ArrayList array = new ArrayList();
		int number = 0;
		String str ="";
		int a =0;

		//do~while処理
		do{
			//テキスト入力クラス
			//sc = new Scanner(System.in);
				
			//現在の入力値
			//number = sc.nextInt();
			str = stdReader.readLine();
			a = Integer.parseInt(str);
			//配列に追加
			//array.add(number);

		//入力結果が0になるまで入力
		}while(a != 0);
//		
//		//最後の配列を出力しないので、ループは配列の数より１回少ない
////		for(int i =1;i < array.size();i++){
////			//配列に格納されている結果を出力
////			System.out.println("Case "+i+": "+array.get(i-1));
////		}
	}
}

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

import java.util.ArrayList;

import java.util.Scanner;

public class Print_Test_Cases{
	
	public static void main(String[] args){

		//初期処理
		Scanner sc = null;
		ArrayList<Integer> array = new ArrayList<Integer>();
		int number = 0;
		
		//テキスト入力クラス
		sc = new Scanner(System.in);

		//do~while処理
		do{
			
			//現在の入力値
			number = sc.nextInt();
			//配列に追加
			array.add(number);

		//入力結果が0になるまで入力
		}while(number != 0);
		
		//最後の配列を出力しないので、ループは配列の数より１回少ない
		for(int i =1;i < array.size();i++){
			//配列に格納されている結果を出力
			System.out.println("Case "+i+": "+array.get(i-1));
		}
	}
}

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

import java.util.Scanner;
public class dateset {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str=scan.next();
		for(int i=1;!"0".equals(str);i++){
			System.out.println("Case "+i+": "+str);
			str = scan.next();
		}
		scan.close();
	}
}

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

import java.io.*;

public class Main3_2 {
	public static void main(String[] args) throws IOException
	{
		int x = -1;
		int a[] = new int[100];
		String s;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
		int i = 0;
		while(x != 0) {
			s = br.readLine();
			x = Integer.parseInt(s);
			a[i] = x;
			i++;
		}
		
		for(i = 0; a[i] != 0; i++) {
			System.out.println("Case "+i+": "+a[i]);
		}
	}
}

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

#include<stdio.h>
int main(void)
{
	int no,num,i;
	int 
	for(i=0;i<num;i++){
		printf("Case %d: ",i+1);
		do{
			scanf("%d",&num[i])
		}while(num[i]==0)
		printf("%d\n",num[i]);
	}
return 0
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected identifier or '(' before 'for'
    6 |         for(i=0;i<num;i++){
      |         ^~~
main.c:6:26: error: expected ';' before ')' token
    6 |         for(i=0;i<num;i++){
      |                          ^
      |                          ;
main.c:6:26: error: expected statement before ')' token
main.c:9:40: error: subscripted value is neither array nor pointer nor vector
    9 |                         scanf("%d",&num[i])
      |                                        ^
main.c:9:44: error: expected ';' before '}' token
    9 |                         scanf("%d",&num[i])
      |                                            ^
      |                                            ;
   10 |                 }while(num[i]==0)
      |                 ~                           
main.c:10:27: error: subscripted value is neither array nor pointer nor vector
   10 |                 }while(num[i]==0)
      |                           ^
main.c:10:34: error: expected ';' before 'printf'
   10 |                 }while(num[i]==0)
      |                                  ^
      |                                  ;
   11 |                 printf("%d\n",num[i]);
      |                 ~~~~~~            
main.c:13:9: error: expected ';' before '}' token
   13 | return 0
      |         ^
      |         ;
   14 | }
      | ~
Language: C

#include<stdio.h>

int main()
{
int i = 0;
int x;

while ( i < x) {
printf("Case %d: " ++i);
scanf("%d", &x);
}

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:20: error: lvalue required as increment operand
    9 | printf("Case %d: " ++i);
      |                    ^~
main.c:9:22: error: expected ')' before 'i'
    9 | printf("Case %d: " ++i);
      |       ~              ^
      |                      )
Language: C

#include <stdio.h>

int main() {
    int n, i;
    
    for(i = 1; ; i++) {
        scanf("%d", &n);
        (n == 0) ? break : printf("Case %d: %d\n", i, n);
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:20: error: expected expression before 'break'
    8 |         (n == 0) ? break : printf("Case %d: %d\n", i, n);
      |                    ^~~~~
Language: C

#include <stdio.h>

int main() {
    int n, i;
    
    for(i = 1; ; i++) {
        scanf("%d", &n);
        (n != 0) ? printf("Case %d: %d\n", i, n) : break;
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:52: error: expected expression before 'break'
    8 |         (n != 0) ? printf("Case %d: %d\n", i, n) : break;
      |                                                    ^~~~~
Language: C

#include<stdio.h>

int main(void)
{
  int x,i=0;
  while((i<10000)||(x!=0))

  {

     scanf("%d",&x);

     printf("Case : %d",x\n);
     i++;
  }


  return 0;

}



Compiler output:
main.c: In function 'main':
main.c:12:26: error: stray '\' in program
   12 |      printf("Case : %d",x\n);
      |                          ^
main.c:12:26: error: expected ')' before 'n'
   12 |      printf("Case : %d",x\n);
      |            ~             ^~
      |                          )
Language: C

#include<stdio.h>
int main(){
    
    int date[10000],i=0,c=1;

    while(1){
        
        if(i>=10000)break;
            scanf("%d",&date[i]);

        if(date[i]==0)break;
            i++;
    }
            i=0;
        
        while(1){
            
            if(date[i]==0)break;
            if(date[i]!=0){
                printf("Case %d:%d\n",c,date[i]);
                c++;
                i++;
            }
        }
    return 0; 
    }
  }



Compiler output:
main.c:27:3: error: expected identifier or '(' before '}' token
   27 |   }
      |   ^
Language: C

#include <stdio.h>
int man(void)
{
  int x;
  int count=1;
  int flag=0;
  while(flag=0){
    scanf("%d",&x);
    if(x==0){
      flag=1;
    }
    count++;
    printf("Case %d: %d/n",count,x);
  }
  return 0;
}


Compiler output:
/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>
int main(void)
{
  int x;
  int count=1;
  flag=1;
  while(flag=0){
    scanf("%d",&x);
    if((x==0)&&(x<=10000)){
      break;
    }
    printf("Case %d: %d\n",count,x);
    count++;
  }
  return 0;
}


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

#include <stdio.h>
int main(void)
{
  int x;
  int count=1;
  flag=1;
  while(flag=1){
    scanf("%d",&x);
    if((x==0)&&(x<=10000)){
      break;
    }
    printf("Case %d: %d\n",count,x);
    count++;
  }
  return 0;
}


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

#include<stdio.h>
int main(void)
{
 int i.j;
 int num[10000];
 for(i=0;num[i]==0;i++)
 {
  scanf("%d",&num[i])
 }

 for(j=0;j<i;j++)
 {
  printf("%d",num[j]);
 }

}


Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 |  int i.j;
      |       ^
main.c:4:7: error: expected expression before '.' token
main.c:6:6: error: 'i' undeclared (first use in this function)
    6 |  for(i=0;num[i]==0;i++)
      |      ^
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:22: error: expected ';' before '}' token
    8 |   scanf("%d",&num[i])
      |                      ^
      |                      ;
    9 |  }
      |  ~                    
main.c:11:6: error: 'j' undeclared (first use in this function)
   11 |  for(j=0;j<i;j++)
      |      ^
Language: C

#include <stdio.h>

int main()
{
    int x, i;
    i = 1;
    
    do {
        scanf("%d", &x);
        if (x != 0) {
            printf("Case %d: %d\n",i, x);
            break;
        }
    } while true
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:13: error: expected '(' before 'true'
   14 |     } while true
      |             ^~~~
      |             (
Language: C

#include <stdio.h>

int main()
{
    int x, i;
    i = 1;
    
    do {
        scanf("%d", &x);
        if (x != 0) {
            printf("Case %d: %d\n",i, x);
            break;
        }
    } while (true)
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:14: error: 'true' undeclared (first use in this function)
   14 |     } while (true)
      |              ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:14:14: note: each undeclared identifier is reported only once for each function it appears in
   14 |     } while (true)
      |              ^~~~
main.c:14:19: error: expected ';' before 'return'
   14 |     } while (true)
      |                   ^
      |                   ;
   15 | 
   16 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>

int main()
{
    int x, i;
    i = 1;
    
    do {
        scanf("%d", &x);
        if (x != 0) {
            printf("Case %d: %d\n",i, x);
            break;
        }
    } while (true);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:14: error: 'true' undeclared (first use in this function)
   14 |     } while (true);
      |              ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:14:14: note: each undeclared identifier is reported only once for each function it appears in
   14 |     } while (true);
      |              ^~~~
Language: C

#include <stdio.h>

int main()
{
    int x, i;
    i = 1;
    
    do {
        scanf("%d", &x);
        if (x != 0) {
            printf("Case %d: %d\n",i, x);
            break;
        }
    } while;
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:12: error: expected '(' before ';' token
   14 |     } while;
      |            ^
      |            (
Language: C

#include <stdio.h>

int main()
{
    int x[],cnt=0;
    
    while(true)
    {
        cnt++;
        scanf("%d\n",x[cnt]);
        
        if(x[cnt]==0)
        {
            break;
        }
    }
    for(int i=1;i<=cnt;i++0)
    {
        printf("Case %d: %d\n",i,x[i]);
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[],cnt=0;
      |         ^
main.c:7:11: error: 'true' undeclared (first use in this function)
    7 |     while(true)
      |           ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
    7 |     while(true)
      |           ^~~~
main.c:17:27: error: expected ')' before numeric constant
   17 |     for(int i=1;i<=cnt;i++0)
      |        ~                  ^
      |                           )
Language: C

#include <stdio.h>

int main()
{
    int x[],cnt=0;
    
    while(true)
    {
        cnt++;
        scanf("%d\n",x[cnt]);
        
        if(x[cnt]==0)
        {
            break;
        }
    }
    for(int i=1;i<=cnt;i++)
    {
        printf("Case %d: %d\n",i,x[i]);
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[],cnt=0;
      |         ^
main.c:7:11: error: 'true' undeclared (first use in this function)
    7 |     while(true)
      |           ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
    7 |     while(true)
      |           ^~~~
Language: C

#include <stdio.h>

int main()
{
    int x[],cnt=0;
    
    while(1)
    {
        cnt++;
        scanf("%d\n",x[cnt]);
        
        if(x[cnt]==0)
        {
            break;
        }
    }
    for(int i=1;i<=cnt;i++)
    {
        printf("Case %d: %d\n",i,x[i]);
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: array size missing in 'x'
    5 |     int x[],cnt=0;
      |         ^
Language: C

#include <stdio.h>

int main()
{
    int x=0;
    
    while(x!=0)
    {
        scanf("%d\n",&x);
        if(x!=0)
        {
            printf("Case : %d\n",%d);
        }
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:34: error: expected expression before '%' token
   12 |             printf("Case : %d\n",%d);
      |                                  ^
Language: C

#include <stdio.h>

int main()
{
    int x=0;
    
    while(x!=0)
    {
        scanf("%d\n",&x);
        if(x!=0)
        {
            printf("Case %d: %d\n"cnt,x);
        }
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:35: error: expected ')' before 'cnt'
   12 |             printf("Case %d: %d\n"cnt,x);
      |                   ~               ^~~
      |                                   )
Language: C

#include <stdio.h>

int main()
{
    int x=0;
    
    while(x!=0)
    {
        scanf("%d\n",&x);
        if(x!=0)
        {
            printf("Case %d: %d\n",cnt,x);
        }
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:36: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
   12 |             printf("Case %d: %d\n",cnt,x);
      |                                    ^~~
      |                                    int
main.c:12:36: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main()
{
    int x=0,cnt=0;
    
    while(true)
    {
        scanf("%d\n",&x);
        if(x!=0)
        {
            cnt++;
            printf("Case %d: %d\n",cnt,x);
        }else
        {
            break;
        }
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:11: error: 'true' undeclared (first use in this function)
    7 |     while(true)
      |           ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
    7 |     while(true)
      |           ^~~~
Language: C

#include<stdio.h>
int main(void){
int a,c;
int b=0;
while(1){
scanf("%d",&a[b]);
if(a[b]==0){
break;
}
b++;
}
for(c=0;c<b;c++){
printf("Case %d: %d",c,a[c]);
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: subscripted value is neither array nor pointer nor vector
    6 | scanf("%d",&a[b]);
      |              ^
main.c:7:5: error: subscripted value is neither array nor pointer nor vector
    7 | if(a[b]==0){
      |     ^
main.c:13:25: error: subscripted value is neither array nor pointer nor vector
   13 | printf("Case %d: %d",c,a[c]);
      |                         ^
Language: C

#include<stdio.h>

int main(void)
{
    int x, i;

    i = 1;

    while(1){
             scanf("%d", &x);
             if(x == 0)
                break;
             
                printf("case %d: %d\n", i, x);
       
                i++
}


    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:20: error: expected ';' before '}' token
   16 |                 i++
      |                    ^
      |                    ;
   17 | }
      | ~
Language: C

#include<stdio.h>

int main()
{
  int i, a;

  while(1){
    scanf("%d",&a); 
    if(a == 0)
       break;
    printf("Case %d:%d\n",i , a);
    i++

}
    
    
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:8: error: expected ';' before '}' token
   12 |     i++
      |        ^
      |        ;
   13 | 
   14 | }
      | ~
Language: C

#include <stdio.h>

int main(void)
{
  int x,i;

  i=1

  while(1){
        scanf("%d",&x);
        if(x == 0)
           break;
  
  printf("Case %d: %d\n",i,x, i++);



return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'while'
    7 |   i=1
      |      ^
      |      ;
    8 | 
    9 |   while(1){
      |   ~~~~~
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
  int x,i;

  i=1;

  while(1){
        scanf("%d",&x);
        if(x == 0)
           break;
  
  printf("Case %d: %d\n",i,x, i++);



return 0;
}


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

#include <stdio.h>

int main(void)
{
  int x, i;

  i = 1;

  while(1){
        scanf("%d",&x);
        if(x == 0)
           break;
  
  printf("Case %d: %d\n",i++,x);



return 0;
}


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

#include<stdio.h>

int main()
{
  int i=1 , a;
       
  while(1){
           scanf("%d",&x);
           if(a == 0)
           break;
         printf("Case %d: %d\n",i++, a);
}

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:24: error: 'x' undeclared (first use in this function)
    8 |            scanf("%d",&x);
      |                        ^
main.c:8:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main()
{
  int i, a;
i = 1
       
  while(1){
           scanf("%d",&x);
           if(a == 0)
           break;
         printf("Case %d: %d\n",i++, a);
}

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:6: error: expected ';' before 'while'
    6 | i = 1
      |      ^
      |      ;
    7 | 
    8 |   while(1){
      |   ~~~~~
Language: C

#include<stdio.h>

int main()
{
  int i, a;
  i = 1;
       
  while(1){
           scanf("%d",&x);
           if(a == 0)
           break;
         printf("Case %d: %d\n",i++, a);
}

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:24: error: 'x' undeclared (first use in this function)
    9 |            scanf("%d",&x);
      |                        ^
main.c:9:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
{ 
	int x,i;
	while(1){
		i++;
		scanf("%d",&x);
		if(x==0)
			
		printf("Case i: %d\n",x);
		break;}
		}
	return 0;
}


Compiler output:
main.c:13:9: error: expected identifier or '(' before 'return'
   13 |         return 0;
      |         ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
{ 
	int x,i;
	while(1){
		i++;
		scanf("%d",&x);
		if(x==0)
			break;}
		printf("Case i: %d\n",x);
		}
	return 0;
}


Compiler output:
main.c:12:9: error: expected identifier or '(' before 'return'
   12 |         return 0;
      |         ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
int x;
while(x != 0){
scanf("%d", &x);
break(x == 0);
printf("Case i: x\n");
}
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:6: error: expected ';' before '(' token
    6 | break(x == 0);
      |      ^
      |      ;
Language: C

#include<stdio.h>
int main(void){
int x;
while{
scanf("%d", &x);
if(x == 0) break;
printf("Case i: x\n");
}
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:6: error: expected '(' before '{' token
    4 | while{
      |      ^
      |      (
Language: C

#include<stdio.h>
int main(void){
int x;
while{
scanf("%d", &x);
if(x == 0) break;
printf("Case %d: %d\n", i, x);
}
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:6: error: expected '(' before '{' token
    4 | while{
      |      ^
      |      (
main.c:7:25: error: 'i' undeclared (first use in this function)
    7 | printf("Case %d: %d\n", i, x);
      |                         ^
main.c:7:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
int x;
while(x != 0){
scanf("%d", &x);
if(x == 0) break;
printf("Case %d: %d\n", i, x);
}
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:25: error: 'i' undeclared (first use in this function)
    7 | printf("Case %d: %d\n", i, x);
      |                         ^
main.c:7:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int x, i;
for(i = 1;;i++){
scanf("%d", &x);
if(x == 0)break;
printf("Case %d: %d\n", i, x);
}
return 0;
}
#include<stdio.h>
int main(){
int x,i;
for(i=1;;i++){
scanf("%d",&x);
if(x==0)break;
printf("Case %d: %d\n",i,x);
}
return 0;
}


Compiler output:
main.c:12:5: error: redefinition of 'main'
   12 | int main(){
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int()'
    2 | int main(){
      |     ^~~~
Language: C

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

int main(){
	int x[10000];
	int i=0;
	int num=0;
	x[0]=1;
	
	while(1){
		scanf("%d",&x[i]);
		if(x[i]==0){
			break;
		}
		i++
	}
	
	for(num=0;num<i;num++){
		printf("Case %d: %d\n",num + 1,x[num]);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:20: error: expected ';' before '}' token
   15 |                 i++
      |                    ^
      |                    ;
   16 |         }
      |         ~
Language: C

#include<stdio.h>
int main()
{
    int i,a[10000],j,k=0,n=0;
    for(i=0;i<10000;i++)
    {
        scanf("%d",&a[i]);

            if(a[i]==0){
                break;
            }
       k++;
}
    for(i=0;i<=k-1;i++){
            n++;
        printf("Case %d: %d\n",n,a[i]);
    }


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

#include<stdio.h>
int main (){
  int i,x;
  while(i <= 10000){
    scanf("%d",&x);
    if(i == 0 break;
    printf("Case %d: %d",i,x);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected ')' before 'break'
    6 |     if(i == 0 break;
      |       ~      ^~~~~~
      |              )
main.c:8:3: error: expected expression before '}' token
    8 |   }
      |   ^
Language: C

#include<stdio.h>
int main(){
    int i,x;

    i = 1
    while(1){
      scanf("%d",&x);   
      if ( x == 0 )
         break;
     }else {
        printf ("Case %d: %d\n",i,x);
        i = i + 1;
　　}
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected ';' before 'while'
    5 |     i = 1
      |          ^
      |          ;
    6 |     while(1){
      |     ~~~~~ 
main.c:13:1: error: stray '\343' in program
   13 | <U+3000><U+3000>}
      | ^~~~~~~~
main.c:13:3: error: stray '\343' in program
   13 | <U+3000><U+3000>}
      |         ^~~~~~~~
Language: C

#include<stdio.h>
int#include<stdio.h>
int main()
{
int x,y = 1,z;
for(; ;)
{
scanf("%d",&x);
if (x==0)
{
break;
}
else
{
printf("Case  %d:  %d\n", b,  a) main()
{
int x,y = 1,z;
for(; ;)
{
scanf("%d",&x);
if (x==0)
{
break;
}
else
{
printf("Case  %d:  %d\n", y,  x);
{
y++ ;
}
return 0;
}


Compiler output:
main.c:2:4: error: stray '#' in program
    2 | int#include<stdio.h>
      |    ^
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    2 | int#include<stdio.h>
      |            ^
Language: C

#include <stdio.h>
main(){
int a,i=1;
while (1){
scanf("%d",&a);
printf("Case %d = %d\n",i,a);
i++;
}
return 0
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:9:9: error: expected ';' before '}' token
    9 | return 0
      |         ^
      |         ;
   10 | }
      | ~
Language: C

#include<stdio.h>
int main(void)
{
	int i,j;
	for(i=1;;i++)
	{
		scanf("%d",&j);
		if(j==0)
			break;
		else
			printf("%d\n"j);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:38: error: expected ')' before 'j'
   11 |                         printf("%d\n"j);
      |                               ~      ^
      |                                      )
Language: C

#include<stdio.h>
int main(void)
{
	int i,x;
	for(i=1;;i++)
	{
		scanf("%d",&x);
		if(j==0)
			break;
		else
			printf("case %d: %d\n",i,x);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:20: error: 'j' undeclared (first use in this function)
    8 |                 if(j==0)
      |                    ^
main.c:8:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void) {
	long SIZE = 2147483647;
	long i = 0;
	long x[SIZE] = {0};
	for(i = 0; i < SIZE; i++) {
		scanf("%d", &x[i]);
	}
	for(i = 0; i < SIZE; i++) {
		if(x[i] == 0) return 0;
		else {
			printf("Case %d:%d\n", i+1, x[i]);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:24: error: variable-sized object may not be initialized except with an empty initializer
    6 |         long x[SIZE] = {0};
      |                        ^
Language: C

#include<stdio.h>

int main(void){
int a,i=1;
while(0){
 scanf("%d", a);
 if(a==0){break;}
 else{printf("case %d: %d", i, a);}
return 0;
}

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

#include<stdio.h>

int main(void){
int a;
int i=1;
while(0){
 scanf("%d", a);
 if(a==0){break;}
 else{
  printf("case %d: %d", i, a);
  i = i+1
 }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:10: error: expected ';' before '}' token
   11 |   i = i+1
      |          ^
      |          ;
   12 |  }
      |  ~        
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include<stdio.h>
 
int main(void){
int a;
int i=1;
while(0){
 scanf("%d", a);
 if(a==0){
  break;
 }
 else{
  printf("case %d: %d", i, a);
  i = i+1;
 }
return 0;
}

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

#include<stdio.h>
 
int main(void){
int a,i;
while(0){
 scanf("%d", &a);
 if(a==0){
  break;
 }
 else{
  i = i+1;
  printf("case %d: %d", i, a);
 }
return 0;
}

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

#include <stdio.h>

int main(void){
    int i,x;
    for(i=1;i<1000;i++){
        printf("Case %d: ",i);
        scanf_s("%d",&x);
        if ( x == 0)break;
    }
    return 0;
}

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

#include<stdio.h>
int main(){
int x,i=0;

while(1){
scanf("%d",&x);
if(x==0){
break;
}else{
i++;
printf("Case %d:%d\n",i,x);
}

return 0;
}

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

#include<stdio.h>
int main(){
int x,i=0;
 
while(1){
scanf("%d",&x);
if(x==0){
break;
}else{
i++;
printf("Case %d: %d\n",i,x);
}
 
return 0;
}

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

#include<stdio.h>
int main(){
int a[1000];
int i,j;
for(i=0;i<1000;i++){
scanf("%d",&a[i]);
if(a[i]==0)exit;
}
j=i;
for(i=0;i<j;i++){
printf("Case %d: %d\n",i,a[i]);
}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'exit' undeclared (first use in this function)
    7 | if(a[i]==0)exit;
      |            ^~~~
main.c:2:1: note: 'exit' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | int main(){
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
    7 | if(a[i]==0)exit;
      |            ^~~~
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

#include<stdio.h>
int main(){
int a,i=1;
while(1){
 scanf("%d"&a);
 if(a==0)break;

 printf("Case %d: %d\n",i++,a);
}
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: invalid operands to binary & (have 'char *' and 'int')
    5 |  scanf("%d"&a);
      |        ~~~~^
      |        |
      |        char *
Language: C

#include <stdio.h>
 
int main(void){
	int x = 1;
	int i = 1;
	while(true){
		scanf(%d,&x);
		if(x == 0){
			break;
		}
		printf("Case %d: %d\n",i,x);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'true' undeclared (first use in this function)
    6 |         while(true){
      |               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
    6 |         while(true){
      |               ^~~~
main.c:7:23: error: expected expression before '%' token
    7 |                 scanf(%d,&x);
      |                       ^
Language: C

#include <stdio.h>

int main( void )
{
	int i, x;
	
	scanf( "%d", &x );
	
	for( i = 1; x != 0; i++ ){
		printf( "Case %d: %d\n", i, x );
		scanf( "%d" &x );
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:29: error: invalid operands to binary & (have 'char *' and 'int')
   11 |                 scanf( "%d" &x );
      |                        ~~~~ ^
      |                        |
      |                        char *
Language: C

#include<stdio.h>

int main(void)
{
	int i,x;
	
	for( i=0; 0 != x; i++ ) {
		scanf( "%d",&x )
		if( 0 != x ) {
			printf( "Case %d: %d\n", i, x );
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:33: error: expected ';' before 'if'
    8 |                 scanf( "%d",&x )
      |                                 ^
      |                                 ;
    9 |                 if( 0 != x ) {
      |                 ~~
Language: C

#include<stdio.h>

int main(void)
{
	int i,x;
	x=999;
	for( i=0; 0 != x; i++ ) {
		scanf( "%d",&x )
		if( 0 != x ) {
			printf( "Case %d: %d\n", i, x );
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:33: error: expected ';' before 'if'
    8 |                 scanf( "%d",&x )
      |                                 ^
      |                                 ;
    9 |                 if( 0 != x ) {
      |                 ~~
Language: C

#include <stdio.h>
int main()
{
	int i;
	while(1){
		while(1){
			i=getchar();
			if (c!='\n'){
				break;
			}　
		}	
		/*getcharで一文字ずつ取得
		　もし改行(\n)ならばもう一回
		　それ以外なら次へ*/
		if(i=0){
			break;
		} else {
			printf("%d", i);
		}		
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:29: error: 'c' undeclared (first use in this function)
    8 |                         if (c!='\n'){
      |                             ^
main.c:8:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:26: error: stray '\343' in program
   10 |                         }<U+3000>
      |                          ^~~~~~~~
Language: C

#include <stdio.h>
int main()
{
	int i;
	while(1){
		while(1){
			i=getchar();
			if (i!='\n'){
				break;
			}　
		}	
		/*getcharで一文字ずつ取得
		　もし改行(\n)ならばもう一回
		　それ以外なら次へ*/
		if(i=0){
			break;
		} else {
			printf("%d", i);
		}		
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:26: error: stray '\343' in program
   10 |                         }<U+3000>
      |                          ^~~~~~~~
Language: C

#include <stdio.h>
int main()
{
	int i;
	while(1){
		while(1){
			i=getchar();
			if (i!='\n'){
				break;
			}　
		}	
		/*getcharで一文字ずつ取得*/
		/*もし改行(\n)ならばもう一回*/
		/*それ以外なら次へ*/
		if(i=0){
			break;
		} else {
			printf("%d\n", i);
		}		
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:26: error: stray '\343' in program
   10 |                         }<U+3000>
      |                          ^~~~~~~~
Language: C

#include <stdio.h>
int main()
{
	int i;
	while(1){
		while(1){
			i=getchar();
			if (i!='\n'){
				break;
			}　
		}
		/*getcharで一文字ずつ取得*/
		/*もし改行(\n)ならばもう一回*/
		/*それ以外なら次へ*/
		if(i=0){
			break;
		} else {
			printf("%d\n", i);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:26: error: stray '\343' in program
   10 |                         }<U+3000>
      |                          ^~~~~~~~
Language: C

#include <stdio.h>
int main()
{
	int i;
	while(1){
		while(1){
			i=getchar();
			if(i!='\n'){
				break;
			}　
		}
		/*getcharで一文字ずつ取得*/
		/*もし改行(\n)ならばもう一回*/
		/*それ以外なら次へ*/
		if(i=0){
			break;
		} else {
			printf("%d\n", i);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:26: error: stray '\343' in program
   10 |                         }<U+3000>
      |                          ^~~~~~~~
Language: C

#include <stdio.h>

int main(){
	int x, i;
	for (i=1;;i++)
	{
		scanf_s("%d", &x);
		if (x==0)
		{
			break;
		}
		printf("Case %d: %d\n", i, x);
	}
	
	return 0;
}

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