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

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

int main(){
  int high,width;
  cin >> high >> width;
  vector<string> word(high);
  for(int i = 0; i < high; i++){
    cin >> word.at(i);
  }
  std::string str = std::string((width + 2), '#');
  cout << str << endl;
  for(int i = 0; i < high; i++){
    cout << '#';
    cout << word.at(i);
    cout << '#' << endl;
  }
  
  cout << str << endl

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

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

int main(){
  int high,width;
  cin >> high >> width;
  vector<string> word(high);
  for(int i = 0; i < high; i++){
    cin >> word.at(i);
  }
  cout << "#" * (width + 2) << endl;
  for(int i = 0; i < high; i++){
    cout << "#";
    cout << word.at(i);
    cout << "#" << endl;
  }
  
  cout << "#" * (width + 2) << endl

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   11 |   cout << "#" * (width + 2) << endl;
      |           ~~~ ^ ~~~~~~~~~~~
      |           |            |
      |           |            int
      |           const char [2]
a.cc:18:15: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   18 |   cout << "#" * (width + 2) << endl
      |           ~~~ ^ ~~~~~~~~~~~
      |           |            |
      |           |            int
      |           const char [2]
a.cc:18:36: error: expected '}' at end of input
   18 |   cout << "#" * (width + 2) << endl
      |                                    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#####
#abc#
#arc#
#####

Compiler output:
a.cc:1:1: error: stray '##' in program
    1 | #####
      | ^~
a.cc:1:3: error: stray '##' in program
    1 | #####
      |   ^~
a.cc:1:5: error: stray '#' in program
    1 | #####
      |     ^
a.cc:2:2: error: invalid preprocessing directive #abc
    2 | #abc#
      |  ^~~
a.cc:3:2: error: invalid preprocessing directive #arc
    3 | #arc#
      |  ^~~
a.cc:4:1: error: stray '##' in program
    4 | #####
      | ^~
a.cc:4:3: error: stray '##' in program
    4 | #####
      |   ^~
a.cc:4:5: error: stray '#' in program
    4 | #####
      |     ^
Language: C

#include <iostream>
using namespace std;

int main(){
  int h , w, i, j;
  cin >> h >> w;
  char m[h + 2][w + 2];
  for(i = 1; i < h + 1; i++){
    for(j = 1; j < w + 1; j++){
      cin >> m[i][j];
    }
  }
  for(i = 0; i < h + 2; i++){
    m[i][0] = '#';
    m[i][w + 1] = '#';
  }
  for(i = 0; i < w + 2; i++){
    m[0][i] = '#';
    m[h + 1][i] = '#';
  }
  for(i = 0; i < h + 2; i++){
    for(j = 0; j < w + 2; j++){
      cout << m[i][j];
    }
    cout << endl;
  }
  return 0;
}


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

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

char a [100][101] , b [102][102];

int main () {
    int H , W ; cin >> H >> W ;
    for ( int i = 0; i < H ; i ++)
        scanf ("% s " , a [ i ]);

    for ( int i = 0; i < H + 2; i ++)
        for ( int j = 0; j < W + 2; j ++)
            b [ i ][ j ] = ’# ’;

    for ( int i = 0; i < H ; i ++)
        for ( int j = 0; j < W ; j ++)
            b [ i + 1][ j + 1] = a [ i ][ j ];

    for ( int i = 0; i < H + 2; i ++) {
        for ( int j = 0; j < W + 2; j ++)
            cout << b [ i ][ j ];
        cout << endl ;

}

Compiler output:
a.cc:13:28: error: extended character ’ is not valid in an identifier
   13 |             b [ i ][ j ] = ’# ’;
      |                            ^
a.cc:13:29: error: stray '#' in program
   13 |             b [ i ][ j ] = ’# ’;
      |                             ^
a.cc:13:31: error: extended character ’ is not valid in an identifier
   13 |             b [ i ][ j ] = ’# ’;
      |                               ^
a.cc: In function 'int main()':
a.cc:13:28: error: '\U00002019' was not declared in this scope
   13 |             b [ i ][ j ] = ’# ’;
      |                            ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:6:13: note: to match this '{'
    6 | int main () {
      |             ^
Language: C++

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

char a[100][101], b[102][102];

int main() {
    int H, W; cin >> H >> W;
    for (int i = 0; i < H; i++) {
        scanf("%s", a[i]);
    }

    for (int i = 0; i < H + 2; i++) {
        for (int j = 0; j < W; j++) {
            b[i][j] = '#';
        }
    }

    for (int i = 0; i < H; i++) {
        for (int j = 0; j < W; j++) {
            b[i + 1][j + 1] = a[i][j]
        }
    }

    for (int i = 0; i < H + 2; i++) {
        for (int j = 0; j < W + 2; j++)
            cout << b[i][j];
        cout << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:38: error: expected ';' before '}' token
   20 |             b[i + 1][j + 1] = a[i][j]
      |                                      ^
      |                                      ;
   21 |         }
      |         ~
Language: Java

import java.io.*;
import java.util.function.*;
import java.util.stream.*;
 
class Wandbox
{
    /**
     * ABC 062 B: Picture Frame
     *     (周囲1ピクセルを'#'で囲む)
     */ 
    public static void main(String[] args) throws IOException
    {
        // 入力
        BufferedReader br = new BufferedReader(
                new InputStreamReader(System.in));
        int[] HW = Stream.of(br.readLine().split(" ")).mapToInt(
                item -> new Integer(item)).toArray();
        Stream<String> as = br.lines().filter(item -> item.indexOf(" ") < 0);
 
        // 枠線を入れる
        // Streamは同じインスタンスで2度処理を実行できないため、Supplierを通す
        Supplier<Stream<String>> frame = () ->
                Stream.of(new String(new char[HW[1]]).replace("\0", "#"));
        Stream<String> out = Stream.concat(frame.get(), Stream.concat(as, frame.get())).map(
                item -> "#" + item + "#") ;        
 
        // 出力
        System.out.println(out.collect(Collectors.joining("\n")));
    }
}

Compiler output:
Main.java:17: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
                item -> new Integer(item)).toArray();
                        ^
1 warning
Language: Java

import java.io.*;
import java.util.function.*;
import java.util.stream.*;

class Wandbox
{
    /**
     * ABC 062 B: Picture Frame
     *     (周囲1ピクセルを'#'で囲む)
     */ 
    public static void main(String[] args) throws IOException
    {
        // 入力
        BufferedReader br = new BufferedReader(
                new InputStreamReader(System.in));
        int[] HW = Stream.of(br.readLine().split(" ")).mapToInt(
                item -> new Integer(item)).toArray();
        Stream<String> lines = br.lines();
        
        // データ部分を抽出
        Stream<String> a = lines.filter(item -> item.indexOf(" ") < 0);

        // 枠線を決める
        // Streamは同じインスタンスで2度処理を実行できないため、Supplierを通す
        Supplier<Stream<String>> frame = () ->
                Stream.of(new String(new char[HW[1]]).replace("\0", "#"));
        Stream<String> out = Stream.concat(frame.get(), Stream.concat(a, frame.get())).map(
                item -> "#" + item + "#") ;        

        // 出力(末尾は改行を入れない)
        System.out.print(out.collect(Collectors.joining("\n")).replaceFirst("\n$", ""));
    }
}


Compiler output:
Main.java:17: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
                item -> new Integer(item)).toArray();
                        ^
1 warning
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x,y;
  cin >> x >> y;
  vector<string> vec(x);
  for (int i = 0; i < x; i++){
    cin >> vec[i]
  }
  
  for (int i = 0; i < y; i++){
    cout << "#";
  }
  cout << endl;
  
  for (int i = 0; i < y; i++){
    cout << "#" << vec[i] << "#" << endl;
  }
  
  for (int i = 0; i < y; i++){
    cout << "#";
  }
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before '}' token
    8 |     cin >> vec[i]
      |                  ^
      |                  ;
    9 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x,y;
  cin >> x >> y;
  vector<string> vec(x);
  for (int i = 0; i < x; i++){
    string a;
    cin >> a;
    vec.push_back(a);
  }
  
  for (int i = 0; i < y; i++){
    cout << "#";
  }
  cout << endl;
  
  for (in i = 0; i < y; i++){
    cout << "#" << vec[i] << "#" << endl;
  }
  
  for (int i = 0; i < y; i++){
    cout << "#";
  }
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: 'in' was not declared in this scope; did you mean 'yn'?
   18 |   for (in i = 0; i < y; i++){
      |        ^~
      |        yn
a.cc:18:18: error: 'i' was not declared in this scope
   18 |   for (in i = 0; i < y; i++){
      |                  ^
Language: C++

#include<iostream>
#incltde<algorithm>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  int i;
  string c;
  for(i=0;i<=1+b;i++){
    cout<<"#";
  }
  cout<<endl;
  for(i=0;i<a;i++){
    cin>>c;
    cout<<"#"<<c<<"#"<<endl;
  }
  for(i=0;i<=1+b;i++){
    cout<<"#";
  }
  cout<<endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incltde; did you mean #include?
    2 | #incltde<algorithm>
      |  ^~~~~~~
      |  include
Language: C++

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

int main(){
	int a,b;
	cin>>a>>b;
	vector<string>d;
	for(int i=0;i<a;i++){
		for(int j=0;j<b;j++){
			cin>>d[i][j];
		}
	}
	for(int k=0;k<a+2;k++){
		for(int l=0;l<b+2;l++){
			if(k==0||k==a+1||l==0||l==b+1){
				cout<<"#";
			}
			else{
				cout<<[k+1][l+1];
			}
		}
		cout<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:41: error: expected ',' before '+' token
   19 |                                 cout<<[k+1][l+1];
      |                                         ^
      |                                         ,
a.cc:19:41: error: expected identifier before '+' token
a.cc: In lambda function:
a.cc:19:44: error: expected '{' before '[' token
   19 |                                 cout<<[k+1][l+1];
      |                                            ^
a.cc: In function 'int main()':
a.cc:19:44: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
Language: Java

#include<bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define int long long
#define vec(a,n) vector<int> (a)((n))
#define Vec(a,n) vector<string> (a)((n))
#define P pair<int,int>
#define PQ(n) priority_queue<P,vector<P>,greater<P>> (n)
#define pq(n) priority_queue<int> (n)
using namespace std;

signed main(){
    int h,w;
    cin >> h >> w;
    REP(i,w+2){
        cout << "#";
    }
    cout << endl;
    REP(i,h){
        cout << "#";
        string s;
        cin << s;
        cout << s << "#" << endl;
    }
    REP(i,w+2){
        cout << "#";
    }

    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<bits/stdc++.h>
        ^
Main.java:2: error: illegal character: '#'
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
^
Main.java:2: error: class, interface, enum, or record expected
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
                                       ^
Main.java:2: error: class, interface, enum, or record expected
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
                                                ^
Main.java:3: error: illegal character: '#'
#define REP(i, n) for (int i = 0; i < (n); ++i)
^
Main.java:3: error: class, interface, enum, or record expected
#define REP(i, n) for (int i = 0; i < (n); ++i)
                                  ^
Main.java:3: error: class, interface, enum, or record expected
#define REP(i, n) for (int i = 0; i < (n); ++i)
                                           ^
Main.java:4: error: illegal character: '#'
#define int long long
^
Main.java:5: error: illegal character: '#'
#define vec(a,n) vector<int> (a)((n))
^
Main.java:6: error: illegal character: '#'
#define Vec(a,n) vector<string> (a)((n))
^
Main.java:7: error: illegal character: '#'
#define P pair<int,int>
^
Main.java:8: error: illegal character: '#'
#define PQ(n) priority_queue<P,vector<P>,greater<P>> (n)
^
Main.java:9: error: illegal character: '#'
#define pq(n) priority_queue<int> (n)
^
Main.java:14: error: not a statement
    cin >> h >> w;
             ^
Main.java:16: error: not a statement
        cout << "#";
             ^
Main.java:18: error: not a statement
    cout << endl;
         ^
Main.java:20: error: not a statement
        cout << "#";
             ^
Main.java:22: error: not a statement
        cin << s;
            ^
Main.java:23: error: not a statement
        cout << s << "#" << endl;
                         ^
Main.java:26: error: not a statement
        cout << "#";
             ^
Main.java:12: error: unnamed classes are a preview feature and are disabled by default.
signed main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:15: error: ';' expected
    REP(i,w+2){
              ^
Main.java:19: error: ';' expected
    REP(i,h){
            ^
Main.java:25: error: ';' expected
    REP(i,w+2){
              ^
25 errors
Language: C++

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

int main(){
  int H,W;
  cin >>H >>W;
  vector<int> vec(W);
  for(int i = 1;i < H+1;i++){
    for(int j = 1;j < W+1;j++){
      cin >> vec.at(j);}
    
    if(i == 0||i == H){
    for(int j = 0;j < W+1;j++){
    cout << "#" <<endl;}
   }
    else if(i > 0){
      cout << "#" <<endl;
      for(int j = 1;j < W+1;j++){
        cout << vec.at(j) <<endl;
      if(j == W){
        cout << "#" <<endl;}
      }
  }
}

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

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

int main(){
  int H,W;
  cin >>H >>W;
  vector<int> vec(W);
  for(int i = 0;i < H;i++){
    for(int j = 0;j < W;j++){
      cin >> vec.at(j);
    }
    if(i == 0||i == H-1){
    for(int j = 0;j < W;j++){
    cout << "#" <<endl;
      }
    }
    else if(i > 0){
      cout << "#" <<endl;
      for(int j = 0;j < W;j++){
        cout << vec.at(j) <<endl;
      if(j == W-1){
        cout << "#" <<endl;
     }
      }
  }
}

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

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

int main(){
  int H,W;
  cin >>H >>W;
  vector<int> vec(W);
  for(int i = 0;i < H;i++){
    for(int j = 0;j < W;j++){
      cin >> vec.at(j);
    }
    if(i == 0||i == H-1){
    for(int j = 0;j < W;j++){
    cout << "#" <<endl;
      }
    }
    else if(i > 0){
      cout << "#" <<endl;
      for(int j = 0;j < W;j++){
        cout << vec.at(j) <<endl;
        }
    }
      else if(j == W-1){
        cout << "#" <<endl;
     }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:15: error: 'j' was not declared in this scope
   23 |       else if(j == W-1){
      |               ^
Language: C++

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

int main(){
  int H,W;
  cin >>H >>W;
  vector<int> vec(W);
  for(int i = 0;i < H;i++){
    for(int j = 0;j < W;j++){
      cin >> vec.at(j);
    }
    if(i == 0||i == H-1){
    for(int j = 0;j < W;j++){
    cout << "#" <<endl;
      }
    }
    else if(i > 0){
      cout << "#" <<endl;
      for(int j = 0;j < W;j++){
        cout << vec.at(j) <<endl;
        }
      else if(j == W-1){
        cout << "#" <<endl;
     }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:7: error: expected '}' before 'else'
   22 |       else if(j == W-1){
      |       ^~~~
a.cc:17:19: note: to match this '{'
   17 |     else if(i > 0){
      |                   ^
a.cc:22:15: error: 'j' was not declared in this scope
   22 |       else if(j == W-1){
      |               ^
Language: C++

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

int main(){
  int H,W;
  cin >>H >>W;
  vector<int> vec(W);
  for(int i = 0;i < H;i++){
    for(int j = 0;j < W;j++){
      cin >> vec.at(j);
    }
    if(i == 0||i == H-1){
    for(int j = 0;j < W;j++){
    cout << "#" <<endl;
      }
    }
    else if(i > 0){
      cout << "#" <<endl;
      if(W > j){
      for(int j = 0;j < W;j++){
        cout << vec.at(j) <<endl;
        }
        cout << "#" <<endl;
     }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: 'j' was not declared in this scope
   19 |       if(W > j){
      |              ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
  int H, W;
  cin >> H >> W;

  for ( int i = 0; i < W + 2; i++ ) cout << "#";
  cout << endl;

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected ';' before 'nt'
   13 |     for ( i nt j = 0; j < W; j++ ) {
      |            ^~~
      |            ;
a.cc:13:23: error: 'j' was not declared in this scope
   13 |     for ( i nt j = 0; j < W; j++ ) {
      |                       ^
Language: Java

import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int H=in.nextInt();
int W=in.nextInt();
String dum=in.nextLine();
String s[]=new String[H];
for (int i=0; i<H; i++)
s[i]=in.nextLine();
for(int i=0; i<W+2; i++)
System.out.print("#");
System.out.println("");
for (int i=0; i<H; i++)
System.out.println("#"+a[i]+"#");
for(int i=0; i<W+2; i++)
System.out.print("#");
}
}


Compiler output:
Main.java:17: error: cannot find symbol
System.out.println("#"+a[i]+"#");
                       ^
  symbol:   variable a
  location: class Main
1 error
Language: Java

import java.io.*;
public class c
{
      public static void main(String args[])throws IOException
    {
        BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
        String[] str=b.readLine().trim().split(" ");
        int r=Integer.parseInt(str[0]);
        int c=Integer.parseInt(str[1]);
        String[] line=new String[r];
        for(int i=0;i<r;i++)
        {
            line[i]=b.readLine();
        }
        String[][] s=new String[r+2][c+2];
        for(int i=0;i<r+2;i++)
        {
            for(int j=0;j<c+2;j++)
            {
                if(i==0||i==r+1||j==0||j==c+1)
                    System.out.print("#");
                else
                {
                    System.out.print(line[i-1].charAt(j-1));
                }
                    
            }
            System.out.println();
        }
        
    }
}

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

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

int main() {
  int H,W;
  cin >> H >> W;
  vector <string> a(100);
  for(int i=0;i<H+2;i++){
    for(int j=0;j<W+2;j++){
      if(0<i<H+1&&0<j<W+1){
        cin >> a[i][j];
      }  
      else a[i][j]="#";
    }  
  }  
  for(int i=0;i<H+2;i++){
    cout << a[i] <<endl;
  }  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 |       else a[i][j]="#";
      |                    ^~~
      |                    |
      |                    const char*
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  vector <string> a(100);
  for(int i=0;i<H+2;i++){
    for(int j=0;j<W+2;j++){
      if(0<i<H+1&&0<j<W+1){
        cin >> a[i][j];
      }  
      else a[i][j]="#";
    }  
  }  
  for(i=0;i<H+2;i++){
    cout << a[i] <<endl;
  }  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 |       else a[i][j]="#";
      |                    ^~~
      |                    |
      |                    const char*
a.cc:16:7: error: 'i' was not declared in this scope
   16 |   for(i=0;i<H+2;i++){
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	int H, W;
	cin >> H >> W;
	for (int i = 0; i < H; i++) {
		for (int j = 0; j < W:j++) {
			cin >> A[i][j];
		}
	}
	for (int i = 0; i < W + 1; i++) {
		cout << "#";
		if (i == W) {
			cout << endl;
		}
	}
	for (int i = 0; i < H ; i++) {
		cout << "#";
		for (int j = 0; j < W; j++) {
			cout << A[i][j];
		}
		cout << "#" << endl;
	}
	for (int i = 0; i < W + 1; i++) {
		cout << "#";
		if (i == W) {
			cout << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
    7 |                 for (int j = 0; j < W:j++) {
      |                                 ^
a.cc:7:38: error: found ':' in nested-name-specifier, expected '::'
    7 |                 for (int j = 0; j < W:j++) {
      |                                      ^
      |                                      ::
a.cc:7:37: error: 'W' is not a class, namespace, or enumeration
    7 |                 for (int j = 0; j < W:j++) {
      |                                     ^
a.cc:10:9: error: expected primary-expression before '}' token
   10 |         }
      |         ^
a.cc:9:18: error: expected ';' before '}' token
    9 |                 }
      |                  ^
      |                  ;
   10 |         }
      |         ~         
a.cc:10:9: error: expected primary-expression before '}' token
   10 |         }
      |         ^
a.cc:9:18: error: expected ')' before '}' token
    9 |                 }
      |                  ^
      |                  )
   10 |         }
      |         ~         
a.cc:7:21: note: to match this '('
    7 |                 for (int j = 0; j < W:j++) {
      |                     ^
a.cc:10:9: error: expected primary-expression before '}' token
   10 |         }
      |         ^
a.cc:20:33: error: 'A' was not declared in this scope
   20 |                         cout << A[i][j];
      |                                 ^
Language: C

#include<stdio.h>

int main(){
int h,w;
char a[100][101];
scanf("%d%d",&h,&w);
for(i=0;i<h;i++)scanf("%s",a[i]);
for(i=-1;i<=h;i++){
if(i==-1||i==h){
for(j=0;j<n+2;j++)printf("#");
puts("");
}
else{
printf("#%s#",a[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'i' undeclared (first use in this function)
    7 | for(i=0;i<h;i++)scanf("%s",a[i]);
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:5: error: 'j' undeclared (first use in this function)
   10 | for(j=0;j<n+2;j++)printf("#");
      |     ^
main.c:10:11: error: 'n' undeclared (first use in this function)
   10 | for(j=0;j<n+2;j++)printf("#");
      |           ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <utility>
#include <cstring>
#include <cmath>
#include <queue>
#include <stack>
#include <map>
#define INF (long)1e9
const int MOD = 1e9 + 7;
const int dx[] = {1, -1, 0, 0};
const int dy[] = {0, 0, 1, -1};
using namespace std;
typedef long long ll;
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	int h, w;
	cin >> h >> w;
	char A[h + 1][w + 1];
	for(int i = 0; i < h; i++)
	{
		for(int j = 0; j < w; j++)
		{
			cin >> A[i][j];
		}
	}
	for(int i = 0; i < h; i++)
	{
		if(i == 0)
		{
			for(int j = 0; j < w + 2; j++)
			{
				cout << '#';
			}
			cout << endl;
		}
		for(int j = 0; j < w; j++)
		{
			if(j == 0)
			{
				cout << '#';
			}
			cout << A[i][j];
			if(j == w - 1)
			{
				cout << '#';
			}
		}
		cout << endl;
		if(i == h - 1)
		{
			for(int j = 0; j < w + 2; j++)
			{
				cout << '#';
			}
		}
	}
	cout << endl;
	return 0;



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

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

int main(){
	int n, m, i, j, t, k;
	char a[111][111];
	while(~scanf("%d %d", &n, &m)){
		getchar();
		for(i = 0; i < n; i++)  { gets(a[i]); a[i][m] = '#'; }
		for(i = 0; i < m + 2; i++)  printf("#");
		printf("\n");
		for(i = 0; i < n; i++) { printf("#"); puts(a[i]); }
	    for(i = 0; i < m + 2; i++)  printf("#");
	    printf("\n");
	}
	return 0;
}

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

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

int main(){
	int n, m, i, j, t, k;
	char a[111][111];
	while(~scanf("%d %d", &n, &m)){
		getchar();
		for(i = 0; i < n; i++)  { gets(a[i]); a[i][m] = '#'; }
		for(i = 0; i < m + 2; i++)  printf("#");
		printf("\n");
		for(i = 0; i < n; i++) { printf("#"); puts(a[i]); }
	    for(i = 0; i < m + 2; i++)  printf("#");
	    printf("\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:43: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |                 for(i = 0; i < n; i++)  { gets(a[i]); a[i][m] = '#'; }
      |                                           ^~~~
      |                                           getw
Language: C++


#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include<numeric>
#include<cstring>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define REVERSE(v,n) reverse(v,v+n);
#define VREVERSE(v) reverse(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
#define m0(x) memset(x,0,sizeof(x))
#define fill(x,y) memset(x,y,sizeof(x))

using namespace std;


int dy[4] = { 0,0,1,-1 };
int dx[4] = { 1,-1,0,0 };
int dxx[8] = { 0,0,1,1,1,-1,-1,-1 };
int dyy[8] = { 1,-1,0,1,-1,0,1,-1 };


ll m = 1000000007;

const int MOD = 1000000007;

ll gcd(ll x, ll y) {
	ll m = max(x, y), n = min(x, y);
	if (m%n == 0)return n;
	else return gcd(m%n, n);
}
ll lcm(ll x, ll y) {
	return x / gcd(x, y)*y;
}

ll myPow(ll x, ll n, ll m) {
	if (n == 0)
		return 1;
	if (n % 2 == 0)
		return myPow(x * x % m, n / 2, m);
	else
		return x * myPow(x, n - 1, m) % m;
}



long long nCr(int n, int r) {
	if (r > n / 2) r = n - r; // because C(n, r) == C(n, n - r)
	long long ans = 1;
	int i;

	for (i = 1; i <= r; i++) {
		ans *= n - r + i;
		ans /= i;
	}

	return ans;
}
char ans[110][110];
int main() {
	int H,W;cin>>H>>W;
	REP(i,H){
		REP(j,W){
			cin>>ans[i+1][j+1];
		}
	}
	REP(i,H+2){
		REP(j,W+2){
			if(i==0||i==H+1||j==0||j==W+1){
				ans[i][j]='#';
			}
		}
	}
	REP(i,H+2){
		REP(j,W+2){
			cout<<ans[i][j];
		}
		cout<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:73:17: error: 'cin' was not declared in this scope
   73 |         int H,W;cin>>H>>W;
      |                 ^~~
a.cc:12:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   11 | #include<cstring>
  +++ |+#include <iostream>
   12 | #define REP(i, n) for(int i = 0;i < n;i++)
a.cc:88:25: error: 'cout' was not declared in this scope
   88 |                         cout<<ans[i][j];
      |                         ^~~~
a.cc:88:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:90:17: error: 'cout' was not declared in this scope
   90 |                 cout<<endl;
      |                 ^~~~
a.cc:90:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int H,W;
  cin >>H>>W;
  vector<string> pic[H];
  for(int i=0;i<H;i++){
    cin>>pic.at(i);
  }
  for(int k=0;k<W+2;k++){
    cout<<"#"<<endl;
  }
  for(int i=0;i<H;i++){
    cout << "#";
    cout << pic.at(i);
    cout << "#" << endl;
  }
  for(int k=0;k<W+2;k++){
    cout<<"#"<<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: request for member 'at' in 'pic', which is of non-class type 'std::vector<std::__cxx11::basic_string<char> > [H]'
    8 |     cin>>pic.at(i);
      |              ^~
a.cc:15:17: error: request for member 'at' in 'pic', which is of non-class type 'std::vector<std::__cxx11::basic_string<char> > [H]'
   15 |     cout << pic.at(i);
      |                 ^~
Language: C++

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

int main() {
    int H, W;
    cin >> H >> W;
    vector<string> a(H);
    for (int i=0; i<H; i++){
        cin >> a.at(i);
    }

    cout << "#"*(W+2) << endl;
    for (int i=0; i<H; i++){
        cout << "#"+a.at(i)+"#";
    }
    cout << "#"*(W+2) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   13 |     cout << "#"*(W+2) << endl;
      |             ~~~^~~~~~
      |             |     |
      |             |     int
      |             const char [2]
a.cc:17:16: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator*'
   17 |     cout << "#"*(W+2) << endl;
      |             ~~~^~~~~~
      |             |     |
      |             |     int
      |             const char [2]
Language: C++

#include<cstdio>
using namespace std;
 
int main(){
  int n, w, i, j;
  char a[110][110];
  scanf("%d%d", &n, &w);
  for(i = 0; i < n+2; i++)
    for(j = 0; j < m+2; j++)
      a[i][j] = '#';
  for(i = 1; i <= n; i++)
    for(j = 1; j <= m; j++)
      scanf("%c", &a[i][j]);
  
  for(i = 0; i < n+2; i++){
    for(j = 0; j < m+2; j++){
      printf("%c", a[i][j]);
    }
    printf("\n");
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'm' was not declared in this scope
    9 |     for(j = 0; j < m+2; j++)
      |                    ^
a.cc:12:21: error: 'm' was not declared in this scope
   12 |     for(j = 1; j <= m; j++)
      |                     ^
a.cc:16:20: error: 'm' was not declared in this scope
   16 |     for(j = 0; j < m+2; j++){
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int x,y;
	char s[105][105];
	cin>>x>>y;
	for(int i=0;i<=x;i++)
	gets(s[i]);
	for(int i=0;i<y+2;i++)
	cout<<"#";
	cout<<endl;
	for(int i=1;i<=x;i++)
	{
		cout<<"#";
		for(int j=0;j<y;j++)
		cout<<s[i][j];
		cout<<"#"<<endl;
	}
	for(int i=0;i<y+2;i++)
	cout<<"#";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |         gets(s[i]);
      |         ^~~~
      |         getw
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.*;

public class Main {

    int[] inputArray;

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

    void run() {
        Scanner sc = new Scanner(System.in);
int h = sc.nextInt();
int w = sc.nextInt();
char[][] array = new char[h][w];

for(int i=0; i<=h+1; i++;){
if(i == 0 || i = h+1) {

}
for(int j=0; j<=w+1; j++){
array[i][j] 
}
array[
}
        


for(int i=0; i<array.length; i++){
set.add(String.valueOf(array[i]));
}

if(set.size() == array.length) System.out.println("yes");
else System.out.println("no");
    }

}


Compiler output:
Main.java:21: error: ')' expected
for(int i=0; i<=h+1; i++;){
                        ^
Main.java:21: error: illegal start of expression
for(int i=0; i<=h+1; i++;){
                         ^
Main.java:26: error: not a statement
array[i][j] 
        ^
Main.java:26: error: ';' expected
array[i][j] 
           ^
Main.java:29: error: illegal start of expression
}
^
Main.java:28: error: not a statement
array[
     ^
6 errors
Language: C++

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

int main(){
  int i,array[100001],n[100001]={},c=0,a,b;
  string s[101];
  cin>>a>>b;
  for(i=0;i<a;i++){
    cin>>s[i];
  }
  for(i=0;i<b+2;i++){
    cout<<"#";
  }
  cout<<endl;
  for(i=0;i<a;i++){
    cout<<"#"<<s[i]<<"#"<<endl;
  }
  for(i=0;i<b+2;i++){
    cout<<"#";
  }
  cout<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s[101];
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a>>b;
      |   ^~~
a.cc:9:10: error: 's' was not declared in this scope
    9 |     cin>>s[i];
      |          ^
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"#";
      |     ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout<<endl;
      |   ^~~~
a.cc:14:9: error: 'endl' was not declared in this scope
   14 |   cout<<endl;
      |         ^~~~
a.cc:16:16: error: 's' was not declared in this scope
   16 |     cout<<"#"<<s[i]<<"#"<<endl;
      |                ^
Language: C++

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

int main() {
  int H, W;
  string a;

  cin>> H >> W;

  for (int i = 0; i < W; i++){
    cout << "#" << endl; //上側の#出力
  }
  for (int i = 0; i < H; i++){ //縦の読み込み
    for (int j = 0; j < W; j++){ //横の読み込み
      cin >> a;
      cout << a;
    }
    cout << "#" << a << "#" //両脇の#出力
  }
  for (int i = 0; i < W; i++){
    cout << "#" << endl; //下側の#の出力
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: expected ';' before '}' token
   18 |     cout << "#" << a << "#" //両脇の#出力
      |                            ^
      |                            ;
   19 |   }
      |   ~
Language: C++

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

int main(){
  int H,W;
  cin >> H >> W;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected '}' at end of input
    7 |   cin >> H >> W;
      |                 ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C

#include <iostream>

int main()
{
	int h, w;
	std::cin >> h >> w;
	for( int i = 0; i < w + 2; i++ ) {
		std::cout << '#';
	}
	std::cout << std::endl;

	for( int i = 0; i < h; i++ ) {
		for( int j = 0; j < w; j++ ) {
			if( j == 0 ) {
				std::cout << '#';
			}

			char a;
			std::cin >> a;
			std::cout << a;

			if( j == w - 1 ) {
				std::cout << '#' << std::endl;
			}
		}
	}

	for( int i = 0; i < w + 2; i++ ) {
		std::cout << '#';
	}
	std::cout << std::endl;

	return 0;
}


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

#include <iostream>
using namespace std;

int main(void){
  int h,w;
  char buf[128];
  
  cin >> h >> w;
  for (int i=0; i<w+2; i++) cout << '*';
  cout << endl;
  for (int i=0;i<h; i++){
    cin >> buf;
    cout << '*' buf << '*' << endl;
  }
  for (int i=0; i<w+2; i++) cout << '*';
  cout << endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before 'buf'
   13 |     cout << '*' buf << '*' << endl;
      |                ^~~~
      |                ;
Language: C++

#include <iostream>

using namespace std;

char board[102][102];

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);

  int H, W;
  cin >> H >> W;
  memset(board, '#', sizeof(char) * 102 * 102);
  for (int i = 1; i <= H; ++i)
    for (int j = 1; j <= W; ++j) cin >> board[i][j];

  for (int i = 0; i <= H + 1; ++i) {
    for (int j = 0; j <= W + 1; ++j) {
      cout << board[i][j];
    }
    cout << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'memset' was not declared in this scope
   13 |   memset(board, '#', sizeof(char) * 102 * 102);
      |   ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 |
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,w;
	cin>>n>>w;
	vector<string> s(n);
	for (int i=0; n>i; i++){
		cin>>s.at(i);
	}
	for (int j=0; w+2>j;j++){
		cout<<"#";
	}
	cout<<endl;
	for (int k=0; n>k; k++){
		cout<<"#"<<s.at(k)<<"#"<<endl;
	}
	for (int j=0; w+2>j;j++){
		cout<<"#"<<;
	}
	cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: expected primary-expression before ';' token
   18 |                 cout<<"#"<<;
      |                            ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include<cstdio>
#include<bits/stdc++.h>
using namespace std;
using ll =long long;

int main (void) {
  int H,W;
  cin >> H >> W;
  char A[H+2][W+2];
  char s,t;
  for (int i=0; i<=H+1; i++) {
      for (int j=0; j<=W+1; j++) {
        if (i=0 || j=0 || i=H+1|| j=W+1){
          A[i][j]="#";
          continue
        }
        s=getchar();
        t=s;
        A[i][j]=t;
        cout << A[i][j];
      }
  cout << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:32: error: lvalue required as left operand of assignment
   18 |         if (i=0 || j=0 || i=H+1|| j=W+1){
      |                             ~~~^~~~
a.cc:19:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   19 |           A[i][j]="#";
      |                   ^~~
      |                   |
      |                   const char*
a.cc:20:19: error: expected ';' before '}' token
   20 |           continue
      |                   ^
      |                   ;
   21 |         }
      |         ~
Language: C++

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

int main() {
	int h, w;
	cin >> h >> w;
	char a[100][100] = { # };
	for (int i = 1;i < h + 1;i++) {
		for (int j = 1;j < w + 1;j++) {
			cin >> a[i][j];
		}
	}
	for (int i = 0;i < h + 2;i++) {
		for (int j = 0;j < w + 2;j++) {
			cout << a[i][j];
		}
		cout << endl;
	}
}


Compiler output:
a.cc:7:30: error: stray '#' in program
    7 |         char a[100][100] = { # };
      |                              ^
Language: Java

import java.util.*;	
public class B62 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		String[] c = new String[m];
		for(int i = 0;i < n;i++) {
			c[i] = sc.next();
		}
		for(int i = 0;i < m+2;i++)System.out.print("#");
		System.out.println();
		for(int i = 0;i < n;i++) {
			System.out.println("#"+c[i]+"#");
		}
		for(int i = 0;i < m+2;i++)System.out.print("#");
		System.out.println();
	}

}



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

#include <iostream>
using namespace std;

int main(){
	int H, W, i, j;
	char a[H][W];
	string flame;
	for(i=0; i<H; i++){
		flame += '#';
		for(j=0; j<W; j++){
			cin >> a[i][j];
		}
	}
	flame += "##";

	cout << flame << endl;
	for(i=0; i<H; i++){
		cout << '#';
		for(j=0; j<W; j++){
			cout << a[i][j];
		}
		cout << "#\n" << ;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:34: error: expected primary-expression before ';' token
   22 |                 cout << "#\n" << ;
      |                                  ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int H, W, i, j;
	char a[H][W];
	for(i=0; i<H; i++){
		for(j=0; j<W; j++){
			cin >> a[i][j];
			if(i==0||i==H-1||j==0||j==W) a[i][j]='#';
		}
	}

	for(i=0; i<H; i++){
		for(j=0; j<W; j++){
			cout << a[i][j];
		}
		cout << "\n" << ;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:33: error: expected primary-expression before ';' token
   18 |                 cout << "\n" << ;
      |                                 ^
Language: C++

// finish date: 2018/01/20
#include <iostream>
#include <cmath>
#include <vector>
#include <bitset>
#include <algorithm>
#include <stack>
#include <map>
#include <climits>

using namespace std;

#define FOR(i, a, b) for(int (i)=a;(i)<(b);(i)++)
#define rep(i, n)  FOR(i,0,n)
#define ll long long
#define bigmod 1000000007
#define INF 500000000


int main() {
    int H, W;
    cin >> H >> W;
    string s;
    rep(i, W + 2) cout << "#";
    cout << endl;
    rep(i, H) {
        cin >> s;
        cout << "#";
        cout << s;
        cout << "#" << endl;
    }
    rep(i, W + 2) cout << "#"
    cout << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:30: error: expected ';' before 'cout'
   32 |     rep(i, W + 2) cout << "#"
      |                              ^
      |                              ;
   33 |     cout << endl;
      |     ~~~~
Language: C++


h,w=map(int,input().split())

print('#' * (w + 2))

for _ in range(h):
    print("#" + input() + "#")


print('#' * (w + 2))

Compiler output:
a.cc:2:1: error: 'h' does not name a type
    2 | h,w=map(int,input().split())
      | ^
Language: C++

#include <iostream>
#include <math.h>
#include <string>
#include <string.h> 
#include <stdio.h>
#include <algorithm>
using namespace std;
#define REP(i, n) for(int i = 0;i < n;i++)
#define IN(n) scanf("%d",&n,);
int main(){
    int h,w;
    char a[100];
    IN2(h,w);
    REP(i,h+2){
        if(i==0||i==h+1){
            REP(j,w+2)printf("#");
            printf("\n");
        }
        else {
            scanf("%s",a);
            printf("#%s#\n",a);
        }
    }
    return 0;    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'IN2' was not declared in this scope; did you mean 'IN'?
   13 |     IN2(h,w);
      |     ^~~
      |     IN
Language: C++

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

int main(){
    int h,w;
    cin >> h >> w;
    
    for(int i=0;i<w+2;i++){
        cout << '#';
    }
    cout << endl;
    
    cout << '#';
    int input;
    for(int i=0;i<h;i++){
        cin >>input
        cout << input;
    }
    cout << '#' << endl;
    
    for(int i=0;i<w+2;i++){
        cout << '#';
    }
    cout << endl;
    
    
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: expected ';' before 'cout'
   16 |         cin >>input
      |                    ^
      |                    ;
   17 |         cout << input;
      |         ~~~~
Language: C++

list(map(print, (lambda a:['#'*len(a[0])]+a+['#'*len(a[0])])(['#'+input()+'#' for _ in range(list(map(int, input().split()))[0])])))

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | list(map(print, (lambda a:['#'*len(a[0])]+a+['#'*len(a[0])])(['#'+input()+'#' for _ in range(list(map(int, input().split()))[0])])))
      |     ^
Language: C++

#include<bits/stdc++.h>
#define r(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
	int a,b,c,f=0,t=0;
	string s[102];
	cin>>a>>b;
	r(i,a){
		cin>>s[i+1];
		s[i+1]="#"+s[i+1]+"#";
	}
	r(i,w+2)s[0]+="#",s[a+1]+="#";
	r(i,a+2)cout<<s[i]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'w' was not declared in this scope
   12 |         r(i,w+2)s[0]+="#",s[a+1]+="#";
      |             ^
a.cc:2:30: note: in definition of macro 'r'
    2 | #define r(i,n) for(int i=0;i<n;i++)
      |                              ^
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;
#include<string.h>
int main(void) 
{     int w,h,i;
 char a[100];
    scanf("%d%d",&h,&w);
    for(i=0;i<h;i++)
    gets(a);
	for(i=0;i<w+2;i++)
	printf("#");
	printf("\n");
	for(i=0;i<h;i++)
	{
	printf("#");
   cout<<a;
	printf("#\n")	;
	}
	
	for(i=0;i<w+2;i++)
	printf("#");
		
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |     gets(a);
      |     ^~~~
      |     getw
Language: C

You are given a image with a height of H pixels and a width of W pixels. Each pixel is represented by a lowercase English letter. The pixel at the i-th row from the top and j-th column from the left is aij.

Put a box around this image and output the result. The box should consist of # and have a thickness of 1.

Constraints
1≤H,W≤100
aij is a lowercase English letter.
Input
Input is given from Standard Input in the following format:

H W
a11 … a1W
:
aH1 … aHW
Output
Print the image surrounded by a box that consists of # and has a thickness of 1.

Sample Input 1
2 3
abc
arc
Sample Output 1
#####
#abc#
#arc#
#####
Sample Input 2
1 1
z
Sample Output 2
###
#z#
###

Compiler output:
main.c:1:1: error: unknown type name 'You'
    1 | You are given a image with a height of H pixels and a width of W pixels. Each pixel is represented by a lowercase English letter. The pixel at the i-th row from the top and j-th column from the left is aij.
      | ^~~
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'given'
    1 | You are given a image with a height of H pixels and a width of W pixels. Each pixel is represented by a lowercase English letter. The pixel at the i-th row from the top and j-th column from the left is aij.
      |         ^~~~~
main.c:1:9: error: unknown type name 'given'
main.c:3:78: error: stray '#' in program
    3 | Put a box around this image and output the result. The box should consist of # and have a thickness of 1.
      |                                                                              ^
main.c:6:2: error: stray '\342' in program
    6 | 1<U+2264>H,W<U+2264>100
      |  ^~~~~~~~
main.c:6:6: error: stray '\342' in program
    6 | 1<U+2264>H,W<U+2264>100
      |             ^~~~~~~~
main.c:12:5: error: stray '\342' in program
   12 | a11 <U+2026> a1W
      |     ^~~~~~~~
main.c:14:5: error: stray '\342' in program
   14 | aH1 <U+2026> aHW
      |     ^~~~~~~~
main.c:16:54: error: stray '#' in program
   16 | Print the image surrounded by a box that consists of # and has a thickness of 1.
      |                                                      ^
main.c:23:1: error: stray '##' in program
   23 | #####
      | ^~
main.c:23:3: error: stray '##' in program
   23 | #####
      |   ^~
main.c:23:5: error: stray '#' in program
   23 | #####
      |     ^
main.c:24:2: error: invalid preprocessing directive #abc
   24 | #abc#
      |  ^~~
main.c:25:2: error: invalid preprocessing directive #arc
   25 | #arc#
      |  ^~~
main.c:26:1: error: stray '##' in program
   26 | #####
      | ^~
main.c:26:3: error: stray '##' in program
   26 | #####
      |   ^~
main.c:26:5: error: stray '#' in program
   26 | #####
      |     ^
main.c:31:1: error: stray '##' in program
   31 | ###
      | ^~
main.c:31:3: error: stray '#' in program
   31 | ###
      |   ^
main.c:32:2: error: invalid preprocessing directive #z
   32 | #z#
      |  ^
main.c:33:1: error: stray '##' in program
   33 | ###
      | ^~
main.c:33:3: error: stray '#' in program
   33 | ###
      |   ^
Language: C

#include<stdio.h>
#include<String.h>
int main()
{
	int r,a,b,c,h,i,k,t;
	char ch[20][100];
	while(scanf("%d%d",&a,&b)!=EOF)
	{
		getchar();
		for(i=1;i<=a;i++)
		scanf("%s",&ch[i]);
		printf("#");
		for(i=1;i<=b;i++)
		printf("#");
		printf("#\n");
		for(i=1;i<=a;i++)
	    {
	    printf("#");
	    printf("%s",ch[i]);
		printf("#\n");
		}
		for(i=0;i<=b;i++)
		printf("#");
		printf("#\n");
	}
	return 0;
}

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