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

using namespace std;

int main(){
  int H, N
  cin >> H >> N
  vector<char> A(N * H);
  
  for (int i = 0; i < N * H; i++){
    cin >> A.at(i);
  }
  
  for (int j = 0; j < N + 2; j++){
    cout << "#";
  }
  
  cout << endl;
  
  for (int o = 0; o < H; o++){
    cout << "#";
  
    for (int k = 0; k < N; k++){
      cout << A.at(k + N * o);
    }

    cout << "#" << endl;
  }
  
  for (int n = 0; n < N + 2; n++){
    cout << "#";
  }

  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin >> H >> N
      |   ^~~
a.cc:8:23: error: 'N' was not declared in this scope
    8 |   for (int i = 0; i < N * H; i++){
      |                       ^
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> A.at(i);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:12: error: 'A' was not declared in this scope
    9 |     cin >> A.at(i);
      |            ^
a.cc:12:23: error: 'N' was not declared in this scope
   12 |   for (int j = 0; j < N + 2; j++){
      |                       ^
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "#";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:11: error: 'endl' was not declared in this scope
   16 |   cout << endl;
      |           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:21:25: error: 'N' was not declared in this scope
   21 |     for (int k = 0; k < N; k++){
      |                         ^
a.cc:22:15: error: 'A' was not declared in this scope
   22 |       cout << A.at(k + N * o);
      |               ^
a.cc:28:23: error: 'N' was not declared in this scope
   28 |   for (int n = 0; n < N + 2; n++){
      |                       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before '==' token
   13 |             for (int j == 0; j < W + 2; j++) {
      |                       ^~~
      |                       ;
a.cc:13:24: error: expected primary-expression before '==' token
   13 |             for (int j == 0; j < W + 2; j++) {
      |                        ^~
a.cc:13:39: error: expected ')' before ';' token
   13 |             for (int j == 0; j < W + 2; j++) {
      |                 ~                     ^
      |                                       )
a.cc:13:41: error: 'j' was not declared in this scope
   13 |             for (int j == 0; j < W + 2; j++) {
      |                                         ^
a.cc:20:23: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   20 |             cin >> ary(i);
      |                    ~~~^~~
a.cc:21:30: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   21 |             cout << '#' + ary(i) + '#' << endl;
      |                           ~~~^~~
Language: C++

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

main() {
  int H, W;
  string s;
  cin >> H >> W;
  for(int i=0; i<W+1; i++){
    cout << '#';
  }
  cout << endl;
  for(int x=0; x<H; x++){
    cin >> s;
    cout << '#' << s << '#' << endl;
  }
  for(int y0; yW+1; y+){
    cout << '#';
  }
  cout << endl;
    
}



Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:15: error: 'yW' was not declared in this scope; did you mean 'y0'?
   16 |   for(int y0; yW+1; y+){
      |               ^~
      |               y0
a.cc:16:21: error: 'y' was not declared in this scope; did you mean 'y0'?
   16 |   for(int y0; yW+1; y+){
      |                     ^
      |                     y0
a.cc:16:23: error: expected primary-expression before ')' token
   16 |   for(int y0; yW+1; y+){
      |                       ^
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);
  }
  
  cout << string(W+2,#) << endl;
  
  for(int i=0;i<H;i++){
    cout << '#' << vec.at(i) << '#' << endl;
  }
cout << string(W+2,'#') << endl;
}


Compiler output:
a.cc:14:22: error: stray '#' in program
   14 |   cout << string(W+2,#) << endl;
      |                      ^
a.cc: In function 'int main()':
a.cc:8:9: error: missing template arguments before '(' token
    8 |   vector(string) vec(H);
      |         ^
a.cc:8:16: error: expected primary-expression before ')' token
    8 |   vector(string) vec(H);
      |                ^
a.cc:11:12: error: 'vec' was not declared in this scope
   11 |     cin >> vec.at(i);
      |            ^~~
a.cc:14:17: error: expected primary-expression before '(' token
   14 |   cout << string(W+2,#) << endl;
      |                 ^
a.cc:14:23: error: expected primary-expression before ')' token
   14 |   cout << string(W+2,#) << endl;
      |                       ^
a.cc:17:20: error: 'vec' was not declared in this scope
   17 |     cout << '#' << vec.at(i) << '#' << endl;
      |                    ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: no match for call to '(std::vector<char>) (int&)'
   21 |       cin >> abc(i);
      |              ~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'o' was not declared in this scope
   15 |       if(i=o||i=H+2||j=0||j=W+2){
      |            ^
a.cc:15:25: error: lvalue required as left operand of assignment
   15 |       if(i=o||i=H+2||j=0||j=W+2){
      |                        ~^~~
a.cc:16:26: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
   16 |         data.at(i).at(j)="#";
      |                          ^~~
      |                          |
      |                          const char*
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0;i<H+2;i++){
      |       ^
a.cc:13:13: error: 'j' was not declared in this scope
   13 |         for(j=0;j<W+2;j++){
      |             ^
a.cc:15:12: error: 'o' was not declared in this scope
   15 |       if(i=o||i=H+2||j=0||j=W+2){
      |            ^
a.cc:24:7: error: 'i' was not declared in this scope
   24 |   for(i=0;i<H+2;i++){
      |       ^
a.cc:25:13: error: 'j' was not declared in this scope
   25 |         for(j=0;j<W+2;j++){
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'W'
    6 |   int H W;
      |         ^
a.cc:8:28: error: 'H' was not declared in this scope
    8 |   vector<vector<int>> data(H+2, vector<int>(W+2));
      |                            ^
a.cc:8:45: error: 'W' was not declared in this scope
    8 |   vector<vector<int>> data(H+2, vector<int>(W+2));
      |                                             ^
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0;i<H+2;i++){
      |       ^
a.cc:13:13: error: 'j' was not declared in this scope; did you mean 'jn'?
   13 |         for(j=0;j<W+2;j++){
      |             ^
      |             jn
a.cc:15:12: error: 'o' was not declared in this scope
   15 |       if(i=o||i=H+2||j=0||j=W+2){
      |            ^
a.cc:24:7: error: 'i' was not declared in this scope
   24 |   for(i=0;i<H+2;i++){
      |       ^
a.cc:25:13: error: 'j' was not declared in this scope; did you mean 'jn'?
   25 |         for(j=0;j<W+2;j++){
      |             ^
      |             jn
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++){
  string pixel;
  cin >> pixel;
  cout <<"#";
  cout <<pixel;
  cout <<"#"<<endl;
  }  
  for(int i=0;i<W+2;i++){
  cout <<"#";
  }
  cout <<endl;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected initializer before 'cin'
   14 |   cin >> pixel;
      |   ^~~
a.cc:16:10: error: 'pixel' was not declared in this scope
   16 |   cout <<pixel;
      |          ^~~~~
a.cc:22:15: error: expected '}' at end of input
   22 |   cout <<endl;
      |               ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int N;
  string word;
  cin >> H >> W;
  for(int i = 0;i < W+2;i++){
    cout << "#";
  }
  cout << endl;
  cout << "#";
  for(int i = 0;i < H;i++){
  cin >> word;
  cout << word << "#" << endl;
  }
    for(int i = 0;i < W+2;i++){
    cout << "#";
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'H' was not declared in this scope
    7 |   cin >> H >> W;
      |          ^
a.cc:7:15: error: 'W' was not declared in this scope
    7 |   cin >> H >> W;
      |               ^
Language: C++

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

int main() {
  int A,B;
  cin >> A >> B;
  vector<string> vec(A);
  vec.size() = B;
  
  //for (int i = 0; i < A;i++) {
  //  cin >> vec.at(i);
 // }//代入
  
  for (int i = 0; i < A + 2;i++) {
    cout << "#" << endl;
  }//１行目の＃を入力
  
  for (int i = 0;i < A;i++) {
  cout << "#" << vec.at(i) << "#";
  }
  
  for (int i = 0; i < A + 2;i++) {
    cout << "#" << endl;
  }
  
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: lvalue required as left operand of assignment
    8 |   vec.size() = B;
      |   ~~~~~~~~^~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: request for member 'at' in 'a', which is of non-class type 'char [(h + 2)][(w + 2)]'
    9 |         a.at(0).at(i)='#';
      |           ^~
a.cc:10:11: error: request for member 'at' in 'a', which is of non-class type 'char [(h + 2)][(w + 2)]'
   10 |         a.at(h+1).at(i)='#';
      |           ^~
a.cc:13:11: error: request for member 'at' in 'a', which is of non-class type 'char [(h + 2)][(w + 2)]'
   13 |         a.at(i).at(0)='#';
      |           ^~
a.cc:15:22: error: request for member 'at' in 'a', which is of non-class type 'char [(h + 2)][(w + 2)]'
   15 |             cin >> a.at(i).at(j);
      |                      ^~
a.cc:17:11: error: request for member 'at' in 'a', which is of non-class type 'char [(h + 2)][(w + 2)]'
   17 |         a.at(i).at(w+1)='#';
      |           ^~
a.cc:21:23: error: request for member 'at' in 'a', which is of non-class type 'char [(h + 2)][(w + 2)]'
   21 |             cout << a.at(i).at(j);
      |                       ^~
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    Integer h = scan.nextInt();
    Integer w = scan.nextInt();
    StringBuilder sb = new StringBuilder();
    for(int i = 0; i < w + 2; i++) {
      sb.append("#")
    }
    System.out.println(sb);
    for(int i = 0; i < h; i++) {
      sb.Clear();
      sb.append("#");
      sb.append(sc.next());
      sb.append("#");
      System.out.println(sb);
    }
    sb.Clear();
    for(int i = 0; i < w + 2; i++) {
      sb.append("#")
    }
    System.out.println(sb);
  }
}

Compiler output:
Main.java:10: error: ';' expected
      sb.append("#")
                    ^
Main.java:22: error: ';' expected
      sb.append("#")
                    ^
2 errors
Language: C++

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

int main(){
  int H,W;
  cin>>H>>W;
  vector <string> top (W+2,#);
  cout<<top<<endl;
  for(int i=0; i<H+2; i++){
    vector <string> main (W+2,#);
    for(int j=1; j<w+1; j++)
     cin>>main.at(j);
    cout<<main<<endl;
  }
  vector <string> bot (W+2,#);
  cout<<bot<<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;
  vector <int> top (W+2,#);
  cout<<top<<endl;
  for(int i=0; i<H+2; i++){
    vector <int> main (W+2,#);
    for(int j=1; j<w+1; j++)
     cin>>main.at(j);
    cout<<main<<endl;
  }
  vector <int> bot (W+2,#);
  cout<<bot<<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;
  vector<char> vecA(H)(W),vecB(H+2)(W+2);
    
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cin>>vecA.at(i)(j);
    }
  }
  
  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)
        vecB.at(i)(j)='#';
      else
        vecB.at(i)(j)=vecA.at(i-1)(j-1);
    }
  }
  
  for(int i=0;i<H+2;i++){
    for(int j=0;j<W+2;j++){
      cout<<vecB.at(i)(j);
    }
    cout<<endl;
  }
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ',' or ';' before '(' token
    6 |   vector<char> vecA(H)(W),vecB(H+2)(W+2);
      |                       ^
a.cc:10:22: error: expression cannot be used as a function
   10 |       cin>>vecA.at(i)(j);
      |            ~~~~~~~~~~^~~
a.cc:17:9: error: 'vecB' was not declared in this scope; did you mean 'vecA'?
   17 |         vecB.at(i)(j)='#';
      |         ^~~~
      |         vecA
a.cc:19:9: error: 'vecB' was not declared in this scope; did you mean 'vecA'?
   19 |         vecB.at(i)(j)=vecA.at(i-1)(j-1);
      |         ^~~~
      |         vecA
a.cc:19:35: error: expression cannot be used as a function
   19 |         vecB.at(i)(j)=vecA.at(i-1)(j-1);
      |                       ~~~~~~~~~~~~^~~~~
a.cc:25:13: error: 'vecB' was not declared in this scope; did you mean 'vecA'?
   25 |       cout<<vecB.at(i)(j);
      |             ^~~~
      |             vecA
a.cc:28:4: error: expected '}' at end of input
   28 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

int main() {
  int H,W;
  cin >> H >> W;
  string S;
  string T;
  for (int i=0; i < W+2; i++){
    S.push_back('#');
  }
  cout << S << endl;
  for (int i=0; i<H; i++){
    cin >> T;
    cout << '#' << T << '#'<<endl;
  }
  cout << S << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> H >> W;
      |   ^~~
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string S;
      |   ^~~~~~
a.cc:5:9: error: expected ';' before 'T'
    5 |   string T;
      |         ^~
      |         ;
a.cc:7:5: error: 'S' was not declared in this scope
    7 |     S.push_back('#');
      |     ^
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << S << endl;
      |   ^~~~
a.cc:9:11: error: 'S' was not declared in this scope
    9 |   cout << S << endl;
      |           ^
a.cc:9:16: error: 'endl' was not declared in this scope
    9 |   cout << S << endl;
      |                ^~~~
a.cc:11:12: error: 'T' was not declared in this scope
   11 |     cin >> T;
      |            ^
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
int main(void){
  int h,w,i,j;
  cin>>h>>w;
  vector<char> v[(h+2)*(w+2),"#"];
    
  for(i=1;i<w;i++){
    for(j=1;j<h;j++){
      cin>>v.at(i+w*j);
    }
  }
  
  for(i=0;i<w+1;i++){
    for(j=0;j<h+1;j++){
      cout<<v.at(i+w*j);
    }
    cout<<"\n";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected ']' before ',' token
    6 |   vector<char> v[(h+2)*(w+2),"#"];
      |                             ^
      |                             ]
a.cc:6:30: error: expected unqualified-id before string constant
    6 |   vector<char> v[(h+2)*(w+2),"#"];
      |                              ^~~
a.cc:10:12: error: 'v' was not declared in this scope
   10 |       cin>>v.at(i+w*j);
      |            ^
a.cc:16:13: error: 'v' was not declared in this scope
   16 |       cout<<v.at(i+w*j);
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
  int h,w;
  cin>>h>>w;
  vector<char> v[(h+2)*(w+2),"#"]
    
  for(i=1;i<w;i++){
    for(j=1;j<h;j++){
      cin>>v.at(i+w*j)
    }
  }
  
  for(i=0;i<w+1;i++){
    for(j=0;j<h+1;j++){
      cout<<v.at(i+w*j)
    }
    cout<<"\n"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected ']' before ',' token
    6 |   vector<char> v[(h+2)*(w+2),"#"]
      |                             ^
      |                             ]
a.cc:6:30: error: expected unqualified-id before string constant
    6 |   vector<char> v[(h+2)*(w+2),"#"]
      |                              ^~~
a.cc:8:11: error: 'i' was not declared in this scope
    8 |   for(i=1;i<w;i++){
      |           ^
a.cc:15:9: error: 'j' was not declared in this scope
   15 |     for(j=0;j<h+1;j++){
      |         ^
a.cc:16:13: error: 'v' was not declared in this scope
   16 |       cout<<v.at(i+w*j)
      |             ^
a.cc:18:15: error: expected ';' before '}' token
   18 |     cout<<"\n"
      |               ^
      |               ;
   19 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std; 
int main(){
  int H,W;
  char a;
  cin>>H>>W;
  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{
        cin>>a;
        cout<<a
      }
    }
    cout<<endl;
  }
}

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

#include <iostream>
using namespace std;

int main(){
  int h,w;
  cin >> h >> w;
  char arr[h][w];
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      cin >> arr[h][w];
    }
  }
  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++){
      cout << arr[h][w];
    } 
    cout << "#" << endl;
  }
  for(int i=0;i<w;i++){
    cout << "#";
  }
  cout << endl;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:4: 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<string> vec(W);
  
  for(int i=0; i<W+2; i++){
    cout << '#';
  }
  
  cout << endl;
  
  for(int i=0; i<H; i++){
    cout << '#';
    for(int l=0; l<W; l++){
      cin >> vec.at(l);
    }
    for(int l=0; l<W; l++){
      cout << vec.at(l);
    }
    cout << '#' << endl;
  }

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int H,W;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> H >> W;
      |   ^~~
a.cc:7:22: error: 'W' was not declared in this scope
    7 |   vector<string> vec(W);
      |                      ^
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(int i=0; i<W+2; i++){
      |   ^~~
a.cc:9:16: error: 'i' does not name a type
    9 |   for(int i=0; i<W+2; i++){
      |                ^
a.cc:9:23: error: 'i' does not name a type
    9 |   for(int i=0; i<W+2; i++){
      |                       ^
a.cc:13:3: error: 'cout' does not name a type
   13 |   cout << endl;
      |   ^~~~
a.cc:15:3: error: expected unqualified-id before 'for'
   15 |   for(int i=0; i<H; i++){
      |   ^~~
a.cc:15:16: error: 'i' does not name a type
   15 |   for(int i=0; i<H; i++){
      |                ^
a.cc:15:21: error: 'i' does not name a type
   15 |   for(int i=0; i<H; i++){
      |                     ^
Language: C++

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

int main(){
  string H,W;
  cin >> H >>W;
  
  vector<string> A()

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    8 |   vector<string> A()
      |                   ^~
a.cc:8:21: error: expected initializer at end of input
    8 |   vector<string> A()
      |                     ^
a.cc:8:21: 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 H, W;
  cin >> H >> W;
  
  vector<int> vec((H+2)*(W+2), '#');

  for (int w = 0; w < W; i++) {
    for (int h =0; h<H;h++){
      cin >> vec.at(W+3+(W+2)*h);
    }
  }
  for(int w=0;w<W+2;w++){
    for(int h=0;h<H+2;h++){
      cout << vec.at((W+2)*h+w);
    }
    cout << endl;
  }
}


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

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

int main() {
  int H, W;
  cin >> H >> W;
  
  vector<int> vec((H+2)*(W+2), #);

  for (int w = 0; w < W; i++) {
    for (int h =0; h<H;h++){
      cin >> vec.at(W+3+(W+2)*h);
    }
  }
  for(int w=0;w<W+2;w++){
    for(int h=0;h<H+2;h++){
      cout << vec.at((W+2)*h+w);
    }
    cout << endl;
  }
}


Compiler output:
a.cc:8:32: error: stray '#' in program
    8 |   vector<int> vec((H+2)*(W+2), #);
      |                                ^
a.cc: In function 'int main()':
a.cc:8:33: error: expected primary-expression before ')' token
    8 |   vector<int> vec((H+2)*(W+2), #);
      |                                 ^
a.cc:10:26: error: 'i' was not declared in this scope
   10 |   for (int w = 0; w < W; i++) {
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) push_back(a)
#define pp() pop_back()
#define V vector
#define P pair
#define V2(a,b,c) V<V<int>> a(b,V<int>(c))
#define V2a(a,b,c,d) V<V<int>> a(b,V<int>(c,d))
#define incin(a) int a; cin>>a
#define yuko(a) setprecision(a)
#define uni(a) a.erase(unique(a.begin(),a.end()),a.end())

signed main(){
  int h,w;
  cin>>h>>w;
  for(int i=0; i<=h+1; i++){
    V<int> a(w);
    fo(i,n){
      cin>>a[i];
    }
    if(i==0||i==h+1){
      for(int j=0; j<=w+1; j++){
        cout<<'#';
      }
      cout<<endl;
    }
    else{
      for(int j=0; j<=w+1; j++){
        if(j==0||j==w+1)
          cout<<'#';
        else
          cout<<a[j-1];
      }
      cout<<endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:10: error: 'n' was not declared in this scope
   28 |     fo(i,n){
      |          ^
a.cc:4:31: note: in definition of macro 'fo'
    4 | #define fo(a,b) for(int a=0;a<b;a++)
      |                               ^
Language: C++

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

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

int main(){
 int H,W;
  cin >> H >> W;
  for(int i=0;i<H;++i){
    cin >> 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] << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   14 |       b[i][j] = "#";
      |                 ^~~
      |                 |
      |                 const char*
Language: C++

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

int main() {
    int h,w,i,j;
    cin >> h >> w;

    int pic[h][w];
    for(i=0;i<h;i++){
        for(j=0;j<w;j++){
            cin >> pic[i][j];
        }
    }

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

   for(i=0;i<h;i++){
        cout << '#';
        for(j=0;j<w;j++){
            cout << pic[i][j];
        }
        cout << '#' << endl;
    }

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

}



Compiler output:
a.cc:29:17: error: stray '#' in program
   29 |         cout << #;
      |                 ^
a.cc: In function 'int main()':
a.cc:29:18: error: expected primary-expression before ';' token
   29 |         cout << #;
      |                  ^
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 << '#';
  
  for(int i = 0;i < H;i++){
    string nyuryoku;
    cin >> nyuryoku;
    vector<string> retu = {#};    
    retu.push_back(nyuryoku);
    retu.push_back(#);
    for(int i = 0;i < W + 2;i++){
      cout << retu.at(i) << endl;
    }
  }

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

Compiler output:
a.cc:13:28: error: stray '#' in program
   13 |     vector<string> retu = {#};
      |                            ^
a.cc:15:20: error: stray '#' in program
   15 |     retu.push_back(#);
      |                    ^
a.cc: In function 'int main()':
a.cc:15:19: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::push_back()'
   15 |     retu.push_back(#);
      |     ~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note:   candidate expects 1 argument, 0 provided
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 << '#';
  
  for(int i = 0;i < H;i++){
    string nyuryoku;
    cin >> nyuryoku;
    vector<string> retu = {'#'};    
    retu.push_back(nyuryoku);
    retu.push_back('#');
    for(int i = 0;i < W + 2;i++){
      cout << retu.at(i) << endl;
    }
  }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: converting to 'std::vector<std::__cxx11::basic_string<char> >' from initializer list would use explicit constructor 'std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; size_type = long unsigned int; allocator_type = std::allocator<std::__cxx11::basic_string<char> >]'
   13 |     vector<string> retu = {'#'};
      |                               ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:556:7: note: 'std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; size_type = long unsigned int; allocator_type = std::allocator<std::__cxx11::basic_string<char> >]' declared here
  556 |       vector(size_type __n, const allocator_type& __a = allocator_type())
      |       ^~~~~~
a.cc:15:19: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::push_back(char)'
   15 |     retu.push_back('#');
      |     ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'char' to 'const std::vector<std::__cxx11::basic_string<char> >::value_type&' {aka 'const std::__cxx11::basic_string<char>&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'char' to 'std::vector<std::__cxx11::basic_string<char> >::value_type&&' {aka 'std::__cxx11::basic_string<char>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
Language: C++

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

int main() {
    int h,w,i,j;
    cin >> h >> w;

    int pic[h][w]
    for(i=0;i<h;i++){
        for(j=0;j<w;j++){
            cin >> pic[i][j];
        }
    }

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

   for(i=0;i<h;i++){
        cout << '#'
        for(j=0;j<w;j++){
            cout >> pic[i][j];
        }
        cout << '#' << endl;
    }

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

}



Compiler output:
a.cc:29:17: error: stray '#' in program
   29 |         cout << #;
      |                 ^
a.cc: In function 'int main()':
a.cc:9:5: error: expected initializer before 'for'
    9 |     for(i=0;i<h;i++){
      |     ^~~
a.cc:9:20: error: expected ';' before ')' token
    9 |     for(i=0;i<h;i++){
      |                    ^
      |                    ;
a.cc:21:20: error: expected ';' before 'for'
   21 |         cout << '#'
      |                    ^
      |                    ;
   22 |         for(j=0;j<w;j++){
      |         ~~~         
a.cc:22:24: error: expected ';' before ')' token
   22 |         for(j=0;j<w;j++){
      |                        ^
      |                        ;
a.cc:29:18: error: expected primary-expression before ';' token
   29 |         cout << #;
      |                  ^
Language: C++

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

int main() {
    int h,w;
    cin >> h >> w;

    int pic[h][w]
    for(int i=0;i<h;i++){
        for(int j=0;j<w;j++){
            cin >> pic[i][j];
        }
    }


    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++){
            cout >> pic[i][j];
        }
        cout << '#' << endl;
    }


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

}



Compiler output:
a.cc:17:17: error: stray '#' in program
   17 |         cout << #;
      |                 ^
a.cc:31:17: error: stray '#' in program
   31 |         cout << #;
      |                 ^
a.cc: In function 'int main()':
a.cc:9:5: error: expected initializer before 'for'
    9 |     for(int i=0;i<h;i++){
      |     ^~~
a.cc:9:17: error: 'i' was not declared in this scope
    9 |     for(int i=0;i<h;i++){
      |                 ^
a.cc:17:18: error: expected primary-expression before ';' token
   17 |         cout << #;
      |                  ^
a.cc:22:20: error: expected ';' before 'for'
   22 |         cout << '#'
      |                    ^
      |                    ;
   23 |         for(int j=0;j<w;j++){
      |         ~~~         
a.cc:23:21: error: 'j' was not declared in this scope
   23 |         for(int j=0;j<w;j++){
      |                     ^
a.cc:31:18: error: expected primary-expression before ';' token
   31 |         cout << #;
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  vector<int> v(1000000000);
  cout << v[0] << endl;
}

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:10:5: error: redefinition of 'int main()'
   10 | int main () {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int h, w;
  cin >> h >> w;
  vector<char> G(w*h);
  for(int i=0; i<h; i++){
    cin >> G(i);
  }
  for(int i=0; i<w+2;i++){
    cout << '#';
  }
  cout << endl;
  for(int j=0;j<h;j++){
  	for(int i=0;i<w;i++){
    	cout << '#' << G(i) << '#' << endl;
  	}
  }
  for(int i=0; i<w+2;i++){
    cout << '#';
  }
  cout << endl;
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<char>) (int&)'
    9 |     cin >> G(i);
      |            ~^~~
a.cc:17:25: error: no match for call to '(std::vector<char>) (int&)'
   17 |         cout << '#' << G(i) << '#' << endl;
      |                        ~^~~
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: missing template arguments before '(' token
    7 |   vector(string) G(w);
      |         ^
a.cc:7:16: error: expected primary-expression before ')' token
    7 |   vector(string) G(w);
      |                ^
a.cc:9:12: error: 'G' was not declared in this scope
    9 |     cin >> G(i);
      |            ^
a.cc:15:7: error: 'i' was not declared in this scope
   15 |   for(i=0;i<h;i++){
      |       ^
a.cc:16:20: error: 'G' was not declared in this scope
   16 |     cout << '#' << G(i) << '#' << endl;
      |                    ^
Language: C++

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

int main(){
  int h, w;
  char t;
  cin >> h >> w;
  for(int i = 0; i < w; i++)
    cout << '#';
  cout << endl;
  for(i = 0; i < h; i++){
    cout << '#';
    for(j = 0; j < w; j++;){
      cin >> t;
      cout << t;
    }
    cout << '#' << endl;
  }
   for(int i = 0; i < w; i++)
    cout << '#';
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i = 0; i < h; i++){
      |       ^
a.cc:13:9: error: 'j' was not declared in this scope
   13 |     for(j = 0; j < w; j++;){
      |         ^
a.cc:13:26: error: expected ')' before ';' token
   13 |     for(j = 0; j < w; j++;){
      |        ~                 ^
      |                          )
a.cc:13:27: error: expected primary-expression before ')' token
   13 |     for(j = 0; j < w; j++;){
      |                           ^
Language: C++

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

int main(){
  int h, w;
  char t;
  cin >> h >> w;
  for(int i = 0; i < w; i++)
    cout << '#';
  cout << endl;
  for(i = 0; i < h; i++){
    cout << '#';
    for(j = 0; j < w; j++;){
      cin >> t;
      cout << t;
    }
    cout << '#' << endl;
  }
   for(int i = 0; i < w; i++)
    cout << '#';
  cout << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
 
int main() {
  int h, w;
  string s[101];
  s[0] = "", s[h+1] = "";
  cin >> h >> w;
  for(int i=0; i<h; ++i) cin >> s[i+1];
  for(int j=0; j<w; ++j) {
    s[0] += "#";
    s[h+1] += "#";
  }
  for(int i=0; i<=h+1; ++i){
    s[i] = "#" + s[i] + "#";
   	cout << s[i] << endl;
  }
}#include<bits/stdc++.h>
using namespace std;
 
int main() {
  int h, w;
  string s[102];
  s[0] = "", s[h+1] = "";
  cin >> h >> w;
  for(int i=0; i<h; ++i) cin >> s[i+1];
  for(int j=0; j<w; ++j) {
    s[0] += "#";
    s[h+1] += "#";
  }
  for(int i=0; i<=h+1; ++i){
    s[i] = "#" + s[i] + "#";
   	cout << s[i] << endl;
  }
}

Compiler output:
a.cc:18:2: error: stray '#' in program
   18 | }#include<bits/stdc++.h>
      |  ^
a.cc:18:3: error: 'include' does not name a type
   18 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:21:5: error: redefinition of 'int main()'
   21 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
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<W+2;i++) cout << '#';
  cout << endl;
  for(int i=0;i<H;i++){
    cin >> A[i];
    cout << '#' << A[i] << '#' << endl;
  }

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'H' was not declared in this scope
    7 |   vector<string> pic(H);
      |                      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'H' was not declared in this scope
    7 |   vector<string> pic(H);
      |                      ^
a.cc:9:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
    9 |     cin >> pic(i);
      |            ~~~^~~
Language: C++

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

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



}


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

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

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



}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |   vector<str> vec(W);
      |          ^~~
      |          std
a.cc:8:13: error: template argument 1 is invalid
    8 |   vector<str> vec(W);
      |             ^
a.cc:8:13: error: template argument 2 is invalid
a.cc:12:18: error: request for member 'at' in 'vec', which is of non-class type 'int'
   12 |       cin >> vec.at(i);
      |                  ^~
a.cc:18:25: error: request for member 'at' in 'vec', which is of non-class type 'int'
   18 |       cout<< "#" << vec.at(i) << "#" <<endl;
      |                         ^~