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

#include<bits/stdc++.h>

using namespace std;

int main(){

int H,W;

cin >>H>>W;

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

for(int i=0; i<H;i++){
for(int j=0;j<W;j++){
cout<<"#";
}
cout<<endl;
}
cout<<endl;
}

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: break statement not within loop or switch
   11 | if(H==0 && W==0) break;
      |                  ^~~~~
a.cc: At global scope:
a.cc:22:1: error: expected unqualified-id before 'return'
   22 | return 0;
      | ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int H,W;
    char s = '#';
    while(W != 0 || H != 0){
     cin>>H>>W;
    for(int i=0;i<H;i++){
        for(int a = 0;a<W;a++){
            cout<<s;
        }
        cout<<endl;
        a = 0;
    }
    cout<<endl;
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'a' was not declared in this scope
   14 |         a = 0;
      |         ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
         int W,H,a;
         char s ='#';
    while(W!=0|H!=0){
   
     cin>>H>>W;
    for(i=0;i<H;i++){
        for( a = 0;a<W;a++){
            cout<<s;
        }
        cout<<endl;
        a = 0;
    }
    cout<<endl;
    }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'i' was not declared in this scope
   10 |     for(i=0;i<H;i++){
      |         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  while(1){
    int H, W;
    cin>>H>>W>>;
    if(H == 0 && W == 0) break;

    for(int i=0;i<H;i++){
      for(int j=0;j<W;j++){
	cout<<"#";
      }
      cout<<endl;
    }
    cout<<endl;
  }

}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected primary-expression before ';' token
    8 |     cin>>H>>W>>;
      |                ^
Language: C++

#include <iostream>
 int main() {
  int H, W;
  int c = 0;
  while (1) {
   std::cin >> H >> W;
   if (H == 0 && W == 0) break;
   if (c > 0) {
    std::cout <<   <<std::endl;
   }
   c++;
   for (int i = 0; i < H; i++) {
         for (int j = 0; j < W; j++) {
          std::cout << "#";
         }
    }








  }



return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected primary-expression before '<<' token
    9 |     std::cout <<   <<std::endl;
      |                    ^~
Language: C++

#include <iostream>
#include <iomanip>
#include <vector>

int main (){
  int h, w;
  while (true) {
    std::cin >> h >> w;
    if (h == 0 && w == 0){
      return 0;
    }else{
      for (size_t i = 0; i < h; i++) {
        for (size_t j = 0; j < w; j++) {
          std::cout << "#";
        }
        std::endl;
      }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: statement cannot resolve address of overloaded function
   16 |         std::endl;
      |                  ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main (){
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace

int main(){
  while(1){
    int H, W;
    cin>>H>>W;
    if(H == 0 && W == 0) break;

    for(int i=0;i<H;i++){
      for(int j=0;j<W;j++){
	cout<<"#";

      }
      cout<<endl;
    }

    return 0;
  }
  



Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(){
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 | int main(){
      | ~~~             
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>H>>W;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout<<"#";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |       cout<<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:13: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |       cout<<endl;
      |             ^~~~
      |             std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  while(1){
    int H, W;
    cin>>H>>W;
    if(H == 0 && W == 0) break;

    for(int i=0;i<H;i++){
      for(int j=0;j<W;j++){
	cout<<"#";

      }
      cout<<endl;
    }

    return 0;
  }



Compiler output:
a.cc: In function 'int main()':
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int H,W;
cin>>H>>W;

while(1){
if(W==0&&H==0) break;

for(int i=0;i<H;i++){
for(int j=0;j<W,j++){
cout<<"#";
}
cout<<endl;
}
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before ')' token
   11 | for(int j=0;j<W,j++){
      |                    ^
      |                    ;
Language: C++

int main() {
	int i, j, H, W;
	while (1) {
		cin >> H >> W;

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

		for (i = 0; i < H; i++) {
			for (j = 0; j < W; j++) {
				cout << "#";
			}
			cout << endl;
		}
	}
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'cin' was not declared in this scope
    4 |                 cin >> H >> W;
      |                 ^~~
a.cc:10:33: error: 'cout' was not declared in this scope
   10 |                                 cout << "#";
      |                                 ^~~~
a.cc:12:25: error: 'cout' was not declared in this scope
   12 |                         cout << endl;
      |                         ^~~~
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |                         cout << endl;
      |                                 ^~~~
Language: C++

#include<cstdio>

int main(){
    int H,W;
    scanf("%d %d",H,W);
for(int i = 0;i = H;i++){
for (int j = 0;j = W;j++){
    cout << "#";
    }
    cout <<endl;
}  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "#";
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout <<endl;
      |     ^~~~
a.cc:10:12: error: 'endl' was not declared in this scope
   10 |     cout <<endl;
      |            ^~~~
Language: C++

/*
 * rei.cpp
 *
 *  Created on: 2018/05/07
 *      Author: J01003
 */

#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
    int a,b,t,m;
    t=1;
    m=0;
    while(1){
    cin>>a>>b;
    if(a==0&&b==0){
    	return 0;
    }
    while (1){
    	cout<<"#";
    	t++;
    	if(t==b){
    		cout<<"#"<<endl;
    		t=1;
    		m++;
    	}if(m==a){
    		m=0;
    		break;
    }
    }
	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){

int H, W;
cin>>H>>W;
 for ( int j = 0; j < H;j++){
 for (int i = 0; i < W; i++){
  cout<<"#";
}
  cout<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 |  int main(){
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){

 for ( int j = 0; j < W;j++){
 for (int i = 0; i < H; i++){
  cout<<'#';
}
  cout<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'W' was not declared in this scope
    6 |  for ( int j = 0; j < W;j++){
      |                       ^
a.cc:7:22: error: 'H' was not declared in this scope
    7 |  for (int i = 0; i < H; i++){
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
int W,H;
cin>>W>>H;
 for ( int i = 0; i < H;i++){
 for ( int j = 0; j < W; j++){
  cout<<'#';
}break=0;
  cout<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected ';' before '=' token
   10 | }break=0;
      |       ^
      |       ;
a.cc:10:7: error: expected primary-expression before '=' token
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
int W,H;
cin>>W>>H;
 for ( int i = 0; i < H;i++){
 for ( int j = 0; j < W; j++){
  cout<<'#'};

  cout<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before '}' token
    9 |   cout<<'#'};
      |            ^
      |            ;
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
int W,H;
cin>>W>>H;
if(H==0&&W==0)break;
 for ( int i = 0; i < H;i++){
 for ( int j = 0; j < W; j++){
  cout<<'#';
}
  cout<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: break statement not within loop or switch
    7 | if(H==0&&W==0)break;
      |               ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
int W,H;
cin>>W>>H;
if(H==0 && W==0)break;
 for ( int i = 0; i < H;i++){
 for ( int j = 0; j < W; j++){
  cout<<'#';
}
  cout<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: break statement not within loop or switch
    7 | if(H==0 && W==0)break;
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
int W,H;
cin>>W>>H;
if(H == 0 && W == 0) break;
 for ( int i = 0; i < H;i++){
 for ( int j = 0; j < W; j++){
  cout<<'#';
}
  cout<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: break statement not within loop or switch
    7 | if(H == 0 && W == 0) break;
      |                      ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
int W,H;
cin>>W>>H;
if(H == 0 && W == 0) break;
 for ( int i = 0; i < H;i++){
 for ( int j = 0; j < W; j++){
  cout<<"#";
}
  cout<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: break statement not within loop or switch
    7 | if(H == 0 && W == 0) break;
      |                      ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

 int main(){
while(1){
int W,H;
cin>>W>>H;
if(H == 0 && W == 0) break;
 for ( int i = 0; i < H;i++){
 for ( int j = 0; j < W; j++){
  cout<<"#";
}
  cout<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 |  int main(){
      |            ^
Language: C++

#include <iostream>
using namespace std;



int main()
{
	int H, W,i,j;
	while(cin>>H>>W){
		for (i = 1;i <= H;i++){
			for (j = 1;j <= W;j++) {
				cout << "#";
			}
			cout << endl;
		}
		if (H = 0, W = 0) break;
		cout << endl;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: expected '}' at end of input
   18 |         }
      |          ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include "stdafx.h"
#include<iostream>
using namespace std;

int main()
{
	int a, b;
	while(cin >> a >> b&&a!=0&&b!=0){
		for (int i = 0; i < a; i++){
			for (int i = 0; i < b; i++){
				cout << '#';
			}
			cout << endl;
		}cout << endl;
	}
	return 0;
}


Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d %d",&H,&W);
      |         ^~~~~
a.cc:8:13: error: 'printf' was not declared in this scope
    8 |             printf("#");}
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:9:9: error: 'printf' was not declared in this scope
    9 |         printf("\n");}
      |         ^~~~~~
a.cc:9:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("\n");}
      |     ^~~~~~
a.cc:10:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d %d",&H,&W);
      |         ^~~~~
a.cc:8:13: error: 'printf' was not declared in this scope
    8 |             printf("#");}
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:9:9: error: 'printf' was not declared in this scope
    9 |         printf("\n");}
      |         ^~~~~~
a.cc:9:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("\n");}
      |     ^~~~~~
a.cc:10:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<iostream>
using namespace std;

int main(){

int i,j,H,W;
while (１) {
	if (H!=0 || W!=0) {
		cin >>H>>W;
		for (i=0;i<H;i++) {
			for (j=0;j<W;j++) {
				cout <<"#";
			}
			cout <<endl;
		}
		cout <<endl;
	} else break;
}

}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: '\U0000ff11' was not declared in this scope
    7 | while (１) {
      |        ^~
Language: C++

#include<iostream>
using namespace std;

int main() {
int i,j,x,y;
while (1) {
cin >> x >> y;
if ( x == 0 && y == 0 ) break;
for ( int i = 0; i < y; i++ ){
for ( int j = 0; j < x; j++ ){
cout <<"#"cout << endl;
}
}
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: unable to find string literal operator 'operator""cout' with 'const char [2]', 'long unsigned int' arguments
   11 | cout <<"#"cout << endl;
      |        ^~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C++

int main(void){
    // Your code here!
    int W,H,i,j;
    cin>>W,H;
    while(1){
    for(j=1; j<=H; j++){
        for(i=1; i<=W; i++){
            cout<<'#'<<flush;
        }
        cout<<'\n'<<endl;
    }
    }     
        return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>W,H;
      |     ^~~
a.cc:8:13: error: 'cout' was not declared in this scope
    8 |             cout<<'#'<<flush;
      |             ^~~~
a.cc:8:24: error: 'flush' was not declared in this scope
    8 |             cout<<'#'<<flush;
      |                        ^~~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<'\n'<<endl;
      |         ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |         cout<<'\n'<<endl;
      |                     ^~~~
Language: C++

#include <stdio.h>
#include <algorithm>
 
using namespace std;
 
int main(){
    int H,W;
    while(1){
        cin>>H,W;
        if(H == 0 && W == 0) break;
        for(int i = 0; i < H; i++){
            for(int j = 0; j < W; j++){
                cout<<'#'<<endl;
            }
            cout<<'\n'<<endl;
        }
        cout<<'\n'<<endl;

    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin>>H,W;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <algorithm>
  +++ |+#include <iostream>
    3 | 
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout<<'#'<<endl;
      |                 ^~~~
a.cc:13:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:28: error: 'endl' was not declared in this scope
   13 |                 cout<<'#'<<endl;
      |                            ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <algorithm>
  +++ |+#include <ostream>
    3 | 
a.cc:15:13: error: 'cout' was not declared in this scope
   15 |             cout<<'\n'<<endl;
      |             ^~~~
a.cc:15:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:25: error: 'endl' was not declared in this scope
   15 |             cout<<'\n'<<endl;
      |                         ^~~~
a.cc:15:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout<<'\n'<<endl;
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:21: error: 'endl' was not declared in this scope
   17 |         cout<<'\n'<<endl;
      |                     ^~~~
a.cc:17:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

judge=True
while judge:
    N=list(map(int,input().split()))
    if N[0] + N[1] == 0:
        judge = False
    else :
        for i in range(0,N[0]):
            for j in range(0,N[1]):
                print("#",end="")
            print("\n",end="")




Compiler output:
a.cc:1:1: error: 'judge' does not name a type
    1 | judge=True
      | ^~~~~
Language: C++

#include "stdafx.h"
#include<iostream>

using namespace std;


int main()
{
	while(true) {
		int h;
		int w;
		cin >> h >> w;
		if (h == 0 && w == 0)break;

		for (int i = 0;i < h;i++) {
			for (int j = 0;j < w;j++) {
				cout << "#";
			}
			cout << endl;
		}
		cout << endl;
	}

    return 0;
}


Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

# -*- coding: utf-8

while True:
   if map(int,raw_input().split()) == [0,0]:
      break

   a = map(int,raw_input().split())
   for i in range(a[0]):
      print('#'*a[1])
      print(i)



Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8
      |   ^
a.cc:3:1: error: expected unqualified-id before 'while'
    3 | while True:
      | ^~~~~
Language: C++

# -*- coding: utf-8

while True:
   a = map(int,raw_input().split())
   for i in range(a[0]):
      print('#'*a[1])
   if raw_input() == '0 0':
      break



Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8
      |   ^
a.cc:7:22: warning: multi-character character constant [-Wmultichar]
    7 |    if raw_input() == '0 0':
      |                      ^~~~~
a.cc:3:1: error: expected unqualified-id before 'while'
    3 | while True:
      | ^~~~~
Language: C++

# -*- coding: utf-8

while True:
   a = map(int,raw_input().split())
   for i in range(a[0]):
      print('#'*a[1])
      print('\n')
   if raw_input() == '0 0':
      break



Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8
      |   ^
a.cc:8:22: warning: multi-character character constant [-Wmultichar]
    8 |    if raw_input() == '0 0':
      |                      ^~~~~
a.cc:3:1: error: expected unqualified-id before 'while'
    3 | while True:
      | ^~~~~
Language: C++

# -*- coding: utf-8

while True:
   a = map(int,raw_input().split())
   if a == [0,0]:
      break
   for i in range(a[0]):
      print('#'*a[1])
#   print('\n')




Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8
      |   ^
a.cc:9:5: error: invalid preprocessing directive #print
    9 | #   print('\n')
      |     ^~~~~
a.cc:3:1: error: expected unqualified-id before 'while'
    3 | while True:
      | ^~~~~
Language: C++

#include <stdio.h>

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

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

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: expected ')' before '!' token
   18 |         } while (H ! 0 & W ! 0);
      |                 ~ ^~
      |                   )
a.cc:18:19: error: expected ';' before '!' token
   18 |         } while (H ! 0 & W ! 0);
      |                   ^~
      |                   ;
a.cc:18:27: error: expected ';' before '!' token
   18 |         } while (H ! 0 & W ! 0);
      |                           ^~
      |                           ;
Language: C++

#include <stdio.h>

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

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

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected 'while' at end of input
   20 | }
      |  ^
a.cc:20:2: error: expected '(' at end of input
   20 | }
      |  ^
      |  (
a.cc:20:2: error: expected primary-expression at end of input
a.cc:20:2: error: expected ')' at end of input
   20 | }
      |  ^
      |  )
a.cc:20:2: error: expected ';' at end of input
   20 | }
      |  ^
      |  ;
a.cc:20:2: error: expected '}' at end of input
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <stdio.h>

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

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

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected 'while' at end of input
   20 | }
      |  ^
a.cc:20:2: error: expected '(' at end of input
   20 | }
      |  ^
      |  (
a.cc:20:2: error: expected primary-expression at end of input
a.cc:20:2: error: expected ')' at end of input
   20 | }
      |  ^
      |  )
a.cc:20:2: error: expected ';' at end of input
   20 | }
      |  ^
      |  ;
a.cc:20:2: error: expected '}' at end of input
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <stdio.h>

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

	do{
		scanf_s("%d%d", &H, &W);

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   10 |                 scanf_s("%d%d", &H, &W);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <stdio.h>

int main() {

	int H;
	int W;
	int i;
	int j;

	do{
		scanf_s("%d%d", &H, &W);

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   11 |                 scanf_s("%d%d", &H, &W);
      |                 ^~~~~~~
      |                 scanf
Language: C++

  

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


Compile Error Logs: 

 




Compiler output:
a.cc:3:20: warning: extra tokens at end of #include directive
    3 | #include <stdio.h> int main(void) { int i, j, h, w, k; while( 1 ) { scanf("%d%d", &h, &w); if(!h && !w) break; for(j = 0; j < h; ++j) { for(k = 0; k < w; ++k) printf("#"); printf("\n"); } printf("\n"); } return 0; }
      |                    ^~~
a.cc:6:1: error: 'Compile' does not name a type
    6 | Compile Error Logs:
      | ^~~~~~~
Language: C++

  

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




 




Compiler output:
a.cc:3:20: warning: extra tokens at end of #include directive
    3 | #include <stdio.h> int main(void) { int i, j, h, w, k; while( 1 ) { scanf("%d%d", &h, &w); if(!h && !w) break; for(j = 0; j < h; ++j) { for(k = 0; k < w; ++k) printf("#"); printf("\n"); } printf("\n"); } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++


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



Compiler output:
a.cc:2:20: warning: extra tokens at end of #include directive
    2 | #include <stdio.h> int main(void) { int i, j, h, w, k; while( 1 ) { scanf("%d%d", &h, &w); if(!h && !w) break; for(j = 0; j < h; ++j) { for(k = 0; k < w; ++k) printf("#"); printf("\n"); } printf("\n"); } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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



Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(void) { int i, j, h, w, k; while( 1 ) { scanf("%d%d", &h, &w); if(!h && !w) break; for(j = 0; j < h; ++j) { for(k = 0; k < w; ++k) printf("#"); printf("\n"); } printf("\n"); } return 0; }
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++



#include<iostream> using namespace std; int main(){ int h,w; while(cin >> h >> w && h||w){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++) cout << "#"; cout << endl; } cout << endl; } } 


Compile Error Logs: 

 



Compiler output:
a.cc:3:20: warning: extra tokens at end of #include directive
    3 | #include<iostream> using namespace std; int main(){ int h,w; while(cin >> h >> w && h||w){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++) cout << "#"; cout << endl; } cout << endl; } }
      |                    ^~~~~
a.cc:6:1: error: 'Compile' does not name a type
    6 | Compile Error Logs:
      | ^~~~~~~
Language: C++



#include<iostream> using namespace std; int main(){ int h,w; while(cin >> h >> w && h||w){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++) cout << "#"; cout << endl; } cout << endl; } } 






Compiler output:
a.cc:3:20: warning: extra tokens at end of #include directive
    3 | #include<iostream> using namespace std; int main(){ int h,w; while(cin >> h >> w && h||w){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++) cout << "#"; cout << endl; } cout << endl; } }
      |                    ^~~~~
/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<iostream> using namespace std; int main(){ int h,w; while(cin >> h >> w && h||w){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++) cout << "#"; cout << endl; } cout << endl; } } 






Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream> using namespace std; int main(){ int h,w; while(cin >> h >> w && h||w){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++) cout << "#"; cout << endl; } cout << endl; } }
      |                    ^~~~~
/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<iostream> using namespace std; int main(){ int h,w; while(cin >> h >> w && h||w){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++) cout << "#"; cout << endl; } cout << endl; } }


Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream> using namespace std; int main(){ int h,w; while(cin >> h >> w && h||w){ for(int i=0;i<h;i++){ for(int j=0;j<w;j++) cout << "#"; cout << endl; } cout << endl; } }
      |                    ^~~~~
/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<iostream>
using namespace std;
int main(){
	int H, W,i,j,k;
	for (i = 0; i < 1000; i++){
		cin >> H >> W;
		if (W == 0 && H == 0){ break; }
		else if{
			for (j = 0; j < H; j++){
				for (k = 0; k < W; k++){
					cout << "#";
				}cout << endl;
			}

		}
	}
		return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected '(' before '{' token
    8 |                 else if{
      |                        ^
      |                        (
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int H,W;
  for(;;){
    cin >> H >> W ;
    if(H=0&&W=0) return 0;
    else{
      for(int i=0;i<H;i++){
        for(int j=0;j<W-1;j++)
          cout << "#";
           
          cout << "#" << endl;}}
}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: lvalue required as left operand of assignment
   10 |     if(H=0&&W=0) return 0;
      |          ~^~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int H,W;
  for(;;){
    cin >> H >> W ;
    if(H=0&&W=0) return 0;
    else{
      for(int i=0;i<H;i++){
        for(int j=0;j<W-1;j++)
          cout << "#";
           
          cout << "#" << endl;}}

return 0;

}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: lvalue required as left operand of assignment
   10 |     if(H=0&&W=0) return 0;
      |          ~^~~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int H,W;
  for(;;){
    cin >> H >> W ;
    if(H=0&&W=0) break;
    else{
      for(int i=0;i<H;i++){
        for(int j=0;j<W-1;j++)
          cout << "#";
           
          cout << "#" << endl;}}

return 0;

}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: lvalue required as left operand of assignment
   10 |     if(H=0&&W=0) break;
      |          ~^~~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int H,W;
  for(;;){
    cin >> H >> W ;
    if(H=0&&W=0) 
      break;
    else{
      for(int i=0;i<H;i++){
        for(int j=0;j<W-1;j++)
          cout << "#";
           
          cout << "#" << endl;}}

return 0;

}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: lvalue required as left operand of assignment
   10 |     if(H=0&&W=0)
      |          ~^~~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int H,W;
  for(;;){
    cin >> H >> W ;
    if(H==0&&W==0) 
      break;
    else{
      for(int i=0;i<H;i++){
        for(int j=0;j<W-1;j++)
          cout << "#";
           
          cout << "#" << endl;}}

return 0;

}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int H,W;
  for(;;){
    cin >> H >> W ;
    if(H==0&&W==0) {
      break;}
    else{
      for(int i=0;i<H;i++){
        for(int j=0;j<W-1;j++){
          cout << "#";}
          cout << "#" << endl;}}

return 0;

}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int h,w;
  for(;;){
    cin >>h>>w;
    if(h==0&&w==0) {
      break;}
    else{
      for(int i=0;i<h;i++){
        for(int j=0;j<w-1;j++){
          cout << "#";}
          cout << "#" << endl;}}

return 0;

}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int h,w;
  for(;;){
    cin >>h>>w;
    if(h==0&&w==0) {
      break;
      }
    else{
      for(int i=0;i<h;i++){
        for(int j=0;j<w-1;j++){
          cout << "#";
          }
          cout << "#" << endl;
         }}

return 0;

}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int h,w;
  for(;;){
    cin >>h>>w;
    if(h==0&&w==0) {
      break;
      }
    else{
      for(int i=0;i<h;i++){
        for(int j=0;j<w-1;j++){
          cout << "#";
          }
          cout << "#" << endl;
         }
          cout<<" "<< endl;
         }

return 0;

}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int h,w;
  for(;;){
    cin >>h>>w;
    if(h==0&&w==0) {
      break;
      }
    else{
      for(int i=0;i<h;i++){
        for(int j=0;j<w-1;j++){
          cout << "#";
          }
          cout << "#" << endl;
         }
          cout<<" "<< endl;
         }

return 0;
}

  



Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
int main (){
	int W,V,;
	for(int v = 0; v <=1000; v++ ){
		cin>>V>>W;
		cout<<" "<<endl;
		if(W==0&&V==0){
			break;}
	for(int z = 0; z < V; z++ ){
	for(int y = 0; y < W; y++ ){
		cout<<"#";
	}
	cout<<endl;
	}cout<<" "<<endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: expected unqualified-id before ';' token
    4 |         int W,V,;
      |                 ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C++

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


Compiler output:
a.cc:16:3: error: expected unqualified-id before 'return'
   16 |   return 0;
      |   ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>

using namespace std;

int main(){
    int h,w;
    
    cin>>h>>w;
    while(h !=0){
        int i,j;
        for(i=o;i<h;i++){
            for(j = 0;j<w;j++){
                cout<<"#";
                
            }
            cout<<endl;
            
        }
        cout<<endl;
        
        cin>>h>>w;
        
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'o' was not declared in this scope
   11 |         for(i=o;i<h;i++){
      |               ^
Language: C++

#include<iostream>

using namespace std;

int main(){
    int h,w;
    
    cin>>h>>w;
    
    while(h != 0){
        int i,j;
        for(i=o;i<h;i++){
            for(j = 0;j<w;j++){
                cout<<"#";
                
            }
            cout<<endl;
            
        }
        cout<<endl;
        
        cin>>h>>w;
        
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'o' was not declared in this scope
   12 |         for(i=o;i<h;i++){
      |               ^
Language: C++

let () = 
    let rec f _ = 
        let (h, w) = Scanf.sscanf(read_line()) "%d %d" (fun x y -> (x, y)) in
        if h = 0 && w = 0 then ()
        else (
            let row = String.make w '#' in
            for _ = 1 to h do Printf.printf "%s\n" row; done;
            print_newline ();
            f ()
        )
    in f ();;


Compiler output:
a.cc:1:8: error: expected constructor, destructor, or type conversion before '=' token
    1 | let () =
      |        ^
a.cc:7:57: error: 'done' does not name a type
    7 |             for _ = 1 to h do Printf.printf "%s\n" row; done;
      |                                                         ^~~~
a.cc:8:29: error: expected constructor, destructor, or type conversion before ';' token
    8 |             print_newline ();
      |                             ^
a.cc:10:9: error: expected constructor, destructor, or type conversion before ')' token
   10 |         )
      |         ^
Language: C++

#include <stdio.h>
int main(void){
 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");
     }
     printf("\n");
 }
 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before ')' token
    8 |      for(i=0+i<h+i++){
      |                     ^
      |                     ;
a.cc:15:2: error: expected primary-expression before '}' token
   15 |  }
      |  ^
a.cc:14:19: error: expected ')' before '}' token
   14 |      printf("\n");
      |                   ^
      |                   )
   15 |  }
      |  ~                 
a.cc:8:9: note: to match this '('
    8 |      for(i=0+i<h+i++){
      |         ^
a.cc:15:2: error: expected primary-expression before '}' token
   15 |  }
      |  ^
Language: C++

#include <stdio.h>
int main(void){
 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");
     }
     printf("\n");
 }
 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   10 |              printf('#');
      |                     ^~~
      |                     |
      |                     char
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>
int main(void){
 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");
     }
     printf("\n");
 }
 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   10 |              printf('#');
      |                     ^~~
      |                     |
      |                     char
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>
int main(void){
 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");
     }
     printf("\n");
 }
 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   10 |              printf('#');
      |                     ^~~
      |                     |
      |                     char
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>
#define PI 3.141592653589
using namespace std;

int main(){
	while(1){
		int H,W;
		cin >> H >>W;
		
		if(H==0 && W==0)break;
		for(int y=0;y<H;y++){
			for(int x=0;x<W){
				printf("#");
			}
			printf("\n");
		}
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:40: error: expected ';' before ')' token
   12 |                         for(int x=0;x<W){
      |                                        ^
      |                                        ;
Language: C++

#include <iostream>
using namespace std;
int main(){
int H, W;
for (int i = 0; ; i++)}
cin >> H >> W;
if (H==0 && W==0) break;
for (int h=0; h<H; h++){
for (int w=0; w<W; w++) cout << "#";
cout << endl;
}
cout << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: expected primary-expression before '}' token
    5 | for (int i = 0; ; i++)}
      |                       ^
a.cc: At global scope:
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> H >> W;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if (H==0 && W==0) break;
      | ^~
a.cc:8:1: error: expected unqualified-id before 'for'
    8 | for (int h=0; h<H; h++){
      | ^~~
a.cc:8:15: error: 'h' does not name a type
    8 | for (int h=0; h<H; h++){
      |               ^
a.cc:8:20: error: 'h' does not name a type
    8 | for (int h=0; h<H; h++){
      |                    ^
a.cc:12:1: error: 'cout' does not name a type
   12 | cout << endl;
      | ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

int main() {
	int h, w;
	while (true) {
		cin >> h >> w;
		if ((h | w) != 0) {
			for (int i = 0; i < h; i++) {
				for (int j = 0; j < w; j++) {
					cout << "#";
				}
				cout << endl;
			}
			cout << endl;
		} else {
			break;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'cin' was not declared in this scope
    4 |                 cin >> h >> w;
      |                 ^~~
a.cc:8:41: error: 'cout' was not declared in this scope
    8 |                                         cout << "#";
      |                                         ^~~~
a.cc:10:33: error: 'cout' was not declared in this scope
   10 |                                 cout << endl;
      |                                 ^~~~
a.cc:10:41: error: 'endl' was not declared in this scope
   10 |                                 cout << endl;
      |                                         ^~~~
a.cc:12:25: error: 'cout' was not declared in this scope
   12 |                         cout << endl;
      |                         ^~~~
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |                         cout << endl;
      |                                 ^~~~
Language: C++

#include<iostream>
using namespace std;

int maim(){
  int h, w, i, j;
  while(1){
    cin >> h >> w;
    if(h == 0 && w == 0){
      break;
    }
    for(int i = 0; i < h; i++){
      for(int j = 0; j < w; j++){
	cout << "#";
      }
      cout << "\n";
    }
    cout << "\n";
  }
  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<iostream>
using namespace std;

int maim(){
  int h, w;
  while(1){
    cin >> h >> w;
    if(h == 0 && w == 0){
      break;
    }
    for(int i = 0; i < h; i++){
      for(int j = 0; j < w; j++){
	cout << "#";
      }
      cout << "\n";
    }
    cout << "\n";
  }
  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 <iostream>
#include <cstdio>
#include <math.h>
using namespace std;

int main(){
    int a, b;
    //char op;
    while( cin >> a >> >> b, a ){
        for( int i = 0; i < a; i++ ){
            for( int j = 0; j < b; j++ ){
                cout << '#';
            }
            cout << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected primary-expression before '>>' token
    9 |     while( cin >> a >> >> b, a ){
      |                        ^~