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

import java.util.Scanner;
class Main{
 public static void main(String aegs[]){
  int w,h,i,j;
  Scanner sc = new Scanner(System,in);
  while(true){
   h=sc.nextInt();
   w=sc.nextInt();
   if(h==0 && w==0)
    break;
   for(i=0;i<h;i++){
    for(j=0;j<w;j++)
     System.out.print("#");
   System.out.println();}
  }
 }
}


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

#include <stdio.h>

int main(int argc, char const *argv[])
{
	int H, W;
	while (1) {
		scanf("%d %d", &H, &W);
		if(H == 0 && W == 0) break;
		for(int i = 0; i < H; i++) {
			for(int j = 0; j < W; j++) {
				printf('#');
			}
			printf("\n");
		}
	}

	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:6: error: class, interface, enum, or record expected
	while (1) {
	^
Main.java:8: error: class, interface, enum, or record expected
		if(H == 0 && W == 0) break;
		^
Main.java:9: error: class, interface, enum, or record expected
		for(int i = 0; i < H; i++) {
		^
Main.java:9: error: class, interface, enum, or record expected
		for(int i = 0; i < H; i++) {
		               ^
Main.java:9: error: class, interface, enum, or record expected
		for(int i = 0; i < H; i++) {
		                      ^
Main.java:10: error: class, interface, enum, or record expected
			for(int j = 0; j < W; j++) {
			               ^
Main.java:10: error: class, interface, enum, or record expected
			for(int j = 0; j < W; j++) {
			                      ^
Main.java:12: error: class, interface, enum, or record expected
			}
			^
Main.java:14: error: class, interface, enum, or record expected
		}
		^
Main.java:18: error: class, interface, enum, or record expected
}
^
12 errors
Language: Java

import java.util.Scanner;

public class main {
	public static void main(String[]args){
		Scanner sc=new Scanner(System.in);
		int k=1;
		while(k==1){
			int H=sc.nextInt(),W=sc.nextInt();
			if(H==0&&W==0)
				break;
			for ( int i = 0; i < W; i++ ){
				for ( int j = 0; j < H; j++ ){
					System.out.print("#");		       
				}
				System.out.println("");
			}
		}
	}
}


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

import java.util.Scanner;

public class main {
	public static void main(String[]args){
		Scanner sc=new Scanner(System.in);
		int k=1;
		while(k==1){
			int H=sc.nextInt(),W=sc.nextInt();
			if(H==0&&W==0)
				break;
			for ( int i = 0; i < H; i++ ){
				for ( int j = 0; j < W; j++ ){
					System.out.print("#");		       
				}
				System.out.println("");
			}
		}
	}
}



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

import java.util.Scanner;

public class main {
	public static void main(String[]args){
		Scanner sc=new Scanner(System.in);
		int k=1;
		while( k == 1 ){
			int H=sc.nextInt();
			int W=sc.nextInt();
			if(H==0 && W==0)
				break;
			for ( int i = 0; i < H; i++ ){
				for ( int j = 0; j < W; j++ ){
					System.out.print("#");		       
				}
				System.out.println("");
			}
		}
	}
}


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

import java.util.Scanner;

public class main {
	public static void main(String[]args){
		Scanner sc=new Scanner(System.in);
		int k=1;
		while( k == 1 ){
			int H=sc.nextInt();
			int W=sc.nextInt();
			if(H==0 || W==0)
				break;
			for ( int i = 0; i < H; i++ ){
				for ( int j = 0; j < W; j++ )
					System.out.print("#");		       
				System.out.println("");
			}
		}
	}
}



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

import java.util.Scanner;

public class main {
	public static void main(String[]args){
		Scanner sc=new Scanner(System.in);
		int k=1;
		while( k == 1 ){
			int H=sc.nextInt();
			int W=sc.nextInt();
			if(H==0 && W==0)
				break;
			for ( int i = 0; i < H; i++ ){
				for ( int j = 0; j < W; j++ )
					System.out.print("#");
				System.out.println("");
			}
			System.out.println();
		}
	}
}


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

import java.util.Scanner;

public class main {
	public static void main(String[]args){
		Scanner sc=new Scanner(System.in);
		int k=1;
		while(k==1){
			int H=sc.nextInt();
			int W=sc.nextInt();
			if(H==0 && W==0)
				break;
			for ( int i = 0; i < H; i++ ){
				for ( int j = 0; j < W; j++ )
					System.out.print("#");
				System.out.println("");
			}
			System.out.println();
		}
	}
}



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

import java.util.Scanner;
class Main{
 public static void main(String[] args){
  Scanner scan = new Scanner();
  while(true){
   int h = scan.nextInt();
   int w = scan.nextInt();
   if(h == 0 && w == 0){
    break;
   }
   for(int i = 0; i < h; i++){
    for(int j = 0; j < w; j++){
     System.out.print("#");
    }System.out.println();
   }System.out.println();
  }
 }
}

Compiler output:
Main.java:4: error: no suitable constructor found for Scanner(no arguments)
  Scanner scan = new Scanner();
                 ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;
import java.io.*;
import java.lang.*;

public class Main {
    static final int INF = 1000000000;     
    
    public static void main(String[] args) throws Exception {                
        Scanner input = new Scanner(System.in);
        int h, w;
        h = input.nextInt(); 
        w = input.nextInt();
        if (h == 0 && w == 0) break;
        for (int i = 0; i < h; ++i) {
            for (int k = 0; k < w; ++k) {
                System.out.print("#");
            }
            System.out.println("");
        }
    }         
}

Compiler output:
Main.java:13: error: break outside switch or loop
        if (h == 0 && w == 0) break;
                              ^
1 error
Language: Java

import java.util.*;
public class j5A {

	public static void main(String[] args) {
		int i1, i2;
		Scanner sc = new Scanner(System.in);
		i1 = sc.nextInt();
		i2 = sc.nextInt();
		for(int i = 0; i < i1; i++){
			for(int j = 0; j < i2; j++)
				System.out.print("#");
			System.out.println("");
		}
	}
	}

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

import java.util.Scanner;
class Main
{
    public static void main(String args[])
    {
	Scanner scan=new Scanner(System.in);
	int H,W;
	while(true)
	    {
		H=scan.nextInt();
		W=scan.nextInt();
		if((H==0) && (W==0))break;
		for(int i=0;i<H;i++)
		    {
			
			if(H==0 && W==0)break;
			for(int j=0;j<W;j++)
			    {
				System.out.print("#");
			    }
			System.out.println();
		    }
		Sytem.out.println();
	    }
    }
}

Compiler output:
Main.java:23: error: package Sytem does not exist
		Sytem.out.println();
		     ^
1 error
Language: Java

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

public class Print_a_Rectangle {

	public static void main(String args[]) {
		// テキスト入力
		Scanner sc = new Scanner(System.in);
		ArrayList list = new ArrayList();
		String out = "";

		while (true) {

			int height = sc.nextInt();
			int width = sc.nextInt();

			if (height == 0 && width == 0){
				System.out.print("\n");
				break;
			}
			// #を出す処理
			// 行の数
			for (int h = 0; h < height; h++) {

				// 列の数
				for (int w = 0; w < width; w++) {
					out = out+"#";
				}
				out = out+"\n";
			}
			list.add(out);
			out = "";
		}
		for(Object val :list)
		System.out.println(val);
	}
}

Compiler output:
Main.java:4: error: class Print_a_Rectangle is public, should be declared in a file named Print_a_Rectangle.java
public class Print_a_Rectangle {
       ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Language: C

#include<stdio,h>
 int main()
{
 int h,w,i,j;

 for(;;){
         scanf("%d%d",&h,&w);
         if(h==0&&w==0)break;
         for(i=0;i<h;i++){
                          for(j=0;j<w;j++){
                                           printf("#");
                                          }
                          printf("\n");
                          }    

         }
 return 0;

}



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

int main(void)
{
    int H=1, W=1, i, j;

    

    while ((H != 0) && (W != 0))
    {
        scanf("%d %d", &H, &W);

        if ((H == 0) && (W == 0))
        {
            return 0;
        }
        else
        {
            for (j = 0;j < W;j++)
            {
                for (i = 0;i < H;i++)
                {
                    printf("#");
                }
                printf("\n");
            }
        }
        printf("\n")
    }

    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |         scanf("%d %d", &H, &W);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:9:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |         scanf("%d %d", &H, &W);
      |         ^~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:21:21: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |                     printf("#");
      |                     ^~~~~~
main.c:21:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   23 |                 printf("\n");
      |                 ^~~~~~
main.c:23:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   26 |         printf("\n")
      |         ^~~~~~
main.c:26:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:21: error: expected ';' before '}' token
   26 |         printf("\n")
      |                     ^
      |                     ;
   27 |     }
      |     ~
Language: C

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




Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected ')' before ';' token
    7 | if (H == 0 && W == 0;  ) break;
      |    ~                ^
      |                     )
Language: C

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




Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected ';' before ')' token
    4 | for ( k = 1; k++ ){
      |                 ^~
      |                 ;
main.c:6:21: error: expected ')' before ';' token
    6 | if (H == 0 && W == 0;  ) break;
      |    ~                ^
      |                     )
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:6:24: error: break statement not within loop or switch
    6 | if (H == 0 && W == 0 ) break;
      |                        ^~~~~
Language: C

int main(void)
{
	int H, W, i, t;

	while (true)
	{
		scanf("%d %d", &H, &W);

		if (H == 0 && W == 0) 
			break;

		for (i = 0; i < H; i++){
			for (t = 0; t < W; t++) {
				printf("*");
			}
			printf("\n");
		}
		printf("\n");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:16: error: 'true' undeclared (first use in this function)
    5 |         while (true)
      |                ^~~~
main.c:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | int main(void)
main.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
    5 |         while (true)
      |                ^~~~
main.c:7:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |                 scanf("%d %d", &H, &W);
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:7:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |                 scanf("%d %d", &H, &W);
      |                 ^~~~~
main.c:7:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:14:33: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |                                 printf("*");
      |                                 ^~~~~~
main.c:14:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |                 printf("\n");
      |                 ^~~~~~
main.c:18:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
int main(void){
    int H, W,;
    int i, j;
    
    while(scanf("%d, %d", &H, &W), H || W){
        for(i = 0; i < H; i++){
            for(j = 0; j < W; j++){
                putchar('#');
            }
            puts("");
        }
        puts("");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:14: error: expected identifier or '(' before ';' token
    3 |     int H, W,;
      |              ^
Language: C

#include <stdio.h>
int main(void){
    int h, w,;
    int i, j;
    
    while(scanf("%d, %d", &h, &w), h || w){
        for(i = 0; i < h; i++){
            for(j = 0; j < w; j++){
                putchar('#');
            }
            puts("");
        }
        puts("");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:14: error: expected identifier or '(' before ';' token
    3 |     int h, w,;
      |              ^
Language: C

#include<stdio.h>
int main(){
	int h, w;
	int i, j;
	while(1){
		scanf("%d %d", h, w);
		if(h == 0 && w == 0)break;
		for(i = 0;i < h;i++){
			for(j = 0;j < w;j++){
				printf("#");
			}
			printf("\n");
	}
	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 h, w;
	int i, j;
	while(1){
		scanf("%d %d", &h, &w);
		if(h == 0 && w == 0)break;
		for(i = 0;i < h;i++){
			for(j = 0;j < w;j++){
				printf("#");
			}
			printf("\n");
	}
	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

int main() {
	int H, W;
	while (1) {
		scanf_s("%d %d", &H, &W);
		if (H == 0 && W == 0) {
			break;
		}
		for (int i = 0; i < H; i++) {
			for (int k = 0; k < W; k++) {
				printf("#");
				if (k == W - 1) {
					printf("\n");
				}
			}
		}
	}
}


Compiler output:
main.c: In function 'main':
main.c:4:17: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    4 |                 scanf_s("%d %d", &H, &W);
      |                 ^~~~~~~
main.c:10:33: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                                 printf("#");
      |                                 ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:10:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |                                 printf("#");
      |                                 ^~~~~~
main.c:10:33: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<studio.h>
int main(){
int H,W;
int h,w;
while(1);
scanf("%d%d",&H,&W);
if(H == 0 && W == 0)break;
   for(h = 0,h < H,h++)
   {for(w = 0,w < W,W++)putchar("#");
    putchar("\n");
   }
putchar("\n");
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<studio.h>
int main(){
int H,W;
int h,w;
while(1){
scanf("%d%d",&H,&W);
if(H == 0 && W == 0)break;
   for(h = 0,h < H,h++)
   {for(w = 0,w < W,W++)putchar("#");
    putchar("\n");
   }
putchar("\n");
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<studio.h>
int main(){
int H,W;
int h,w;
while(1){
scanf("%d%d",&H,&W);
if(H == 0 && W == 0)break;
   for(h = 0;h < H;h++)
   {for(w = 0;w < W;W++)putchar("#");
    putchar("\n");
   }
putchar("\n");
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<studio.h>
int main(){
int H,W;
int h,w;
while(1){
scanf("%d%d",&H,&W);
if(H == 0 && W == 0)break;
   for(h = 0;h < H;h++)
   {for(w = 0;w < W;W++)putchar('#');
    putchar('\n');
   }
putchar('\n');
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<studio.h>
int main(){
int H,W;
int h,w;
while(1){
scanf("%d%d",&H,&W);
if(H == 0 && W == 0)break;
   for(h = 0;h < H;h++)
   {for(w = 0;w < W;W++)putchar('#');
    putchar('\n');
   }
putchar('\n');
}
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<studio.h>
int main(){
int H,W;
int h,w;
while(1){
scanf("%d%d",&H,&W);
if(H == 0 && W == 0)break;
   for(h = 0;h < H;h++){ 
   for(w = 0;w < W;w++)putchar('#');
    putchar('\n');}
putchar('\n');}
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<studio.h>
int main(){
int H,W;
int h,w;
while(1){
scanf("%d%d",&H,&W);
if(H == 0 && W == 0)break;
   for(h = 0; h < H; h++){ 
   for(w = 0; w < W; w++)putchar('#');
    putchar('\n');}
putchar('\n');}
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>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

int main(void){

  int H[1000], W[1000];
  int i, j, k;

  for(k = 0; k < 1000; k++){
    scanf("%d %d", &H[k], &W[k]);
    if(H[k] == 0 && W[k] == 0){
      break;
    }else{
      for(i = 0; i < H[k]; i++){
	for(j = 0; j < W[k]; j++){
	  printf("#");
	}
	printf("\n");
      }
    }
    printf("\n")
  }
  
  return 0;
}


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

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


Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before ':' token
    8 |       for(int j=0;j<w:j++){
      |                      ^
      |                      ;
Language: C

#include<stdio.h>
int main(void)
{
  int h,w;
  do{
       scanf("%d %d",&h,&w);
       for(int i=0;i<h;i++){
         for(int j=0;j<w;j++){
           printf("%c",#);
         }
         printf("\n");
       }
       printf("\n");
    }while((h!=0)&&(w!=0));
    return 0;
}
      
   


Compiler output:
main.c: In function 'main':
main.c:9:24: error: stray '#' in program
    9 |            printf("%c",#);
      |                        ^
main.c:9:25: error: expected expression before ')' token
    9 |            printf("%c",#);
      |                         ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:18:12: error: 'n' undeclared (first use in this function)
   18 |     }while(n=0);
      |            ^
main.c:18:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:18:12: error: 'n' undeclared (first use in this function)
   18 |     }while(n);
      |            ^
main.c:18:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){
    int h=1,w=1;
    while(H!=0&&w!=0){
        scanf("%d%d",&h,&w);
        
        int i,j;
        for(i=0;i<h;i++){
            for(j=0;j<w;j++){
                printf("#");
            }
            printf("\n");
        }
        printf("\n");
    }
    
}


Compiler output:
main.c: In function 'main':
main.c:5:11: error: 'H' undeclared (first use in this function)
    5 |     while(H!=0&&w!=0){
      |           ^
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

while (True):
    s = list(map(int, input().strip().split(' ')))

    if s[0] == 0 and s[1] == 0:
        break
    else:
        for i in range(s[0]):
            for j in range(s[1]):
                print("#", end="")
            print()
    print()


Compiler output:
main.c:1:1: error: expected identifier or '(' before 'while'
    1 | while (True):
      | ^~~~~
Language: C

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


for(i=1;i<=H;i++){
        for(j=1;j<=W;j++)
    {
        printf("#");
    }

printf("\n\n");
}}





return 0;


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

#include<stdio.h>

int main()
{
    int a, b, i, j;
    
    while(1){
        
	if(a == b ==0) break;

        scanf("%d%d", &a, &b);
        for(i =1; i <=a;i++){
            for(j =1; j <=b;j++) printf("#");
	    }
        printf("\n")
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:21: error: expected ';' before '}' token
   15 |         printf("\n")
      |                     ^
      |                     ;
   16 |     }
      |     ~
Language: C

 #include<stdio.h>



int main()
{    
　　int a, b, i, j;
    while(1){
        
	if(a == b ==0) break;

        scanf("%d%d", &a, &b);
        for(i =1; i <=a;i++){
            for(j =1; j <=b;j++) printf("#");
            printf("\n");
	    }
        printf("\n");  
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:1: error: stray '\343' in program
    7 | <U+3000><U+3000>int a, b, i, j;
      | ^~~~~~~~
main.c:7:3: error: stray '\343' in program
    7 | <U+3000><U+3000>int a, b, i, j;
      |         ^~~~~~~~
Language: C

#include<stdio.h>
main(void)
{
int H, W, i, j;

while(1){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;

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

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}




return 0;
}


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

#include<stdio.h>
main(void)
{
int H, W, i, j;

while(1){
scanf("%d %d", &H, &W);
if(H = 0 && W = 0)break;
for(i = 0; i < W; i++){

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
return 0;
}


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:8:15: error: lvalue required as left operand of assignment
    8 | if(H = 0 && W = 0)break;
      |               ^
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
int H, W, i, j;

while(1){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;
for(i = 0; i < W; i++){

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
return 0;
}


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

#include<stdio.h>
int main(void)
{
int H, W, i, j;

i = 0;
j = 0:

while(1){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;
for(i = 0; i < W; i++){

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before ':' token
    7 | j = 0:
      |      ^
      |      ;
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
int H, W, i, j;

i = 0;
j = 0:

while(1){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;

else{

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

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before ':' token
    7 | j = 0:
      |      ^
      |      ;
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
int H, W, i, j;

i = 0;
j = 0:

while(1){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;

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

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before ':' token
    7 | j = 0:
      |      ^
      |      ;
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
int H, W, i, j;

i = 0;
j = 0;

while(1){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;

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

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
return 0;
}


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

#include<stdio.h>

int main(void)
{
int H, W, i, j;

i = 0;
j = 0;

while(1){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;

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

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
return 0;
}


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

#include <stdio.h>

int main(void)
{
int H, W, i, j;

i = 0;
j = 0;

while(1){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;

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

for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
return 0;
}


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

#include <stdio.h>

int main(void)
{
int H, W, i, j;

i = 0;
j = 0;

do{
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)break;
for(i = 0; i < H; i++){

  for(j = 0; j < W; j++){
  printf("#");
  }

printf("\n");
}
}while(H != 0 && W != 0)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:21:25: error: expected ';' before 'return'
   21 | }while(H != 0 && W != 0)
      |                         ^
      |                         ;
   22 | return 0;
      | ~~~~~~
Language: C

#include <stdio.h>

int main(void)
{
int H, W, i, j;

i = 0;
j = 0;

while(1){
scanf("%d %d", &H, &W);
if(H = 0 || W = 0)break;
for(i = 0; i < H; i++){

  for(j = 0; j < W; j++){
  printf("#");
  }

printf("\n");
}
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:15: error: lvalue required as left operand of assignment
   12 | if(H = 0 || W = 0)break;
      |               ^
Language: C

#include <stdio.h>

int main(void)
{
int H, W, i, j;

i = 0;
j = 0;

while(1){
scanf("%d %d"\n, &H, &W);

if(H == 0 && W == 0)break;

for(i = 0; i < H; i++){
  for(j = 0; j < H; i++){
  printf("#");
  }
printf("\n ");
}
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:14: error: stray '\' in program
   11 | scanf("%d %d"\n, &H, &W);
      |              ^
main.c:11:14: error: expected ')' before 'n'
   11 | scanf("%d %d"\n, &H, &W);
      |      ~       ^~
      |              )
Language: C

#include <stdio.h>

int main(void)
{
int H, W, i, j, k;

i = 0;
j = 0;
k = 0;

while(1){
scanf("%d %d", &H, &W);

if(H == 0 && W == 0)break;
else if(i == H)printf("\n ");


for(i = 0; i < H; i++){
  for(j = 0; j < H; i++){
  printf("#");
  }
printf("\n ");
}
printf("\n ");
}
}
return 0;
}


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

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


Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected ';' before 'i'
   12 |       for(i=0 i<W; i++) {
      |              ^~
      |              ;
main.c:12:23: error: expected ';' before ')' token
   12 |       for(i=0 i<W; i++) {
      |                       ^
      |                       ;
Language: C

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

int a,b,i,n;
whlie(1){
scanf("%d %d",&a,&b);
if(a == 0 && b == 0)break;
for(i = 0;i < a;i++){
for(n == 0:n<b;n++){
    printf("#");}
    printf("\n");}
    printf("\n");}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
    5 | whlie(1){
      | ^~~~~
main.c:5:9: error: expected ';' before '{' token
    5 | whlie(1){
      |         ^
      |         ;
Language: C

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

int a,b,i,n;
whlie(1){
scanf("%d %d",&a,&b);
if(a == 0 && b == 0)break;
for(i = 0;i < a;i++){
for(n = 0:n<b;n++){
    printf("#");}
    printf("\n");}
    printf("\n");}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
    5 | whlie(1){
      | ^~~~~
main.c:5:9: error: expected ';' before '{' token
    5 | whlie(1){
      |         ^
      |         ;
Language: C

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

int a,b,i,n;
whlie(1){
scanf("%d %d",&a,&b);
if(a == 0 && b == 0)break;
for(i = 0;i < a;i++){
for(n = 0;n<b;n++){
    printf("#");}
    printf("\n");}
    printf("\n");}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
    5 | whlie(1){
      | ^~~~~
main.c:5:9: error: expected ';' before '{' token
    5 | whlie(1){
      |         ^
      |         ;
Language: C

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

int a,b,i,n;
whlie(1){
scanf("%d %d",&a,&b);
if(a == 0 && b == 0)break;
for(i = 0;i < a;i++){
for(n = 0;n<b;n++){
    printf("#");
}
    printf("\n");
}
    printf("\n");
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
    5 | whlie(1){
      | ^~~~~
main.c:5:9: error: expected ';' before '{' token
    5 | whlie(1){
      |         ^
      |         ;
Language: C

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

int a,b,i,n;
scanf("%d %d",&a,&b);
whlie(1){
if(a == 0 && b == 0)break;
for(i = 0;i < a;i++){
for(n = 0;n<b;n++){
    printf("#");
    }
    printf("\n");
    }
    printf("\n");
    }
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'whlie' [-Wimplicit-function-declaration]
    6 | whlie(1){
      | ^~~~~
main.c:6:9: error: expected ';' before '{' token
    6 | whlie(1){
      |         ^
      |         ;
Language: C

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


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

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


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | intmain(){
      | ^~~~~~~
Language: C

#include<stdio.h>
int main(void){
    int s,t,H,W;
   for(){
       scanf("%d %d",&H,&W);
       if(H==0&&W==0) break;
       for(s=0;s<H;s++){
           for(t=0;t<W;t++){
               printf("#");
           }
           printf("\n");
       }
       printf("\n");
   }
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:8: error: expected expression before ')' token
    4 |    for(){
      |        ^
main.c:4:8: error: expected expression before ')' token
Language: C

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


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

#include <stdio.h>

int main{

int a,b;

int n,m;

while(1){

scanf("%d %d",&a,&b);

if(a==0&&b==0)

break;

for(m=1;m<=b;m++){

for(n=1;n<=a;n++){

printf("#");

}

printf("\n");

}

}

return 0;

}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C

#include <stdio.h>

int main{

int a,b;

int n,m;

while(1){

scanf("%d %d",&a,&b);

if(a==0&&b==0)

break;

for(m=1;m<=a;m++){

for(n=1;n<=b;n++){

printf("#");

}

printf("\n");

}

}

return 0;

}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C

#include<stadio.h>

int main(void){
   int x,y,i,j;
   for(;;){
      scanf("%d %d",&y,&x);
      if(x+y==0) break;
      for(i=0;i<y;i++){
         for(j=0;j<x;j++)
            printf("#");
         printf("\n");
      }
   return 0;
}

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

#include<stadio.h>

int main(void){
   int x,y,i,j;
   for(;;){
      scanf("%d %d",&y,&x);
      if(x+y==0) break;
      for(i=0;i<y;i++){
         for(j=0;j<x;j++)
            printf('#');
         printf('\n');
      }
   return 0;
}

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

#include<stdio.h>

int main(void){
   int x,y,i,j;
   for(;;){
      scanf("%d %d",&y,&x);
      if(x+y==0) break;
      for(i=0;i<y;i++){
         for(j=0;j<x;j++)
            printf('#');
         printf('\n');
      }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:20: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   10 |             printf('#');
      |                    ^~~
      |                    |
      |                    int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:11:17: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |          printf('\n');
      |                 ^~~~
      |                 |
      |                 int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include<stdio.h>
main(){
int H,W,i;
wihle(1){
scanf("%d%d",H,W);
if(H==0&&W==0) break;
for(i=0;i<H;i++){
for(i=0;i<W;i++){
printf("#");
}
printf("\n");
}
}
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:4:1: error: implicit declaration of function 'wihle' [-Wimplicit-function-declaration]
    4 | wihle(1){
      | ^~~~~
main.c:4:9: error: expected ';' before '{' token
    4 | wihle(1){
      |         ^
      |         ;
Language: C

#include<stdio.h>
main(){
int H,W,i;
wihle(1){
scanf("%d%d",&H,&W);
if(H==0&&W==0) break;
for(i=0;i<H;i++){
for(i=0;i<W;i++){
printf("#");
}
printf("\n");
}
}
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:4:1: error: implicit declaration of function 'wihle' [-Wimplicit-function-declaration]
    4 | wihle(1){
      | ^~~~~
main.c:4:9: error: expected ';' before '{' token
    4 | wihle(1){
      |         ^
      |         ;
Language: C

#include<stdio.h>
main(){
int H,W,i,j;
wihle(1){
scanf("%d%d",&H,&W);
if(H==0&&W==0) break;
for(i=0;i<H;i++){
for(j=0;i<W;j++){
printf("#");
}
printf("\n");
}
}
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:4:1: error: implicit declaration of function 'wihle' [-Wimplicit-function-declaration]
    4 | wihle(1){
      | ^~~~~
main.c:4:9: error: expected ';' before '{' token
    4 | wihle(1){
      |         ^
      |         ;
Language: C

#include<stdio.h>
main(){
int H,W,i,j;
wihle(1){
scanf("%d%d",&H,&W);
if(H==0&&W==0) break;
for(i=0;i<H;i++){
for(j=0;j<W;j++){
printf("#");
}
printf("\n");
}
}
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:4:1: error: implicit declaration of function 'wihle' [-Wimplicit-function-declaration]
    4 | wihle(1){
      | ^~~~~
main.c:4:9: error: expected ';' before '{' token
    4 | wihle(1){
      |         ^
      |         ;
Language: C

#include<stdio.h>

int main(){
 while(1){
  int H,W;
  scanf("%d %d", &H,&W);
  if(H==0 && W==0){break;}
  int i,j;
  for(i=0; i<H; i++){
   for(j=0; j<W; j++){
    printf("#");
   }
   printf("\n");
  }
 }
 printf("\n")
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:14: error: expected ';' before 'return'
   16 |  printf("\n")
      |              ^
      |              ;
   17 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>

int main(){
 while(1){
  int H,W;
  scanf("%d %d", &H,&W);
  if(H==0 && W==0){break;}
  int i,j;
  for(i=0; i<H; i++){
   for(j=0; j<W; j++){
    printf("#");
   }
   printf("\n");
  }
  printf("\n")
 }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:15: error: expected ';' before '}' token
   15 |   printf("\n")
      |               ^
      |               ;
   16 |  }
      |  ~
Language: C

#include <stdio.h>

int main(void){
    int H, W;
    while(1){
    scanf("%d %d", &H, &W);
    if(H ==0&&W==0){
    break;
    }else{
    char S[H][W];
    int i, j;
        for (i = 0; i < H; i++){
            for (j = 0; j < W; j++){
                S[i][j] = '#';
                printf("%c ", S[i][j]);
            }
            printf("\n");
        }
    }
    return 0;
}

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

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

  do{
    scanf("%d %d",&h,&w);

    if( h == 0 && w == 0){
      puts("");
      break;
    }else if {

      for( i = 1;i <= h;i++){
        for( j = 1;j <= w; j++){
          printf("#");
        }
        puts("");
      }
    }

  }while(1);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:14: error: expected '(' before '{' token
   11 |     }else if {
      |              ^
      |              (
Language: C

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

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

#include <stdio.h>

int main(void){

  int H,W;
  register int i,s;

  while(1){
    scanf("%d %d",&H,&W);
    if((H == 0) & (W == 0)){
      break;
    }
    for(i = 0;i < H;i++){
      for(s = 0;s < W;s++){
        printf("#");
      }
      printf("\")
    }
    printf("\n\n")

Compiler output:
main.c: In function 'main':
main.c:17:14: warning: missing terminating " character
   17 |       printf("\")
      |              ^
main.c:17:14: error: missing terminating " character
   17 |       printf("\")
      |              ^~~~
main.c:18:5: error: expected expression before '}' token
   18 |     }
      |     ^
main.c:17:14: error: expected ';' before '}' token
   17 |       printf("\")
      |              ^
      |              ;
   18 |     }
      |     ~         
main.c:19:19: error: expected ';' at end of input
   19 |     printf("\n\n")
      |                   ^
      |                   ;
main.c:19:5: error: expected declaration or statement at end of input
   19 |     printf("\n\n")
      |     ^~~~~~
main.c:19:5: error: expected declaration or statement at end of input
Language: C

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

  int h,w,x,y;
  while(1){scanf("%d%d",&h,&w);
    if(h==0&&w==0)break;
      for(x=0;x<h;x++){
      for(y=0;y<w;y++){
	printf("#");
      }
      printf("\n");}
      printf("\n");}
    }  
      return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:3:2: error: stray '#' in program
    3 | {#include<stdio.h>
      |  ^
main.c:3:3: error: 'include' undeclared (first use in this function)
    3 | {#include<stdio.h>
      |   ^~~~~~~
main.c:3:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:11: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
    3 | {#include<stdio.h>
      |           ^~~~~
      |           stdin
main.c:4:1: error: expected expression before 'int'
    4 | int main()
      | ^~~
main.c: At top level:
main.c:20:3: error: expected identifier or '(' before 'while'
   20 |   while(1){scanf("%d%d",&h,&w);
      |   ^~~~~
main.c:28:5: error: expected identifier or '(' before '}' token
   28 |     }
      |     ^
main.c:29:7: error: expected identifier or '(' before 'return'
   29 |       return 0;
      |       ^~~~~~
main.c:30:3: error: expected identifier or '(' before '}' token
   30 |   }
      |   ^