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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H,W;
  cin >> H >> W;
  vector<string> str(H);
  
  for(int i=0;i<H;i++){
    cin >> str(H);
  }
  
  for(int i=-1;i<H+1;i++){
    if(i==-1||i==W){
      for(int j =0;j<W+2;j++){
        cout << "#";
        if(j==W+1){
          cout << endl;
        }
      }
    }else{
      cout << "#" << str(i) << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   10 |     cin >> str(H);
      |            ~~~^~~
a.cc:22:25: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   22 |       cout << "#" << str(i) << endl;
      |                      ~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H,W,all;
  cin >> H >> W;
  all = H*W;
  vector<char> ch(all);
  
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cin >> all.at(i*W+j);
    }
  }
  
  for(int i = -1;i<H+1;i++){
    for(j=-1;j<W+1;j++){
      if(i==-1 || i==H){
        cout << "#";
      }else if(j==-1){
        cout << "#";
      }else if(j==W){
        cout << "#" << endl;
      }else{
        int place;
        place = (i-1)*W + j-1;
        cout << ch.at(place);
      }
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: request for member 'at' in 'all', which is of non-class type 'int'
   12 |       cin >> all.at(i*W+j);
      |                  ^~
a.cc:17:9: error: 'j' was not declared in this scope
   17 |     for(j=-1;j<W+1;j++){
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int H, W;
  cin >> H >>W;
  
  vector<vector <char>> pic(H+2, vector<char>(W+2));
  
  for(int i=0; i<H+2; i++){
    for(int j=0; j<W+2; j++){
      if(i = 0 || i = H+1) pic.at(i).at(j) = '#';
      else if(j = 0 || j = W+1) pic.at(i).at(j) = '#';
      else cin >> pic.at(i).at(j);
    }
  }
  
  for(int i=0;i<H+2; i++){
    for(int j=0; j<W+2; j++){
      cout << pic.at(i).at(j);
    }
    cout << endl;
  }
}
        
        
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: lvalue required as left operand of assignment
   11 |       if(i = 0 || i = H+1) pic.at(i).at(j) = '#';
      |              ~~^~~~
a.cc:12:21: error: lvalue required as left operand of assignment
   12 |       else if(j = 0 || j = W+1) pic.at(i).at(j) = '#';
      |                   ~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int H, W;
  cin >> H >>W;
  
  vector<voctor <char>> pic(H+2, vector<char>(W+2));
  
  for(int i=0; i<H+2; i++){
    for(int j=0; j<W+2; j++){
      if(i = 0 || i = H+1) pic.at(i).at(j) = '#';
      else if(j = 0 || j = W+1) pic.at(i).at(j) = '#';
      else cin >> pic.at(i).at(j);
    }
  }
  
  for(int i=0;i<H+2; i++){
    for(int j=0; j<W+2; j++){
      cout << pic.at(i).at(j);
    }
    cout << endl;
  }
}
        
        
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'voctor' was not declared in this scope
    7 |   vector<voctor <char>> pic(H+2, vector<char>(W+2));
      |          ^~~~~~
a.cc:7:22: error: template argument 1 is invalid
    7 |   vector<voctor <char>> pic(H+2, vector<char>(W+2));
      |                      ^~
a.cc:7:22: error: template argument 2 is invalid
a.cc:7:51: error: expression list treated as compound expression in initializer [-fpermissive]
    7 |   vector<voctor <char>> pic(H+2, vector<char>(W+2));
      |                                                   ^
a.cc:7:34: error: cannot convert 'std::vector<char>' to 'int' in initialization
    7 |   vector<voctor <char>> pic(H+2, vector<char>(W+2));
      |                                  ^~~~~~~~~~~~~~~~~
      |                                  |
      |                                  std::vector<char>
a.cc:11:16: error: lvalue required as left operand of assignment
   11 |       if(i = 0 || i = H+1) pic.at(i).at(j) = '#';
      |              ~~^~~~
a.cc:11:32: error: request for member 'at' in 'pic', which is of non-class type 'int'
   11 |       if(i = 0 || i = H+1) pic.at(i).at(j) = '#';
      |                                ^~
a.cc:12:21: error: lvalue required as left operand of assignment
   12 |       else if(j = 0 || j = W+1) pic.at(i).at(j) = '#';
      |                   ~~^~~~
a.cc:12:37: error: request for member 'at' in 'pic', which is of non-class type 'int'
   12 |       else if(j = 0 || j = W+1) pic.at(i).at(j) = '#';
      |                                     ^~
a.cc:13:23: error: request for member 'at' in 'pic', which is of non-class type 'int'
   13 |       else cin >> pic.at(i).at(j);
      |                       ^~
a.cc:19:19: error: request for member 'at' in 'pic', which is of non-class type 'int'
   19 |       cout << pic.at(i).at(j);
      |                   ^~
Language: C++

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

int main(){
  int n , m;
  cin >> n >> m;
  vector <string> a(n);
  
  for(int i = 0; i < n; i++)
    cin >> a.at(i);
  
  for(int i = 0; i < m + 2; i++)
    cout << "#";
  cout << endl;
  
  for(int i = 0; i < m)
    cout << "#" << a.at(i) << "#" << endl;
  
  for(int i = 0; i < m + 2; i++)
    cout << "#";
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected ';' before ')' token
   16 |   for(int i = 0; i < m)
      |                       ^
      |                       ;
Language: C++

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

int main(){
  int H;
  int W;
  
  cin >> H >> W;
  
  vector<string> px(H); 
  
  //一行目
  for(int i=0; i<W+2; i++){
    cout << "#";
  }
  cout << endl;
  
  //真ん中
  for(int i=0; i<H; i++){
    cout << "#";
    
    for(int j=0; j<W; j++){
      cin >> px.at(0);
    }
    
    cout << "#" << endl;
  }
  
  //最終行
  for(int i=0; i<W+2; i++){
    cout << "#";
  }
  cout << endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:33:16: error: expected '}' at end of input
   33 |   cout << endl;
      |                ^
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<h+1;i++){
    if(i== || i==h){
      for(int j=0;j<w+1;j++){
        cout<<'#';
        if(j==w) cout<<endl;
      }
    }
    else{
      for(int j=0;j<w+1;j++){
        if(j==0) cout<<'#';
        else if(j==w) cout<<'#'<<endl;
        else{
          char s;
          cin>>s;
          cout<<s;
        }
      }
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected primary-expression before '||' token
    8 |     if(i== || i==h){
      |            ^~
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  vector<string> mean(H);
  
  for(int i = 0;i < H;i++){
    cin >> mean(i)
  }
  for(int j = 0;j < W + 2;j++){
    cout << "#" << endl;
  }
  for(int k = 0;k < H;k++){
    cout << "#" << mean[k] << "#" << endl;
  }
  for(int l = 0;l < W + 2 ;l++){
    cout << "#" << endl;
  }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   10 |     cin >> mean(i)
      |            ~~~~^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'H'
    6 |   cin H>>W;
      |      ^~
      |      ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'H'
    6 |   cin H >> W;
      |      ^~
      |      ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'H'
    6 |   cin H >> W;
      |      ^~
      |      ;
a.cc:29:6: error: expected '}' at end of input
   29 |     }
      |      ^
a.cc:4:13: 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<string> A(W);
  
  for (int i=0;i<H;i++) {
    for(int j=0;j<W;j++) {
      cin >> A(j);
    }
  }
    
    for (int i=0;i<H+2;i++) {
      for (int j=0;j<W+2;j++) {
        if (i==0||i==H+1) {
          cout << '#' << endl;
        }
        else {
          if(j==0||j==W+1) {
            cout << '#' << endl;
          }
          else {
            cout << A(j-1) << endl;
          }
        }
      }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'H'
    6 |   cin H >> W;
      |      ^~
      |      ;
a.cc:11:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   11 |       cin >> A(j);
      |              ~^~~
a.cc:25:22: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int)'
   25 |             cout << A(j-1) << endl;
      |                     ~^~~~~
a.cc:29:6: error: expected '}' at end of input
   29 |     }
      |      ^
a.cc:4:13: 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<H;i++) {
    for(int j=0;j<W;j++) {
      vector<string> A(W);
      cin >> A(j);
    }
  }
    
    for (int i=0;i<H+2;i++) {
      for (int j=0;j<W+2;j++) {
        if (i==0||i==H+1) {
          cout << '#' << endl;
        }
        else {
          if(j==0||j==W+1) {
            cout << '#' << endl;
          }
          else {
            cout << A(j-1) << endl;
          }
        }
      }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'H'
    6 |   cin H >> W;
      |      ^~
      |      ;
a.cc:11:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   11 |       cin >> A(j);
      |              ~^~~
a.cc:25:21: error: 'A' was not declared in this scope
   25 |             cout << A(j-1) << endl;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int H, W;
  cin >> H >> W;
  vector<vector<string>> a(H, vector<string>(W));
  vector<vector<string>> b(H+2, vector<string>(W+2));
  
  for(int i=0;i < H;i++){
    for(int j=0; j<W; j++){
      cin >> a.at(i).at(j);
    }  
  }
  
  for(int i=0; i<H+2; i++){
    for(int j=0; j<W+2; j++){
      b.at(i).at(j) = "#"
    }  
  }
  for(int i=0; i<H; i++){
    for(int j=0; j<W; j++){
      b.at(i+1).at(j+1) =  a.at(i).at(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:18:26: error: expected ';' before '}' token
   18 |       b.at(i).at(j) = "#"
      |                          ^
      |                          ;
   19 |     }
      |     ~                     
a.cc:23:41: error: expected ';' before '}' token
   23 |       b.at(i+1).at(j+1) =  a.at(i).at(j)
      |                                         ^
      |                                         ;
   24 |     }
      |     ~
Language: C++

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

int main(){
  int H, W;
  cin >> H >> W;
  vector<vector<string>> a(H, vector<string>(W));
  vector<vector<string>> b(H+2, vector<string>(W+2));
  
  for(int i=0;i < H;i++){
    for(int j=0; j<W; j++){
      cin >> a.at(i).at(j);
    }  
  }
  
  for(int i=0; i<H+2; i++){
    for(int j=0; j<W+2; j++){
      b.at(i).at(j) = "#"
    }  
  }
  for(int i=0; i<H; i++){
    for(int j=0; j<W; j++){
      b.at(i+1).at(j+1) =  a.at(i).at(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:18:26: error: expected ';' before '}' token
   18 |       b.at(i).at(j) = "#"
      |                          ^
      |                          ;
   19 |     }
      |     ~                     
a.cc:23:41: error: expected ';' before '}' token
   23 |       b.at(i+1).at(j+1) =  a.at(i).at(j)
      |                                         ^
      |                                         ;
   24 |     }
      |     ~
Language: C++

#include<iostream>
#include<vector>
#include<string>
 
using namespace std;
 
int main(void){
  int H,W;
  cin >> H >> W;
  
  vector<string> vec(H);
  
  for(int i = 0;i < H;i++){
    cin >> vec.at(i);
  }
  
  for(int i = 1;i <= H + 2;i++){
    if(i == 1 || i == H + 2){
      for(int j = 1;j <= W + 2;j++) cout << "#";
      cout << endl;
    }else{
      cout << "#" << vec.at(i) << "#" << endl;
    }
  }
}
#include<iostream>
#include<vector>
 
int main(void){
  int H,W;
  cin >> H >> W;
  
  vector<char> vec(H);
  
  for(int i = 0;i < H;i++){
    cin >> vec.at(i);
  }
  
  for(int i = 1;i <= H + 2;i++){
    if(i == 1 || i == H + 2){
      for(int j = 1;j <= W + 2;j++) cout << "#";
      cout << endl;
    }else{
      cout << "#" << vec.at(i) << "#" << endl;
    }
  }
}
#include<iostream>
#include<vector>
#include<string>

using namespace std;
 
int main(void){
  int H,W;
  cin >> H >> W;
  
  vector<string> vec(H);
  
  for(int i = 0;i < H;i++){
    cin >> vec.at(i);
  }
  
  for(int i = 1;i <= H + 2;i++){
    if(i == 1 || i == H + 2){
      for(int j = 1;j <= W + 2;j++) cout << "#";
      cout << endl;
    }else{
      cout << "#" << vec.at(i) << "#" << endl;
    }
  }
}
#include<iostream>
#include<vector>
 
int main(void){
  int H,W;
  cin >> H >> W;
  
  vector<char> vec(H);
  
  for(int i = 0;i < H;i++){
    cin >> vec.at(i);
  }
  
  for(int i = 1;i <= H + 2;i++){
    if(i == 1 || i == H + 2){
      for(int j = 1;j <= W + 2;j++) cout << "#";
      cout << endl;
    }else{
      cout << "#" << vec.at(i) << "#" << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main(void){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(void){
      |     ^~~~
a.cc:54:5: error: redefinition of 'int main()'
   54 | int main(void){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(void){
      |     ^~~~
a.cc:76:5: error: redefinition of 'int main()'
   76 | int main(void){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(void){
      |     ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<string>

using namespace std;
 
int main(void){
  int H,W;
  cin >> H >> W;
  
  vector<string> vec(H);
  
  for(int i = 0;i < H;i++){
    cin >> vec.at(i);
  }
  
  for(int i = 1;i <= H + 2;i++){
    if(i == 1 || i == H + 2){
      for(int j = 1;j <= W + 2;j++) cout << "#";
      cout << endl;
    }else{
      cout << "#" << vec.at(i) << "#" << endl;
    }
  }
}
#include<iostream>
#include<vector>
 
int main(void){
  int H,W;
  cin >> H >> W;
  
  vector<char> vec(H);
  
  for(int i = 0;i < H;i++){
    cin >> vec.at(i);
  }
  
  for(int i = 1;i <= H + 2;i++){
    if(i == 1 || i == H + 2){
      for(int j = 1;j <= W + 2;j++) cout << "#";
      cout << endl;
    }else{
      cout << "#" << vec.at(i) << "#" << endl;
    }
  }
}

Compiler output:
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main(void){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(void){
      |     ^~~~
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 + 2); i++) {
		cout << "#";
	}

	cout << endl;

	for (i = 0; i < H; i++) {
		cout << "#";
		cin >> a;
		cout << a;
		cout << "#" << endl;
	}

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

}


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

#include <iostream>
using namespace std;

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

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

	cout << endl;

	for (i = 0; i < H; i++) {
		cout << "#";
		cin >> a;
		cout << a;
		cout << "#" << endl;
	}

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

}


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

#include <iostream>
using namespace std;

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

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

	cout << endl;

	for (i = 0; i < H; i++) {
		cout << "#";
		cin >> a;
		cout << a;
		cout << "#";
		cout << endl;
	}

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

	cout << endl;
}


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

#include <iostream>
using namespace std;

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

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

	cout << endl;

	for (i = 0; i < H; i++) {
		cout << "#";
		cin >> a;
		cout << a;
		cout << "#";
	}

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

	cout << endl;
}


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

#include <iostream>
using namespace std;

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

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

	cout << endl;

	for (i = 0; i < H; i++) {
		cout "#";
		cin >> a;
		cout << a;
		cout "#";
	}

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

	cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'i' was not declared in this scope
   14 |         for (i = 0; i < H; i++) {
      |              ^
a.cc:15:21: error: expected ';' before string constant
   15 |                 cout "#";
      |                     ^~~~
      |                     ;
a.cc:18:21: error: expected ';' before string constant
   18 |                 cout "#";
      |                     ^~~~
      |                     ;
a.cc:21:14: error: 'i' was not declared in this scope
   21 |         for (i = 0; i < W + 2; i++)
      |              ^
Language: C++

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

int main() {
  int H, W;
  cin >> H >> W;
  string a;
  for(int i=0;i<H;i++) {
      string a;
      cin >> a;
    }
  for (int i=0;i<H+2;i++) {
    vector<string> b(N);
    if (i==0 || i==H+1){
    for (int j=0;j<W+2;j++) {
      b.at(j)='#';
      cout << b.at(j) << endl;
    }
      else {
        cout << '#'+a+'#' << endl;
      }
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: 'N' was not declared in this scope
   13 |     vector<string> b(N);
      |                      ^
a.cc:19:7: error: expected '}' before 'else'
   19 |       else {
      |       ^~~~
a.cc:14:24: note: to match this '{'
   14 |     if (i==0 || i==H+1){
      |                        ^
Language: C++

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

int main() {
  int H, W;
  cin >> H >> W;
  
  for (int i = 0; i < W; i++) {
    cout << "#";
  }
  cout << endl;
  
  for (int j = 0; j < H; j++) {
    vector<string> pic(W);
    for (int k = 0; k < W; k++) {
      cin >> pic.at(k);
    }
    cout << "#" << pic(W) << "#" << endl;
  }
  
  for ( int l = 0; l < W; l++) {
    cout << "#";
  }
  cout << endl;
}
    
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   18 |     cout << "#" << pic(W) << "#" << endl;
      |                    ~~~^~~
Language: C++

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

int main() {
  int H, W;
  cin >> H >> W;
  
  for (int i = 0; i < W; i++) {
    cout << "#";
  }
  cout << endl;
  
  for (int j = 0; j < H; j++) {
    vector<string> pic(W);
    cin >> pic(W);
    
    cout << "#" << pic(W) << "#" << endl;
  }
  
  for ( int k = 0; k < W; k++) {
    cout << "#";
  }
  cout << endl;
}
    
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   15 |     cin >> pic(W);
      |            ~~~^~~
a.cc:17:23: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   17 |     cout << "#" << pic(W) << "#" << endl;
      |                    ~~~^~~
Language: C++

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

int main(){
    int H,W,i,j;
    vector<vector<char>> a(100,vector<char>(100));
    vector<vector<char>> b(102,vector<char>(102));
    
    cin >> H >> W;
    
    for(i=0;i<H;i++){
        for(j=0;j<W;j++){
            cin >> a.at(i).at(j);
        }
    }

    for(i=0;i<H+2;i++){
        for(j=0;j<W+2;j++){
            b.at(i).at(j)='#';
        }
    }

    for(i=0;i<H;i++){
        for(j=0;j<W;j++){
            b.at(i+1).at(j+1)=a.at(i).at(j);
        }
    }

    for(i=0;i<H+2;i++){
        for(j=0;j<W+2;j++){
            cout << b.at(i).at(j);
        }
        cout << endl;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:34:6: error: expected '}' at end of input
   34 |     }
      |      ^
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<W ; i++){
    cout << '#';
    for(int j=0; j<H ; j++){
      char a;
      cin >> a ;
      cout << a 
    }
    cout << '#' << endl;
  }
  }
}
    
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected ';' before '}' token
   16 |       cout << a
      |                ^
      |                ;
   17 |     }
      |     ~           
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int h,w;
  cin>>h>>w;
  char a[h][w];
  for(int i=0;i<h;i++){
    scanf("%s",a[i]);
  }
  for(int i=0;i<w+2;i++){
    print("#");
  }
  printf("\n");
  for(int i=0;i<h;i++){
      printf("#");
    for(int j=0;j<w;j++){
      printf("%s",a[i]);
    }
    printf("#\n");
  }
  for(int i=0;i<w+2;i++){
    printf("#");
  }
  printf("\n");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'print' was not declared in this scope; did you mean 'printf'?
   12 |     print("#");
      |     ^~~~~
      |     printf
Language: C++

#include<iosream>
#include<cstdio>
using namespace std;
int main(){
  int h,w;
  cin>>h>>w;
  char a[h][w];
  for(int i=0;i<h;i++){
    scanf("%s",a[i]);
  }
  for(int i=0;i<w+2;i++){
    print("#");
  }
  printf("\n");
  for(int i=0;i<h;i++){
      printf("#");
    for(int j=0;j<w;j++){
      printf("%s",a[i]);
    }
    printf("#\n");
  }
  for(int i=0;i<w+2;i++){
    printf("#");
  }
  printf("\n");
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: iosream: No such file or directory
    1 | #include<iosream>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int h,w;
  vector<vector<char>> picture(h,vector<char>(w));
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++)
      cin >> picture.at(i).at(j);
  }
  
  for(int i=0;i<w;i++)
    cout << "#";
  << endl;
  
  for(int i=0;i<h;i++){
    cout << "#";
    for(int j=0;j<w;j++)
      cout << picture.at(i).at(j);
    cout << "#" << endl;
  }
  
  for(int i=0;i<w;i++)
    cout <<"#";
  << endl;
}

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

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

int main() {
  int H,W; cin >> H >> W;
  vector<char> cha((H+2)*(W+2));
  for ( int i=0; i<(H+2); i++){
    for ( int j=0; j<(W+2); j++){
      cha[i][j]='#';
    }
  }
  for ( int i=1; i<H+1; i++){
    for ( int j=1; j<W+1; j++){
      cin >> cha[i][j];
    }
  }
  for ( int i=0; i<(H+2); i++){
    for ( int j=0; j<(W+2); j++){
      cout << cha[i][j];
    }
    cout << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript
    9 |       cha[i][j]='#';
      |             ^
a.cc:14:20: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript
   14 |       cin >> cha[i][j];
      |                    ^
a.cc:19:21: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript
   19 |       cout << cha[i][j];
      |                     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: statement cannot resolve address of overloaded function
   10 |   endl;
      |       ^
a.cc:23:7: error: statement cannot resolve address of overloaded function
   23 |   endl;
      |       ^
Language: C++

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

int main() {
  int H, W;
  cin >> H >> W;
  for (int i; i < W; i++){
    cout << "#";
  }
  endl;
  for (int i; i < H; i++){
    for (int j; j < W; j++){
      cout << "#";
      vector<int> vec;
      cin >> vec(j);
      cout << vec(j);
    }
    cout << "#" << endl;
  }
  for (int i; i < W; i++){
    cout << "#";
  }
  endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: statement cannot resolve address of overloaded function
   10 |   endl;
      |       ^
a.cc:15:17: error: no match for call to '(std::vector<int>) (int&)'
   15 |       cin >> vec(j);
      |              ~~~^~~
a.cc:16:18: error: no match for call to '(std::vector<int>) (int&)'
   16 |       cout << vec(j);
      |               ~~~^~~
a.cc:23:7: error: statement cannot resolve address of overloaded function
   23 |   endl;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H,W;
  cin >> H >> W;
  string a;
  for(int i = 0; i < W + 2; i++){
  	cout << '#';
  }
  cout << endl;
  for(int = 0; i < H; i++){
  	cout << '#';
    cin >> a;
    cout << '#' << endl;
  }
  for(int i = 0; i < W + 2; i++){
  	cout << '#';
  }
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected unqualified-id before '=' token
   12 |   for(int = 0; i < H; i++){
      |           ^
a.cc:12:10: error: expected ';' before '=' token
   12 |   for(int = 0; i < H; i++){
      |          ^~
      |          ;
a.cc:12:11: error: expected primary-expression before '=' token
   12 |   for(int = 0; i < H; i++){
      |           ^
a.cc:12:16: error: 'i' was not declared in this scope
   12 |   for(int = 0; i < H; i++){
      |                ^
a.cc:12:21: error: expected ')' before ';' token
   12 |   for(int = 0; i < H; i++){
      |      ~              ^
      |                     )
a.cc:12:23: error: 'i' was not declared in this scope
   12 |   for(int = 0; i < H; i++){
      |                       ^
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  
  for(int i = 0; i < W; i++){
    string l = "##";
    l += "#";
  }
  
  cout << l << endl;
  
  vector<string> line(H);
  for(int i = 0; i < H; i++){
    cin >> line.at(i);
    cout << "#" << line.at(i) << "#" << endl;
  }
  
  cout << l << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'l' was not declared in this scope
   13 |   cout << l << endl;
      |           ^
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  
  for(int i = 0; i < W; i++){
    string l = "##";
    l += "#";
  }
  
  cout << l << endl;
  
  vector<string> line(W);
  for(int i = 0; i < W; i++){
    cin >> line.at(i);
    cout << "#" << line.at(i) << "#" << endl;
  }
  
  cout << l << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'l' was not declared in this scope
   13 |   cout << l << endl;
      |           ^
Language: C++

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

int main(){
	int h, w;
	scan("%d%d", &h, &w);
	for(int i = 0; i < w + 2; i++)
		printf("#");
	printf("\n");
	for(int i = 0; i < h; i++) {
		for(int i = 0; i < w + 2; i++) {
			int x;
			if(i == 0 || i == w + 1) printf("#");
			else {
				scanf("%d", &x);
				printf("%d", x);
			}
		}
		printf("\n");
	}
	for(int i = 0; i < w + 2; i++)
		printf("#");
	printf("\n");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scan' was not declared in this scope; did you mean 'scanf'?
    6 |         scan("%d%d", &h, &w);
      |         ^~~~
      |         scanf
Language: C++

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

int main() {
  int h, w;
  cin >> h >> w;
  char a[h][w], b[h+2][j+2];
  
  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++) {
      cin >> a[i][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:7:24: error: 'j' was not declared in this scope
    7 |   char a[h][w], b[h+2][j+2];
      |                        ^
a.cc:11:7: error: 'b' was not declared in this scope
   11 |       b[i][j] = '#';
      |       ^
a.cc:17:7: error: 'b' was not declared in this scope
   17 |       b[i+1][j+1] = a[i][j];
      |       ^
a.cc:22:15: error: 'b' was not declared in this scope
   22 |       cout << b[i][j];
      |               ^
Language: C++

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

int main() {
  int h, w;
  cin >> h >> w;
  char a[i][j], b[i+2][j+2];
  
  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++) {
      cin >> a[i][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:7:10: error: 'i' was not declared in this scope
    7 |   char a[i][j], b[i+2][j+2];
      |          ^
a.cc:7:13: error: 'j' was not declared in this scope
    7 |   char a[i][j], b[i+2][j+2];
      |             ^
a.cc:11:7: error: 'b' was not declared in this scope
   11 |       b[i][j] = '#';
      |       ^
a.cc:16:14: error: 'a' was not declared in this scope
   16 |       cin >> a[i][j];
      |              ^
a.cc:17:7: error: 'b' was not declared in this scope
   17 |       b[i+1][j+1] = a[i][j];
      |       ^
a.cc:22:15: error: 'b' was not declared in this scope
   22 |       cout << b[i][j];
      |               ^
Language: C++

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

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

    vector<string> vec(H);
    
    for(int i=0;i<H;i++){
          cin >> vec.at(i);
    }

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

    for(int i=0;i<H;i++){
        cout << '#' << vec.at(i) << '#' << endl;
    }

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

Compiler output:
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
    1 | #include <bits\stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before 'for'
   12 |     cout << "#" << for(int r = 0; r < W; r++)
      |                    ^~~
a.cc:12:35: error: 'r' was not declared in this scope
   12 |     cout << "#" << for(int r = 0; r < W; r++)
      |                                   ^
a.cc:15:5: error: expected primary-expression before '<<' token
   15 |     << "#"<< endl;
      |     ^~
Language: C++

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

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

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:5:14: error: 'cin' was not declared in this scope
    5 |     int H,W; cin >> H >> W;
      |              ^~~
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string tmp;
      |     ^~~~~~
a.cc:9:45: error: 'cout' was not declared in this scope
    9 |             for (int j = 0; j < W + 2; ++j) cout << "#";
      |                                             ^~~~
a.cc:10:13: error: 'cout' was not declared in this scope
   10 |             cout << endl;
      |             ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |             cout << endl;
      |                     ^~~~
a.cc:12:20: error: 'tmp' was not declared in this scope
   12 |             cin >> tmp;
      |                    ^~~
a.cc:13:13: error: 'cout' was not declared in this scope
   13 |             cout << "#" << tmp << "#" << endl;
      |             ^~~~
a.cc:13:42: error: 'endl' was not declared in this scope
   13 |             cout << "#" << tmp << "#" << endl;
      |                                          ^~~~
Language: C++

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

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

  for(i=0; i<W; i++) {
    cout << "#";
  }
  cout << endl;
  
  for(i=0; i<H; i++) {
    cout << "#" << pic.at(i) << "#" << endl;
  }
  
  for(i=0; i<W; i++) {
    cout << "#";
  }
  cout << endl;
    
}


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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;(int)(n);i++)

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







Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ')' before '{' token
   13 |       if(i==0||(i==H+1){
      |         ~              ^
      |                        )
a.cc:22:5: error: expected primary-expression before '}' token
   22 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;(int)(n);i++)

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







Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: lvalue required as left operand of assignment
   13 |       if(i=0||i=H+1){
      |            ~^~~
a.cc:17:15: error: lvalue required as left operand of assignment
   17 |         if(j=0||j=W+1)
      |              ~^~~
Language: C++

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

int main() {
  int H,W;
  cin >> H>>W;
  vector<string> vec(H);
  for(int i=0;i<H;i++){
    cin >> vec(i);
  }
   for(int i=0;i<W+2;i++){
    cout << '#';
     if(i==W-1){cout <<endl;}
  }
  for(int i=0;i<H;i++){
    cout << '#'<<vec(i) << '#'<<endl;
  }
  for(int i=0;i<W+2;i++){
    cout << '#';
     if(i==W-1){cout <<endl;}
  }
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
    9 |     cin >> vec(i);
      |            ~~~^~~
a.cc:16:21: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   16 |     cout << '#'<<vec(i) << '#'<<endl;
      |                  ~~~^~~
Language: C++

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

int main() {
  int H,W;
  cin >> H>>W;
  vector<string> vec(H);
  for(int i=0;i<H;i++){
    cin >> vec(i);
  }
   for(int i=0;i<W;i++){
    cout << '#';
     if(i==W-1){cout <<endl;}
  }
  for(int i=0;i<H;i++){
    cout << '#'<<vec(i) << '#'<<endl;
  }
  for(int i=0;i<W;i++){
    cout << '#';
     if(i==W-1){cout <<endl;}
  }
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
    9 |     cin >> vec(i);
      |            ~~~^~~
a.cc:16:21: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   16 |     cout << '#'<<vec(i) << '#'<<endl;
      |                  ~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {

  int H,W;
  cin >> H >> W;
  
  string line="";
  for(int j=0;j<W+2;j++){
    line += '#'
  }
  
  for(int i=0;i<H+2;i++){
    if(i==0||i==H+1){
      cout << line << endl;
    }
    else{
      string tmp;
      cin >> tmp;
      cout << '#' << tmp << '#' << endl;
    }
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '}' token
   11 |     line += '#'
      |                ^
      |                ;
   12 |   }
      |   ~
Language: C++

#%% for atcoder uniittest use
import sys
input= lambda: sys.stdin.readline().rstrip()
#cythonを使うために実行
#%load_ext Cython
#%%code
def resolve():
    H,W=map(int, input().split())
    l="#"*(W+2)
    print(l)
    for i in range(H):
        s=input()
        print("#"+s+"#")
    print(l)
#%%submit!
resolve()


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #%
    1 | #%% for atcoder uniittest use
      |  ^
a.cc:4:2: error: invalid preprocessing directive #cython\U00003092\U00004f7f\U00003046\U0000305f\U00003081\U0000306b\U00005b9f\U0000884c
    4 | #cythonを使うために実行
      |  ^~~~~~~~~~~~~~~~~~~~~~
a.cc:5:2: error: invalid preprocessing directive #%
    5 | #%load_ext Cython
      |  ^
a.cc:6:2: error: invalid preprocessing directive #%
    6 | #%%code
      |  ^
a.cc:15:2: error: invalid preprocessing directive #%
   15 | #%%submit!
      |  ^
a.cc:2:1: error: 'import' does not name a type
    2 | import sys
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H=0;
  int W=0;
  vector<vector<char>> a(H, vector<char>(W));
  vector<vector<char>> b(H, vector<char>(W));
   for (int i = 0; i < H; i++){
      for (int j = 0; j < W; j++){
        cin >> a.at(i).at(j);
      }
   }
   for (int i = 0; i < H+2; i++){
      for (int j = 0; j < W+2; j++){
        b.at(i).at(j) = "#";
      }
   }
  for (int i = 0; i < H; i++){
      for (int j = 0; j < W; j++){
        b.at(i+1).at(j+1) = a.at(i).at(j);
      }
  }
  for (int i = 0; i < H+2; i++){
      for (int j = 0; j < W+2; j++){
        cout << b.at(i).at(j);
        cout << endl;
      }
  }
}

  
        


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H=0;
  int W=0;
  vector<vector<char>> a(H, vector<char>(W));
  vector<vector<char>> b(H, vector<char>(W));
   for (int i = 0; i < H; i++){
      for (int j = 0; j < W; j++){
        cin >> a.at(i).at(j);
      }
   }
   for (int i = 0; i < H+2; i++){
      for (int j = 0; j < W+2; j++){
        b.at(i).at(j)="#";
      }
   }
  for (int i = 0; i < H; i++){
      for (int j = 0; j < W; j++){
        b.at(i+1).at(j+1) = a.at(i).at(j);
      }
  }
  for (int i = 0; i < H+2; i++){
      for (int j = 0; j < W+2; j++){
        cout << b.at(i).at(j);
        cout << endl;
      }
  }
}

  
        

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

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

int main() {
  int H, W;
  cin >> H >> W;
  
  vector<string> a(H);
  
  for(int i=0; i<W+2; i++){
    cout << "#";
    if(i==W+1) cout << endl;
  }
  
  for(int i=0; i<H i++){
    cout << "#" + a.at(i) + "#" << endl;
  }
  
  for(int i=0; i<W+2; i++){
    cout << "#";
    if(i==W+1) cout << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected ';' before 'i'
   15 |   for(int i=0; i<H i++){
      |                   ^~
      |                   ;
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main() {
  int h, w;
  cin >> h >> w;
  string a[h];
  for(int i; i<h; i++){
    cin >> a[i];
  }
  
  string b[h+2][w+2];
  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++)
    cout<<b[i]<<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: 'cin' was not declared in this scope
    6 |   cin >> h >> w;
      |   ^~~
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string a[h];
      |   ^~~~~~
a.cc:9:12: error: 'a' was not declared in this scope
    9 |     cin >> a[i];
      |            ^
a.cc:12:9: error: expected ';' before 'b'
   12 |   string b[h+2][w+2];
      |         ^~
      |         ;
a.cc:15:9: error: 'b' was not declared in this scope
   15 |         b[i][j]="#";
      |         ^
a.cc:23:7: error: 'b' was not declared in this scope
   23 |       b[i+1][j+1]=a[i][j];
      |       ^
a.cc:23:19: error: 'a' was not declared in this scope
   23 |       b[i+1][j+1]=a[i][j];
      |                   ^
a.cc:28:5: error: 'cout' was not declared in this scope
   28 |     cout<<b[i]<<endl;
      |     ^~~~
a.cc:28:11: error: 'b' was not declared in this scope
   28 |     cout<<b[i]<<endl;
      |           ^
a.cc:28:17: error: 'endl' was not declared in this scope
   28 |     cout<<b[i]<<endl;
      |                 ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int h, w;
  cin >> h >> w;
  vector <string> a(h);
  for(int i; i<h; i++){
    cin >> a.at(i);
  }
  
  for(int i=0; i<h+2; i++){
    for(int j=0; j<w+2; j++){
      if(i==0||i==h+1||j==0||j==w+1){
        cout << "#";
      }
      else if(j==1){
        cout << a.at(i-1);
      }
    }
   cout << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {

 int h,w;
  
  cin>>h>>w;
  
  string a[h];
  for(int i=1;i<h+1)
       cin>>a[i];

  string b[h+2];
  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++)
 {
    cout<<b[i]<<endl;
 }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before ')' token
   11 |   for(int i=1;i<h+1)
      |                    ^
      |                    ;
Language: C++

    #include<iostream>
    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++){
            vector<string> vec;
            cin >> vec.at(i);
            cout << "#" << vec[i] << "#" << endl;
        }

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

    }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'vector' was not declared in this scope
   10 |             vector<string> vec;
      |             ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 |     #include<iostream>
  +++ |+#include <vector>
    2 |     using namespace std;
a.cc:10:26: error: expected primary-expression before '>' token
   10 |             vector<string> vec;
      |                          ^
a.cc:10:28: error: 'vec' was not declared in this scope
   10 |             vector<string> vec;
      |                            ^~~