criyle/codenet-compile-errors huggingface dataset:
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++)
  {
    cin>>a[i];
  }
  
   string b[];
   
   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:8:10: error: array size missing in 'a'
    8 |   string a[];
      |          ^
a.cc:15:11: error: array size missing in 'b'
   15 |    string b[];
      |           ^
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;i++)
    cin>>a[i]
  
    for(int i=0;i<=h+1;i++)
    {
      for(int j=0;j<=h+1;j++)
      {
        if(i==0||j==0||i==h+1||j==w+1)
          a[i][j]='#'
      }
    }
  
  for(int i=0;i<=h+1;i++)
      cout<<a[i]<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before 'for'
   13 |     cin>>a[i]
      |              ^
      |              ;
   14 | 
   15 |     for(int i=0;i<=h+1;i++)
      |     ~~~       
a.cc:15:17: error: 'i' was not declared in this scope
   15 |     for(int i=0;i<=h+1;i++)
      |                 ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: expected ';' before ')' token
   13 |   for(int i = 0; i < w + 2){
      |                           ^
      |                           ;
a.cc:22:27: error: expected ';' before ')' token
   22 |   for(int i = 0; i < w + 2){
      |                           ^
      |                           ;
Language: C++

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

/*最初に，縦H+ 2行，横W+ 2列の文字配列bを用意し，#で埋めておきます．
次に，各1iH,1jWごとにai;jをbi+1;j+1へコピーします．
最後に，配列bの内容を出力すればよいです．*/

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expression list treated as compound expression in functional cast [-fpermissive]
   10 |   cout << char(W+2, '#') << endl;
      |                        ^
a.cc:16:24: error: expression list treated as compound expression in functional cast [-fpermissive]
   16 |   cout << char(W+2, '#') << endl;
      |                        ^
Language: C++

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

int main() {
  int H, W;
   cin >> H >> W;
  victor<string>A( W - 2 ) ;
  
  for ( int i = 0; i < H - 2; i++ ) {
   cin >> A.at(i) ;
  }
  
  for ( int i = 0; i < W; i++ ) {
    cout << "#";
  }
    cout << endl;
  
  for ( int i = 0; i < H - 2; i++ ) {
    cout << "#" << "A.at(i)" << "#" << endl;
  }
  
  for ( int i = 0; i < W; i++ ) {
    cout << "#";
  }
    cout << endl;
}
  
    
    
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'victor' was not declared in this scope
    7 |   victor<string>A( W - 2 ) ;
      |   ^~~~~~
a.cc:7:16: error: expected primary-expression before '>' token
    7 |   victor<string>A( W - 2 ) ;
      |                ^
a.cc:7:17: error: 'A' was not declared in this scope
    7 |   victor<string>A( W - 2 ) ;
      |                 ^
Language: C++

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

Compiler output:
a.cc:8:25: error: stray '#' in program
    8 |   vector<char> vec (H+1,#);
      |                         ^
a.cc: In function 'int main()':
a.cc:8:26: error: expected primary-expression before ')' token
    8 |   vector<char> vec (H+1,#);
      |                          ^
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=0; i<H+1; i++){
      |        ^
a.cc:10:15: error: expected unqualified-id before ',' token
   10 |     cout<<vec.,at(i)
      |               ^
a.cc:10:16: error: 'at' was not declared in this scope
   10 |     cout<<vec.,at(i)
      |                ^~
Language: C++

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

int main() {
  int A,B;
  cis >>A >>B;
  cout << A*2 + B*2 + 4 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cis' was not declared in this scope; did you mean 'cos'?
    6 |   cis >>A >>B;
      |   ^~~
      |   cos
Language: C++

#include<stdio.h>
char a[100][101],b[102][102];
int main(void){
  int h,w;
  scanf("%d %d",&h,&w);
  for(int loop1=0;loop1<h;loop1++){
    scanf("%s",a[loop1]);
  }
  for(int loop1=0;loop1<h+2;loop1++){
    for(int loop2=0;loop2<w+2;loop2++){
      b[loop1][loop2]="#";
    }
  }
  for(int loop1=0;loop1<h;loop1++){
    for(int loop2=0;loop2<w;loop2++){
      b[loop1+1][loop2+1]=a[loop1][loop2];
    }
  }
  for(int loop1=0;loop1<h+2;loop1++){
    for(int loop2=0;loop2<w+2;loop2++){
      printf("%c\n",b[loop1][loop2]);
    }
  }
  return 0;
}

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

#include<stdio.h>
char a[100][101],b[102][102];
int main(void){
  int h,w;
  scanf("%d %d",&h,&w);
  for(int loop1=0;loop1<h;loop1++){
    scanf("%s",a[loop1]);
  }
  for(int loop1=0;loop1<h+2;loop1++){
    for(int loop2=0;loop2<w+2;loop2++){
      b[loop1][loop2]='#';
    }
  }
  for(int loop1=0;loop1<h;loop1++){
    for(int loop2=0;loop2<w;loop2++){
      b[loop1+1][loop2+1]=a[loop1][loop2];
    }
  }
  for(int loop1=0;loop1<h+2;loop1++){
    for(int loop2=0;loop<w+2;loop2++){
      printf("%c\n",b[loop1][loop2]);
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: 'loop' was not declared in this scope; did you mean 'loop2'?
   20 |     for(int loop2=0;loop<w+2;loop2++){
      |                     ^~~~
      |                     loop2
Language: C++

#include<stdio.h>
char a[100][101],b[102][102];
int main(void){
  int h,w;
  scanf("%d %d",&h,&w);
  for(int loop1=0;loop1<h;loop1++){
    scanf("%s",a[i]);
  }
  for(int loop1=0;loop1<h+2;loop1++){
    for(int loop2=0;loop2<w+2;loop2++){
      b[loop1][loop2]='#';
    }
  }
  for(int loop1=0;loop1<h;loop1++){
    for(int loop2=0;loop2<w;loop2++){
      b[loop1+1][loop2+1]=a[loop1][loop2];]
    }
  }
  for(int loop1=0;loop<h+2;loop1++){
    for(int loop2=0;loop<w+2;loop2++){
      printf("%s\n",b[loop1][loop2]);
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'i' was not declared in this scope
    7 |     scanf("%s",a[i]);
      |                  ^
a.cc:16:43: error: expected primary-expression before ']' token
   16 |       b[loop1+1][loop2+1]=a[loop1][loop2];]
      |                                           ^
a.cc:19:19: error: 'loop' was not declared in this scope; did you mean 'loop1'?
   19 |   for(int loop1=0;loop<h+2;loop1++){
      |                   ^~~~
      |                   loop1
Language: C++

h,w=map(int, input().split())
li=['#'*(w+2)]
for i in range(h):
    li.append('#'+input()+'#')
li.append('#'*(w+2))
for n in li:
    print(n)

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

#include <iostream>

using namespace std;

#define repd(i,a,b) for (int i=(a);i<(b);++i)
#define rep(i,n) repd(i,0,n)
typedef long long ll;


int main(){
  int h, w;
  cin >> h >> w;
  string s;
  rep(i, h+2){
    printf('#');
    if(i == 0 || i == h+1){
      rep(i, w){
        printf('#');
      }
    }else{
      cin >> s;
      printf("%s", s);
      // cout << s;
    }
    printf("#\n")
    // cout << '#' << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   15 |     printf('#');
      |            ^~~
      |            |
      |            char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:18:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   18 |         printf('#');
      |                ^~~
      |                |
      |                char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:25:18: error: expected ';' before '}' token
   25 |     printf("#\n")
      |                  ^
      |                  ;
   26 |     // cout << '#' << endl;
   27 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  cin >> n >> m;
  char a[n+2][m+2];
  for(int i=0;i<=n+1;i++){
    if(i==0||i==n+1){
      for(int j=0;j<m+2;i++){
        cout << "#";
      }
      cout << endl;
    }
    cout << "#";
    for(int jj=1;jj<=m;jj++)
      cin >> a[i][jj];
      cout << a[i][jj];
    }
    cout << "#" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 'jj' was not declared in this scope; did you mean 'jn'?
   17 |       cout << a[i][jj];
      |                    ^~
      |                    jn
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  cin >> n >> m;
  char a[n+2][m+2];
  for(int i=0;i<=n+1;i++){
    if(i==0||i==n+1){
      for(int j=0;j<m+2;i++){
        cout << "#";
      }
      cout << endl;
    }
    cout << "#";
    for(int j=1;j<=m;j++)
      cin >> a[i][j];
      cout << a[i][j];
    }
    cout << "#" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 'j' was not declared in this scope
   17 |       cout << a[i][j];
      |                    ^
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
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);
    vec.at(i)='#'+vec.at(i)+'#';
  }
  for(int i=0;i<W;i++){
    cout<<'#';
  }
  endl;
  for(int i=0;i<H;i++){
    cout<<vec.at(i)<<endl;
  }
  for(int i=0;i<W;i++){
    cout<<'#';
  }
  endl;
}
  
  

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

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

int main() {
  int i,j;
  cin >> i >> j;
  vector<string> str(i);
  
  for(int l=0;l<i;l++) {
    cin >> str.at(l);
  }
  for(int l=0;l<j+2;l++) {
    cout << "#";
  }
  cout << endl;
  
  for(int l=0;l<i;l++) {
    cout << "#" << A.at(l) << "#" << endl;
  }
  
  for(int l=0;l<j+2;l++) {
    cout << "#";
  }
  cout << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: 'A' was not declared in this scope
   18 |     cout << "#" << A.at(l) << "#" << endl;
      |                    ^
Language: C++

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 ]);
1
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:9:16: error: extended character ’ is not valid in an identifier
    9 | b [ i ][ j ] = ’# ’;
      |                ^
a.cc:9:17: error: stray '#' in program
    9 | b [ i ][ j ] = ’# ’;
      |                 ^
a.cc:9:19: error: extended character ’ is not valid in an identifier
    9 | b [ i ][ j ] = ’# ’;
      |                   ^
a.cc: In function 'int main()':
a.cc:3:13: error: 'cin' was not declared in this scope
    3 | int H , W ; cin >> H >> W ;
      |             ^~~
a.cc:5:1: error: 'scanf' was not declared in this scope
    5 | scanf ("% s " , a [ i ]);
      | ^~~~~
a.cc:6:2: error: expected ';' before 'for'
    6 | 1
      |  ^
      |  ;
    7 | for ( int i = 0; i < H + 2; i ++)
      | ~~~
a.cc:7:18: error: 'i' was not declared in this scope
    7 | for ( int i = 0; i < H + 2; i ++)
      |                  ^
a.cc:8:18: error: 'j' was not declared in this scope
    8 | for ( int j = 0; j < W + 2; j ++)
      |                  ^
a.cc:15:1: error: 'cout' was not declared in this scope
   15 | cout << b [ i ][ j ];
      | ^~~~
a.cc:16:1: error: 'cout' was not declared in this scope
   16 | cout << endl ;
      | ^~~~
a.cc:16:9: error: 'endl' was not declared in this scope
   16 | cout << endl ;
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() {
  int h, w;
  int a[h+2][w+2];
  for(int i(0);i<h+2;i++)
    for(int j(0);j<w+2;j++)
      a[i][j]='#';
  for ( int i = 0; i < H ; i ++)
    scanf ("% s " , a [ i ]);
  /*for(int i(1);i<h+1;i++)
    for(int j(1);j<w+1;j++)
      cin >> a[i][j];*/
  for(int i(0);i<h+2;i++){
    for(int j(0);j<w+2;j++)
      cout << a[i][j];
    cout << endl;
  }
}

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

#include <iostream>

using namespace std;
 
int main() {
    int h, w;
    
    cin >> h >> w;
    for(int j = 0 ; j < w + 2 ; j++) cout << "#" ;
    cout << endl;
    for(int i = 0 ; i < h ; i++){
        string s;
        cin >> s;
        cout << "#" << s << "#" << endl;
    }
    for(int j = 0 ; j < w + 2 ; j++) cout << "#" <<;
    cout << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:52: error: expected primary-expression before ';' token
   16 |     for(int j = 0 ; j < w + 2 ; j++) cout << "#" <<;
      |                                                    ^
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  vector<char> vec(W+2,'#');
  vec2 = vec;
  for (int A=0; A<W+2; A++) cout << vec.at(A) <<endl;
  for (int i=0; i<H+2; i++) {
    for (int j=1; j<W+1; j++) cin >> vec.at(j);
    for (int k=0; k<W+2; k++) cout << vec.at(k) <<endl;
  }  
  vector<char> vec2(W+2,'#');
  for (int k=0; k<W+2; k++) cout << vec2.at(k) <<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vec2' was not declared in this scope; did you mean 'vec'?
    8 |   vec2 = vec;
      |   ^~~~
      |   vec
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  vector<char> vec(W+2,'#');
  vec2 = vec;
  for (int A=0; A<W+2; A++) cout << vec.at(A) <<endl;
  for (int i=0; i<H+2; i++) {
    for (int j=1; j<W+1; j++) cin >> vec.at(j);
    for (int k=0; k<W+2; k++) cout << vec.at(k) <<endl;
  }  
  vector<char> vec2(W+2,'#')
  for (int k=0; k<W+2; k++) cout << vec2.at(k) <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vec2' was not declared in this scope; did you mean 'vec'?
    8 |   vec2 = vec;
      |   ^~~~
      |   vec
a.cc:15:17: error: 'k' was not declared in this scope
   15 |   for (int k=0; k<W+2; k++) cout << vec2.at(k) <<endl;
      |                 ^
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  vector<char> vec(W+2,'#');
  vec2 = vec;
  for (int A=0; A<W+2; A++) cout << vec.at(A) <<endl;
  for (int i=0; i<H+2; i++) {
    for (int j=1; j<W+1; j++) cin >> vec.at(j);
    for (int k=0; k<W+2; k++) cout << vec.at(k) <<endl;
  }  
  vector<char> vec(W+2,'#')
  for (int k=0; k<W+2; k++) cout << vec2.at(k) <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vec2' was not declared in this scope; did you mean 'vec'?
    8 |   vec2 = vec;
      |   ^~~~
      |   vec
a.cc:14:16: error: redeclaration of 'std::vector<char> vec'
   14 |   vector<char> vec(W+2,'#')
      |                ^~~
a.cc:7:16: note: 'std::vector<char> vec' previously declared here
    7 |   vector<char> vec(W+2,'#');
      |                ^~~
a.cc:15:17: error: 'k' was not declared in this scope
   15 |   for (int k=0; k<W+2; k++) cout << vec2.at(k) <<endl;
      |                 ^
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  vector<char> vec(W+2,'#');
  vec2 = vec;
  for (int A=0; A<W+2; A++) cout << vec.at(A) <<endl;
  for (int i=0; i<H+2; i++) {
    for (int j=1; j<W+1; j++) cin >> vec.at(j);
    for (int k=0; k<W+2; k++) cout << vec.at(k) <<endl;
  }  
  for (int k=0; k<W+2; k++) cout << vec2.at(k) <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vec2' was not declared in this scope; did you mean 'vec'?
    8 |   vec2 = vec;
      |   ^~~~
      |   vec
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'i' was not declared in this scope
    7 |   vector<string> vec(i)
      |                      ^
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for (int i = 0;i < H;i++) {
      |   ^~~
a.cc:13:19: error: expected ';' before '<' token
   13 |   for (int i = 0,i < H;i++) cout <<"#"<<vec(i)<<"#"<<endl;
      |                   ^~
      |                   ;
a.cc:13:20: error: expected primary-expression before '<' token
   13 |   for (int i = 0,i < H;i++) cout <<"#"<<vec(i)<<"#"<<endl;
      |                    ^
a.cc:13:44: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   13 |   for (int i = 0,i < H;i++) cout <<"#"<<vec(i)<<"#"<<endl;
      |                                         ~~~^~~
a.cc:14:18: error: expected ';' before '<' token
   14 |   for(int i = 0,i < H;i++) {
      |                  ^~
      |                  ;
a.cc:14:19: error: expected primary-expression before '<' token
   14 |   for(int i = 0,i < H;i++) {
      |                   ^
a.cc:15:15: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   15 |     cin >> vec(i)
      |            ~~~^~~
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  vector<char> vec(W,'#');
  for (int A=0; A<W; A++) cout << vec.at(A) <<endl;
  for (int i=0; i<H; i++) {
    for (int j=1; j<W-1; j++) cin >> vec.at(j);
    for (int k=0; k<W; k++) cout << vec.at(k) <<endl;
  } 
  vector<char> vec2(W,'#')
  for (int B=0; B<W; B++) cout << vec2.at(B) <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected ',' or ';' before 'for'
   14 |   for (int B=0; B<W; B++) cout << vec2.at(B) <<endl;
      |   ^~~
a.cc:14:17: error: 'B' was not declared in this scope
   14 |   for (int B=0; B<W; B++) cout << vec2.at(B) <<endl;
      |                 ^
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W;
  vector<char> vec(W,'#');
  vec2 = vec;
  for (int A=0; A<W; A++) cout << vec.at(A) <<endl;
  for (int i=0; i<H; i++) {
    for (int j=1; j<W-1; j++) cin >> vec.at(j);
    for (int k=0; k<W; k++) cout << vec.at(k) <<endl;
  }  
  for (int k=0; k<W; k++) cout << vec2.at(k) <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vec2' was not declared in this scope; did you mean 'vec'?
    8 |   vec2 = vec;
      |   ^~~~
      |   vec
Language: C++

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

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


Compiler output:
a.cc:7:22: error: stray '#' in program
    7 |   vector<char> vec(W,#)
      |                      ^
a.cc: In function 'int main()':
a.cc:7:23: error: expected primary-expression before ')' token
    7 |   vector<char> vec(W,#)
      |                       ^
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for (int i=0; i<H; i++) {
      |   ^~~
a.cc:8:17: error: 'i' was not declared in this scope
    8 |   for (int i=0; i<H; i++) {
      |                 ^
Language: C++

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

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


Compiler output:
a.cc:7:22: error: stray '#' in program
    7 |   vector<char> vec(W,#)
      |                      ^
a.cc: In function 'int main()':
a.cc:7:23: error: expected primary-expression before ')' token
    7 |   vector<char> vec(W,#)
      |                       ^
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for (int i=1; i<H; i++) {
      |   ^~~
a.cc:8:17: error: 'i' was not declared in this scope
    8 |   for (int i=1; i<H; i++) {
      |                 ^
Language: C++

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

int mai(){
	int H, W, Q;
	cin >> H >> W;
	Q = H * W;
	vector<char> Ass(Q);
	
	for(int i = 0;i<Q;i++){
		cin >> Ass.at(i);
	}
	
	for(int j = 0;j<W+2;j++){
		cout << "#";
	}
	cout << endl;
	
	for(int k = 0;k<H;k++){
		cout << "#";
		for(int l = 0;l<W;l++){
			int co = k*W + l;
			cout << Ass.at(co);
		}
		cout << "#" << endl;
	}
	
	for(int m =0;m<W+2;m++){
		cout << "#";
	}
	cout << endl;
}

Compiler output:
a.cc: In function 'int mai()':
a.cc:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int mai(){
	int H, W, Q;
	cin >> H >> W;
	Q = H * W;
	vector<char> Ass;
	
	for(int i = 0;i<Q;i++){
		cin >> Ass.at(i);
	}
	
	for(int j = 0;j<W+2;j++){
		cout << "#";
	}
	cout << endl;
	
	for(int k = 0;k<H;k++){
		cout << "#";
		for(int l = 0;l<W;l++){
			int co = k*W + l;
			cout << Ass.at(co);
		}
		cout << "#" << endl;
	}
	
	for(int m =0;m<W+2;m++){
		cout << "#";
	}
	cout << endl;
}

Compiler output:
a.cc: In function 'int mai()':
a.cc:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int main(){
	int H,W,Q;
	cin >> H >> W;
	Q = W * W;
	vector<char> Ass(Q);
	
	for(int i = 0;i<Q;i++){
		cin >> Ass(i);
	}
	
	for(int j = 0;j<W+2;j++){
		cout << "#";
	}
	
	cout << endl;
	
	for(int k = 0;k<Q;k++){
		if(k%W == 0)
			cout<< "#";
		cout << Ass.at(k);
		if(k%W == W-1)
			cout << "#" << endl;
	}
	
	for(int l = 0;l<W+2;l++){
		cout << "#";
	}
	
	cout << endl;	

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected initializer before '.' token
   10 |   vector<string> v.at(i) = c;
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ',' or ';' before '=' token
   10 |   vector<string> v(i) = c;
      |                       ^
Language: C++

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

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


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

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

  char a [100][101] , b [102][102];
int main () {
int H , W ; cin >> H >> W ;
for ( int i = 0; i < H ; i ++)
scanf ("% s " , a [ i ]);
  for ( int i = 0; i < H + 2; i ++)
for ( int j = 0; j < W + 2; j ++)
b [ i ][ j ] = ’# ’;
for ( int i = 0; i < H ; i ++)
for ( int j = 0; j < W ; j ++)
b [ i + 1][ j + 1] = a [ i ][ j ];
for ( int i = 0; i < H + 2; i ++) {
for ( int j = 0; j < W + 2; j ++)
cout << b [ i ][ j ];
cout << endl ;
}
}

Compiler output:
a.cc:11:16: error: extended character ’ is not valid in an identifier
   11 | b [ i ][ j ] = ’# ’;
      |                ^
a.cc:11:17: error: stray '#' in program
   11 | b [ i ][ j ] = ’# ’;
      |                 ^
a.cc:11:19: error: extended character ’ is not valid in an identifier
   11 | b [ i ][ j ] = ’# ’;
      |                   ^
a.cc: In function 'int main()':
a.cc:11:16: error: '\U00002019' was not declared in this scope
   11 | b [ i ][ j ] = ’# ’;
      |                ^
Language: C++

nclude<bits/stdc++.h>
using namespace std;
#define Mod(n) n % 1000000007
const int dx[8] = {1, 0, -1, 0, -1, 1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, -1, -1, 1};

int main()
{
    int h,w;
    cin >> h >> w;
    vector<string> s(h);
    for(int i = 0;i < h;i++)
    {
        cin >> s[i];
        s[i] = "#" + s[i] + "#";
    }
    for(int i = 0;i < w + 2;i++)
        cout << "#";
    cout << '\n';
    for(int i = 0;i < h;i++)
    {
        cout << s[i] << '\n';
    }
    for(int i = 0;i < w + 2;i++)
        cout << "#";
    cout << '\n';
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin >> h >> w;
      |     ^~~
a.cc:11:5: error: 'vector' was not declared in this scope
   11 |     vector<string> s(h);
      |     ^~~~~~
a.cc:11:12: error: 'string' was not declared in this scope
   11 |     vector<string> s(h);
      |            ^~~~~~
a.cc:11:20: error: 's' was not declared in this scope
   11 |     vector<string> s(h);
      |                    ^
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "#";
      |         ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << '\n';
      |     ^~~~
Language: C++

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


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

vector<int>　vec(H*W);
rep(i,H){
rep(j,W){
  cin>>vec1.at(i*H+j);

}

}
rep(i,H+2){
rep(j,W+2){
  if((i==0)||(i==H+1)||(j==0)||(j==W+1)){
  cout<<'#';
  if(j==W+1){
  cout<<endl;
  }
  }
  else{
cout<< vec1.at((i-1)*H+j-1) <<endl;
}


}

}

}


Compiler output:
a.cc:11:12: error: extended character 　 is not valid in an identifier
   11 | vector<int>　vec(H*W);
      |            ^
a.cc: In function 'int main()':
a.cc:14:8: error: 'vec1' was not declared in this scope
   14 |   cin>>vec1.at(i*H+j);
      |        ^~~~
a.cc:28:8: error: 'vec1' was not declared in this scope
   28 | cout<< vec1.at((i-1)*H+j-1) <<endl;
      |        ^~~~
Language: C++

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


int main() {
int H,W;
cin >>H>>W;
vector<int> vec2(W);
vector<vector<int>>　vec1(H,vec2);
rep(i,H){
rep(j,W){
  cin>>vec1.at(i).at(j);

}

}
rep(i,H+2){
rep(j,W+2){
  if((i==0)||(i==H+1)||(j==0)||(j==W+1)){
  cout<<'#';
  if(j==W+1){
  cout<<endl;
  }
  }
  else{
cout<< vec1.at(i-1).at(j-1) <<endl;
}


}

}

}


Compiler output:
a.cc:11:20: error: extended character 　 is not valid in an identifier
   11 | vector<vector<int>>　vec1(H,vec2);
      |                    ^
a.cc: In function 'int main()':
a.cc:14:8: error: 'vec1' was not declared in this scope; did you mean 'vec2'?
   14 |   cin>>vec1.at(i).at(j);
      |        ^~~~
      |        vec2
a.cc:28:8: error: 'vec1' was not declared in this scope; did you mean 'vec2'?
   28 | cout<< vec1.at(i-1).at(j-1) <<endl;
      |        ^~~~
      |        vec2
Language: C++

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


int main() {
int H,W;
cin >>H>>W;
vector<vector<int>>　vec1(H,vec2(W));
rep(i,H){
rep(j,W){
  cin>>vec1.at(i).at(j);

}

}
rep(i,H+2){
rep(j,W+2){
  if((i==0)||(i==H+1)||(j==0)||(j==W+1)){
  cout<<'#';
  if(j==W+1){
  cout<<endl;
  }
  }
  else{
cout<< vec1.at(i-1).at(j-1) <<endl;
}


}

}

}


Compiler output:
a.cc:10:20: error: extended character 　 is not valid in an identifier
   10 | vector<vector<int>>　vec1(H,vec2(W));
      |                    ^
a.cc: In function 'int main()':
a.cc:10:29: error: 'vec2' was not declared in this scope
   10 | vector<vector<int>>　vec1(H,vec2(W));
      |                             ^~~~
a.cc:13:8: error: 'vec1' was not declared in this scope; did you mean '　vec1'?
   13 |   cin>>vec1.at(i).at(j);
      |        ^~~~
      |        　vec1
a.cc:27:8: error: 'vec1' was not declared in this scope; did you mean '　vec1'?
   27 | cout<< vec1.at(i-1).at(j-1) <<endl;
      |        ^~~~
      |        　vec1
Language: C++

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


int main() {
int H,W;
cin >>H>>W;
vector<vector<int>>　vec(H,vector<int>(W));
rep(i,H){
rep(j,W){
  cin>>vec.at(i).at(j);

}

}
rep(i,H+2){
rep(j,W+2){
  if((i==0)||(i==H+1)||(j==0)||(j==W+1)){
  cout<<'#';
  if(j==W+1){
  cout<<endl;
  }
  }
  else{
cout<< vec.at(i-1).at(j-1) <<endl;
}


}

}

}


Compiler output:
a.cc:10:20: error: extended character 　 is not valid in an identifier
   10 | vector<vector<int>>　vec(H,vector<int>(W));
      |                    ^
a.cc: In function 'int main()':
a.cc:13:8: error: 'vec' was not declared in this scope
   13 |   cin>>vec.at(i).at(j);
      |        ^~~
a.cc:27:8: error: 'vec' was not declared in this scope
   27 | cout<< vec.at(i-1).at(j-1) <<endl;
      |        ^~~
Language: C++

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


int main() {
int H,W;
cin >>H>>W;
vector<vector<int>>　vec(H,vector<int>(W));
rep(i,H){
rep(i,W){
  cin>>vec.at(i).at(j);

}

}
rep(i,H+2){
rep(i,W+2){
  if((i==0)||(i==H+1)||(j==0)||(j==W+1)){
  cout<<'#';
  if(j==W+1){
  cout<<endl;
  }
  }
  else{
cout<< vec.at(i-1).at(j-1) <<endl;
}


}

}

}


Compiler output:
a.cc:10:20: error: extended character 　 is not valid in an identifier
   10 | vector<vector<int>>　vec(H,vector<int>(W));
      |                    ^
a.cc: In function 'int main()':
a.cc:13:8: error: 'vec' was not declared in this scope
   13 |   cin>>vec.at(i).at(j);
      |        ^~~
a.cc:13:21: error: 'j' was not declared in this scope
   13 |   cin>>vec.at(i).at(j);
      |                     ^
a.cc:20:25: error: 'j' was not declared in this scope
   20 |   if((i==0)||(i==H+1)||(j==0)||(j==W+1)){
      |                         ^
a.cc:27:8: error: 'vec' was not declared in this scope
   27 | cout<< vec.at(i-1).at(j-1) <<endl;
      |        ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected initializer before 'a_H_W'
    5 |   int H,W,i,j a_H_W;
      |               ^~~~~
a.cc:14:12: error: 'a_H_W' was not declared in this scope
   14 |       cin>>a_H_W;
      |            ^~~~~
a.cc: At global scope:
a.cc:27:5: error: redefinition of 'int main()'
   27 | 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,i,j a_H_W;
  cin>>H>>W;
  for(i=0;i<H+1;i++){
    cout<<"#";
  }
  cout<<"#"<<endl;
  for(i=0;i<H;i++){
    cout<<"#";
    for(int j=0;j<W;j++){
      cin>>a_H_W;
      cout<<a_H_W;
    }
    cout<<"#"<<endl;
  }
  for(i=0;i<H+1;i++){
    cout<<"#";
  }
  cout<<"#"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected initializer before 'a_H_W'
    5 |   int H,W,i,j a_H_W;
      |               ^~~~~
a.cc:14:12: error: 'a_H_W' was not declared in this scope
   14 |       cin>>a_H_W;
      |            ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected primary-expression before 'int'
   14 |       cin>>int a_H_W;
      |            ^~~
a.cc:15:13: error: 'a_H_W' was not declared in this scope
   15 |       cout<<a_H_W;
      |             ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main ()
{
    char a[200][200];
    int i,j,m,n,k,l;
    cin>>m>>n;
    k=m+2;
    l=n+2;
    for(i=0;i<k;i++)eh
    {
        for(j=0;j<l;j++)
        {
            a[i][j]='#';
        }
    }


    for(i=1;i<=m;i++)
    {
        for(j=1;j<=n;j++)
        {
           cin>>a[i][j];
        }
    }
    for(i=0;i<k;i++)
    {
        for(j=0;j<l;j++)
        {
           cout<<a[i][j];
        }
        puts(" ");
    }
    puts(" ");

}



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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:13: error: 'cin' was not declared in this scope
    2 |   int h, w; cin >> h >> w;
      |             ^~~
a.cc:3:3: error: 'vector' was not declared in this scope
    3 |   vector<vector<char>> data(h, vector<char>(w));
      |   ^~~~~~
a.cc:3:17: error: expected primary-expression before 'char'
    3 |   vector<vector<char>> data(h, vector<char>(w));
      |                 ^~~~
a.cc:6:14: error: 'data' was not declared in this scope
    6 |       cin >> data[i][j];
      |              ^~~~
a.cc:10:18: error: expected primary-expression before 'char'
   10 |    vector<vector<char>> ans(h+2, vector<char>(w+2));
      |                  ^~~~
a.cc:13:7: error: 'ans' was not declared in this scope
   13 |       ans[0][j] = '#';
      |       ^~~
a.cc:22:7: error: 'ans' was not declared in this scope
   22 |       ans[i][j] = data[i-1][j-1];
      |       ^~~
a.cc:22:19: error: 'data' was not declared in this scope
   22 |       ans[i][j] = data[i-1][j-1];
      |                   ^~~~
a.cc:28:7: error: 'cout' was not declared in this scope
   28 |       cout << ans[i][j];
      |       ^~~~
a.cc:28:15: error: 'ans' was not declared in this scope
   28 |       cout << ans[i][j];
      |               ^~~
a.cc:29:26: error: 'endl' was not declared in this scope
   29 |       if(j==w+1) cout << endl;
      |                          ^~~~
Language: C++

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

int main(){
  int H;
  int W;
  int count = 0;
  cin >> H >> W;
  vector<int> tate(H);
  vector<int> yoko(W);
  vector<int> kazu(H*W);
  for(int i=0; i < H*W;i++){
    cin >> kazu(i);
  }
  for(int i=0; i < W + 1;i++){
    if(i < W){
      cout << "#";
    }else{
      cout << "#" << endl;
    }
  }
  for(int i=0; i < H;i++){
    if(count < H){
      cout << "#";
      for(int j=0; j <H;j++){
        cout << kazu.at(j * (count + 1));
      }
      cout << "#" << endl;
      count++;
    }else{
      count = 0;
    }   
  }
  for(int i=0; i < W + 1;i++){
    if(i < W){
      cout << "#";
    }else{
      cout << "#" << endl;
    }
  }
}

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

#define _GLIBCXX_DEBUG
#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 a;
        cin >> s;
        cout << "#" << a << "#" << endl;
    }
    for (int i=0; i < w+2; i++) {
        cout << "#";
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 's' was not declared in this scope
   14 |         cin >> s;
      |                ^
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++){
    vector<int> v_i(w);
    cout << '#';
    for (int j = 0; j < w; j++){
      cin >> v_i.at(j);
      cout << v_i.at(j);
    }
    cout << '#' << endl;
  }
  
  for (int i = 0; i < w + 2; i++)
    cout << #;
}
  
      

Compiler output:
a.cc:9:13: error: stray '#' in program
    9 |     cout << #;
      |             ^
a.cc:24:13: error: stray '#' in program
   24 |     cout << #;
      |             ^
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before ';' token
    9 |     cout << #;
      |              ^
a.cc:24:14: error: expected primary-expression before ';' token
   24 |     cout << #;
      |              ^
Language: C++

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

int main(){
  int H,W;
  cin >> H >> W;
  vector<char> c(H*W)
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cin >> c.at(i+j)
    }
  }
  for(int i=0;i<W;i++){
    cout << "#";
    if(i==W-1)
      cout << endl;
  }
  for(int i=0;i<H;i++){
    cout << "#";
    for(int j=0;j<W;j++){
      cout << c.at(i+j);
      if(j==W-1)
        cout << "#" << 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:8:3: error: expected ',' or ';' before 'for'
    8 |   for(int i=0;i<H;i++){
      |   ^~~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<H;i++){
      |               ^
Language: C++

#include <
using namespace std;
#define rep(i, s, n) for (int i = (s); i < (int)(n); i++)
int main(){
    int height, width;
    cin >> height >> width;
    vector<vector<char> > pixel(height + 2, vector<char> (width + 2, '#'));
    rep(i, 1, height + 1){
        rep(j, 1, width + 1){
            cin >> pixel.at(i).at(j);
        }
    }
    rep(i, 0, pixel.size()){
        rep(j, 0, pixel.at(0).size()){
            cout << pixel.at(i).at(j);
        }
        cout << endl;
    }
}

Compiler output:
a.cc:1:11: error: missing terminating > character
    1 | #include <
      |           ^
a.cc:1:10: error: empty filename in #include
    1 | #include <
      |          ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> height >> width;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include <
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<vector<char> > pixel(height + 2, vector<char> (width + 2, '#'));
      |     ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #include <
a.cc:7:19: error: expected primary-expression before 'char'
    7 |     vector<vector<char> > pixel(height + 2, vector<char> (width + 2, '#'));
      |                   ^~~~
a.cc:10:20: error: 'pixel' was not declared in this scope
   10 |             cin >> pixel.at(i).at(j);
      |                    ^~~~~
a.cc:13:15: error: 'pixel' was not declared in this scope
   13 |     rep(i, 0, pixel.size()){
      |               ^~~~~
a.cc:3:50: note: in definition of macro 'rep'
    3 | #define rep(i, s, n) for (int i = (s); i < (int)(n); i++)
      |                                                  ^
a.cc:15:13: error: 'cout' was not declared in this scope
   15 |             cout << pixel.at(i).at(j);
      |             ^~~~
a.cc:15:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << endl;
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:17: error: 'endl' was not declared in this scope
   17 |         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 | #include <
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: 'cin' was not declared in this scope
    5 |   cin >> H >> N;
      |   ^~~
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:6:3: error: 'vector' was not declared in this scope
    6 |   vector<char> A(N * H);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'char'
    6 |   vector<char> A(N * H);
      |          ^~~~
a.cc:9:12: error: 'A' was not declared in this scope
    9 |     cin >> A.at(i);
      |            ^
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:22:15: error: 'A' was not declared in this scope
   22 |       cout << A.at(k + N * o);
      |               ^