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

#include<bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(),(v).end()
#define REP(i,p,n) for(int i=p;i<(int)(n);++i)
#define rep(i,n) REP(i,0,n)
#define SZ(x) ((int)(x).size())
#define debug(x) cerr << #x << ": " << x << '\n'
#define INF 999999999
typedef long long int Int;
typedef pair<int,int> P;
using ll = long long;
using VI = vector<int>;

int main(){
  int h,w;cin >> h >> w;
  rep(0,h){
    string s;cin >> s;
    cout << s << endl << s << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: expected unqualified-id before numeric constant
   16 |   rep(0,h){
      |       ^
a.cc:4:28: note: in definition of macro 'REP'
    4 | #define REP(i,p,n) for(int i=p;i<(int)(n);++i)
      |                            ^
a.cc:16:3: note: in expansion of macro 'rep'
   16 |   rep(0,h){
      |   ^~~
a.cc:16:7: error: expected ';' before numeric constant
   16 |   rep(0,h){
      |       ^
a.cc:4:28: note: in definition of macro 'REP'
    4 | #define REP(i,p,n) for(int i=p;i<(int)(n);++i)
      |                            ^
a.cc:16:3: note: in expansion of macro 'rep'
   16 |   rep(0,h){
      |   ^~~
a.cc:16:7: error: lvalue required as left operand of assignment
   16 |   rep(0,h){
      |       ^
a.cc:4:28: note: in definition of macro 'REP'
    4 | #define REP(i,p,n) for(int i=p;i<(int)(n);++i)
      |                            ^
a.cc:16:3: note: in expansion of macro 'rep'
   16 |   rep(0,h){
      |   ^~~
a.cc:4:42: error: expected ')' before ';' token
    4 | #define REP(i,p,n) for(int i=p;i<(int)(n);++i)
      |                       ~                  ^
a.cc:5:18: note: in expansion of macro 'REP'
    5 | #define rep(i,n) REP(i,0,n)
      |                  ^~~
a.cc:16:3: note: in expansion of macro 'rep'
   16 |   rep(0,h){
      |   ^~~
a.cc:16:7: error: lvalue required as increment operand
   16 |   rep(0,h){
      |       ^
a.cc:4:45: note: in definition of macro 'REP'
    4 | #define REP(i,p,n) for(int i=p;i<(int)(n);++i)
      |                                             ^
a.cc:16:3: note: in expansion of macro 'rep'
   16 |   rep(0,h){
      |   ^~~
Language: C++

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

int h, w;
  
int main () {
  cin >> h >> w;
  vector<vector<char>> c(h, vector<char>(w))
    
  for (int i = 0; i < h; i++){
    for (int j = 0; j < w; j++){
      cin >> c[i][j];
    }
  }
  for (int i = 0; i < h; i++){
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'for'
   10 |   for (int i = 0; i < h; i++){
      |   ^~~
a.cc:10:19: error: 'i' was not declared in this scope
   10 |   for (int i = 0; i < h; i++){
      |                   ^
Language: C++

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

int h, w;
vector<vector<char>> c(h, vector<char>(w))
  
int main () {
  cin >> h >> w;
  for (int i = 0; i < h; i++){
    for (int j = 0; j < w; j++){
      cin >> c[i][j];
    }
  }
  for (int i = 0; i < h; i++){
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
  }
}

Compiler output:
a.cc:7:1: error: expected ',' or ';' before 'int'
    7 | int main () {
      | ^~~
Language: C++

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

int h, w;
vector<vector<char>> c(h, vector<char>(w))
  
int main () {
  cin >> h >> w;
  for (int i = 0; i < h; i++){
    for (int j = 0; j < w; j++){
      cin >> c[i][j];
    }
  }
  for (int i = 0; i < h, i++){
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
  }
}

Compiler output:
a.cc:7:1: error: expected ',' or ';' before 'int'
    7 | int main () {
      | ^~~
Language: C++

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

int h, w;
vector<vector<char>> c(h, vector<char>(w))
  
int main () {
  cin >> h >> w;
  for (int i = 0; i < h, i++){
    for (int j = 0; j < w; j++){
      cin >> c[i][j];
    }
  }
  for (int i = 0; i < h, i++){
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
  }
}

Compiler output:
a.cc:7:1: error: expected ',' or ';' before 'int'
    7 | int main () {
      | ^~~
Language: C++

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

int h, w;
vector<vector<char>> c(h, vector<char>(w))
  
int main () {
  for (int i = 0; i < h, i++){
    for (int j = 0; j < w; j++){
      cin >> c[i][j];
    }
  }
  for (int i = 0; i < h, i++){
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
    for (int j = 0; j < w; j++){
      cout << c[i][j] << endl;
    }
  }
}

Compiler output:
a.cc:7:1: error: expected ',' or ';' before 'int'
    7 | int main () {
      | ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define rrep(i, n) for(int i=((int)(n));i>0;i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)	
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(),(c).end())
#define REVSORT(c) SORT(c);REVERSE(c)
#define ALL(x) (x).begin(),(x).end()
#define INF 1e9
const long long MOD = 10e9 + 7;
typedef long long ll;

int main(){
	int H, W;
	cin >> H >> W;
	vector<vector<char>> P(H, vector<char>(W));
	rep(i, H){
		rep(j, W){
			cin >> P.at(i).at(j);
		}
	}
	rep(i, N){
		rep(j, W){
			rep(k, 2){
				cout << P.at(i).at(j);
				if(j == W - 1)cout << endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: 'N' was not declared in this scope
   23 |         rep(i, N){
      |                ^
a.cc:3:39: note: in definition of macro 'rep'
    3 | #define rep(i, n) for(int i=0;i<(int)(n);i++)
      |                                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define rrep(i, n) for(int i=((int)(n));i>0;i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)	
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(),(c).end())
#define REVSORT(c) SORT(c);REVERSE(c)
#define ALL(x) (x).begin(),(x).end()
#define INF 1e9
const long long MOD = 10e9 + 7;
typedef long long ll;

int main(){
	int H, W;
	cin >> H >> W;
	vector<vector<char>> P(H, vector<char>(W));
	rep(i, H){
		rep(j, W){
			cin >> P.at(i).at(j);
			cout << P.at(i).at(j);
			if(j == W - 1)cout << endl;
		}
	}
	rep(i, N){
		rep(j, W){
			cout << P.at(i).at(j);
			if(j == W - 1)cout << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:16: error: 'N' was not declared in this scope
   25 |         rep(i, N){
      |                ^
a.cc:3:39: note: in definition of macro 'rep'
    3 | #define rep(i, n) for(int i=0;i<(int)(n);i++)
      |                                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++);
int main(){
    int H, W; cin >> H >> W;
    vector<vector<int>> C(H, vector<int>(W, 0));
    rep(i, H){
        rep(j, W){
            cin >> C[i][j];
        }
    }

    rep(i, H){
        rep(j ,W) cout << C[2*i];
        cout << endl;
        rep(j, W) cout << C[2*i+1];
        cout << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'i' was not declared in this scope
    9 |             cin >> C[i][j];
      |                      ^
a.cc:9:25: error: 'j' was not declared in this scope
    9 |             cin >> C[i][j];
      |                         ^
a.cc:14:31: error: 'i' was not declared in this scope
   14 |         rep(j ,W) cout << C[2*i];
      |                               ^
Language: C++

#include <iostream>
#include <string>

using namespace std;
int main() {
    int h, w;
    cin >> h >> w;
    string s[h];
    for(int i=0; i<n; i++) cin >> s[i];
    for(int i=0; i<n; i++) cout << s[i] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'n' was not declared in this scope
    9 |     for(int i=0; i<n; i++) cin >> s[i];
      |                    ^
a.cc:10:20: error: 'n' was not declared in this scope
   10 |     for(int i=0; i<n; i++) cout << s[i] << endl;
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main(){
  char a[h][w];
  rep(i,h){
    rep(j,w){
      cin>>a[i][j];
    }
  }
   rep(i,h){
    rep(j,w){
      cout<<a[i][j];
    }
     cout<<endl;
  }
  rep(i,h){
    rep(j,w){
      cout<<a[i][j];
    }
     cout<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'h' was not declared in this scope
   14 |   char a[h][w];
      |          ^
a.cc:14:13: error: 'w' was not declared in this scope
   14 |   char a[h][w];
      |             ^
a.cc:17:12: error: 'a' was not declared in this scope
   17 |       cin>>a[i][j];
      |            ^
a.cc:22:13: error: 'a' was not declared in this scope
   22 |       cout<<a[i][j];
      |             ^
a.cc:28:13: error: 'a' was not declared in this scope
   28 |       cout<<a[i][j];
      |             ^
Language: C++

#include<iostream>
#include<algorithm>
#include<queue>
#include<windows.h>
#include<cstdio>
#include<stdio.h>
#include<cmath>
#include<math.h>
#include<cstring>
#include<string>
using namespace std;
int main(){
    int n,m;
    char a[101];
    cin>>n>>m;
    for(int i=1;i<=n;i++){
        cin>>a;
        puts(a);
        puts(a);
    }
    return 0;
} 

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: 'j' was not declared in this scope
   15 |     do{cout<<vvc.at(i).at(j);
      |                           ^
a.cc:17:12: error: 'j' was not declared in this scope
   17 |     }while(j<W);
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ')' before 'vector'
    6 |   vector<vector<char>> c(h vector<char>(w));
      |                         ~ ^~~~~~~
      |                           )
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
  int H,W;
  vector<vector<int>>date(H,vector<int>(W));
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cin>>date[i][j];
    }
  }
   for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cout<<date[i][j]<<endl<<date[i][j]<<endl;
      }
    }
   }
}

Compiler output:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main(){
  int A,B;
  cin>>A>>B;
  vector<vector<char>> C(A,vector<char>(B))
    for(int i=0;i<A;i++){
     for(int j=0;j<B;j++){
        cin>>C.at(i).at(j);
     }
    }
    for(int i=0;i<A;i++){
     for(int j=0;j<B;j++){
       if(j!=B)
       cout<<C.at(i).at(j);
       else
       cout<<C.at(i).at(j)<<endl;
       if(j!=B)
       cout<<C.at(i).at(j);
       if(j==B)
       cout<<C.at(i).at(j)<<endl;
     }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'for'
    8 |     for(int i=0;i<A;i++){
      |     ^~~
a.cc:8:17: error: 'i' was not declared in this scope
    8 |     for(int i=0;i<A;i++){
      |                 ^
Language: C++

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

int main(){
  int A,B;
  cin>>A>>B;
  vector<vector<char>> C(A,vector<char>(B))
    for(int i=0;i<A;i++){
     for(int j=0;j<B;j++){
        cin>>C.at(i).at(j);
     }
    }
    for(int i=0;i<A;i++){
     for(int j=0;j<B;j++){
       if(j!=B)
       cout<<C.at(i).at(j);
       else
       cout<<C.at(i).at(j)<<endl;
       if(j!=B)
       cout<<C.at(i).at(j);
       else
       cout<<C.at(i).at(j)<<endl;
     }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'for'
    8 |     for(int i=0;i<A;i++){
      |     ^~~
a.cc:8:17: error: 'i' was not declared in this scope
    8 |     for(int i=0;i<A;i++){
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before 'endl'
   12 |     cout << c.at(i+1) endl;
      |                      ^~~~~
      |                      ;
Language: C++

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

int main(){
int h,w;cin>>h>>w;
vector<string>s(2*h);
for(int i=0;i<h;i++){
	string x;cin>>x;
 s[2*i]=x;s[2*i+1]=x;
}
for(auto&& u:s)cout<<u<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 | int h,w;cin>>h>>w;
      |         ^~~
a.cc:6:1: error: 'vector' was not declared in this scope
    6 | vector<string>s(2*h);
      | ^~~~~~
a.cc:6:8: error: 'string' was not declared in this scope
    6 | vector<string>s(2*h);
      |        ^~~~~~
a.cc:6:15: error: 's' was not declared in this scope
    6 | vector<string>s(2*h);
      |               ^
a.cc:8:15: error: expected ';' before 'x'
    8 |         string x;cin>>x;
      |               ^~
      |               ;
a.cc:8:23: error: 'x' was not declared in this scope
    8 |         string x;cin>>x;
      |                       ^
a.cc:11:16: error: 'cout' was not declared in this scope
   11 | for(auto&& u:s)cout<<u<<endl;
      |                ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope
   11 | for(auto&& u:s)cout<<u<<endl;
      |                         ^~~~
Language: C++

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

int main(){
	int H, W, i;
	scanf("%d%d", &H, &W);
	vecrot<string> C(H);
	for(i = 0; i < H; i++){
		cin >> C[i];
	}
	for(i = 0; i < H; i++){
		cout << C[i] << endl;
		cout << C[i] << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'vecrot' was not declared in this scope
    7 |         vecrot<string> C(H);
      |         ^~~~~~
a.cc:7:22: error: expected primary-expression before '>' token
    7 |         vecrot<string> C(H);
      |                      ^
a.cc:7:24: error: 'C' was not declared in this scope
    7 |         vecrot<string> C(H);
      |                        ^
Language: C++

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

int main(){
	int h,w;	cin>>h>>w;
	char tile[h+2][w+2];
	for(int i=0;i<h+2;i++){
		for(int j=0;j<w+2;j++){
			tile[i][j]='@';
		}
	}

	for(int i=1;i<=h;i++){
		for(int j=1;j<=w;j++)cin>>tile[i][j];
	}
	for(int i=1;i<=h;i++){
		for(int k=0;k<2;k++){
			for(int j=1;j<=w;j++){
				cout<<tile[i][j];
			}
			cout<<endl;
		}
	}
	cout<<endl;

cout<<endl;

	return 0;
}
cout<<endl;


Compiler output:
a.cc:30:1: error: 'cout' does not name a type
   30 | cout<<endl;
      | ^~~~
Language: C++

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

int main() {
	int h, w; cin >> h >> w;
	char buf[105];

	for (int y = 0; y < h; y++) {
		scanf_s("%s", buf, 105);
		printf("%s\n%s\n", buf, buf);
	}

	return 0;
}

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

#include <iostream>
using namespace std;

int main() {
	int h, w; cin >> h >> w;
	char buf[105];

	for (int y = 0; y < h; y++) {
		scanf_s("%s", buf, 105);
		printf("%s\n%s\n", buf, buf);
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |                 scanf_s("%s", buf, 105);
      |                 ^~~~~~~
      |                 scanf
Language: Java

import java.util.*;
 
public class Main{
  public static void main(String[]args){
    Scanner sc =  new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    int H = Integer.parseInt(S[0]);
    
    for(int i = 0; i < N; i++){
      String T = sc.nextLine();
      System.out.println(T);
      System.out.println(T);
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    for(int i = 0; i < N; i++){
                       ^
  symbol:   variable N
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>

#define ld long double
#define ll long long int
#define ull unsigned long long int
#define vi vector<int>
#define vl vector<ll>
#define vvi vector< vector<int> >
#define vvl vector< vector<ll> >
#define repd(i, a, b) for (int i=(a);i<(b);i++)
#define rep(i, n) repd(i,0,n)
#define ALL(v) v.begin(), v.end()
#define INF 1e9

using namespace std;

/**
 * calculate GCD(greatest common divisor)
 * @param a
 * @param b
 * @return
 */
unsigned euclidean_gcd(unsigned a, unsigned b) {
    if (a < b) return euclidean_gcd(b, a);
    unsigned r;
    while ((r = a % b)) {
        a = b;
        b = r;
    }
    return b;
}

/**
 * change minimum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T>
inline bool changeMinimum(T &a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * change maximum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T>
inline bool changeMaximum(T &a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * output answer
 * @tparam T
 * @param answer
 * @return
 */
template<typename T>
T output(T answer) {
    cout << answer << endl;
    return 0;
}

/** ----from here ---------------------------------------------------------- */

int main() {


    int H, W;
    cin >> H >> W;
    vector <string> s(H);

    for (int i = 0; i <; ++i) {
        cin >> s[i];
    }


    for (int i = 0; i < ; ++i) {
        cout<<s[i]<<endl;
        cout<<s[i]<<endl;
    }


    

}

Compiler output:
a.cc: In function 'int main()':
a.cc:86:24: error: expected primary-expression before ';' token
   86 |     for (int i = 0; i <; ++i) {
      |                        ^
a.cc:91:25: error: expected primary-expression before ';' token
   91 |     for (int i = 0; i < ; ++i) {
      |                         ^
Language: C++

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

int main(){
  int h,w;
  cin >> h >> w;
  char c[h][w];
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      cin >> c[i][j];
    }
  }
  for(int k=0;k<h;k++){
    for(int l=0;l<w;l++){
      cout << c[i][j] << endl;
    }
    for(int l=0;l<w;l++){
      cout << c[i][j] << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'i' was not declared in this scope
   15 |       cout << c[i][j] << endl;
      |                 ^
a.cc:15:20: error: 'j' was not declared in this scope
   15 |       cout << c[i][j] << endl;
      |                    ^
a.cc:18:17: error: 'i' was not declared in this scope
   18 |       cout << c[i][j] << endl;
      |                 ^
a.cc:18:20: error: 'j' was not declared in this scope
   18 |       cout << c[i][j] << endl;
      |                    ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: invalid use of member function 'std::vector<std::__cxx11::basic_string<char> >::at' (did you forget the '()' ?)
   11 |       cin >> c.at(i).at.(j);
      |              ~~~~~~~~^~
a.cc:17:23: error: invalid use of member function 'std::vector<std::__cxx11::basic_string<char> >::at' (did you forget the '()' ?)
   17 |       cout << c.at(i).at.(j);
      |               ~~~~~~~~^~
a.cc:21:23: error: invalid use of member function 'std::vector<std::__cxx11::basic_string<char> >::at' (did you forget the '()' ?)
   21 |       cout << c.at(i).at.(j);
      |               ~~~~~~~~^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: invalid use of member function 'std::vector<char>::at' (did you forget the '()' ?)
   11 |       cin >> c.at(i).at.(j);
      |              ~~~~~~~~^~
a.cc:17:23: error: invalid use of member function 'std::vector<char>::at' (did you forget the '()' ?)
   17 |       cout << c.at(i).at.(j);
      |               ~~~~~~~~^~
a.cc:21:23: error: invalid use of member function 'std::vector<char>::at' (did you forget the '()' ?)
   21 |       cout << c.at(i).at.(j);
      |               ~~~~~~~~^~
Language: C++

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

int main() {
  int H, W;
  cin >> H >> W;
  vector<int> C(H);
  
  for(int i = 0; i < H; i++) {
    cin >> vector[i];
    cout << vector[i] << endl;
    cout << vector[i] << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: missing template arguments before '[' token
   10 |     cin >> vector[i];
      |                  ^
a.cc:11:19: error: missing template arguments before '[' token
   11 |     cout << vector[i] << endl;
      |                   ^
a.cc:12:19: error: missing template arguments before '[' token
   12 |     cout << vector[i] << endl;
      |                   ^
Language: C++

#include <iostream>
using namespace std;
int main() 
	int h,w,i;
	string s;
	cin >> h >> w ;
	for(i=0;i<h;i++){
		cin >> a[i];
		cout << a[i] << endl << a[i] << endl;
	}
	return 0;
}

Compiler output:
a.cc:4:9: error: expected initializer before 'int'
    4 |         int h,w,i;
      |         ^~~
a.cc:6:9: error: 'cin' does not name a type
    6 |         cin >> h >> w ;
      |         ^~~
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for(i=0;i<h;i++){
      |         ^~~
a.cc:7:17: error: 'i' does not name a type
    7 |         for(i=0;i<h;i++){
      |                 ^
a.cc:7:21: error: 'i' does not name a type
    7 |         for(i=0;i<h;i++){
      |                     ^
a.cc:11:9: error: expected unqualified-id before 'return'
   11 |         return 0;
      |         ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before ')' token
    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;

  char C[H][W];
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cin>>C[i][j];
    }
  }

  char ans[2*H][W];

  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      ans[2*i][j] = c[i][j];
      ans[2*i+1][j] = c[i][j];
    }
  }

  for(int i=0;i<2*H;i++){
    for(int j=0;j<W;j++){
      cout<<C[i][j];
    }
    cout<<"\n";
  }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: 'c' was not declared in this scope
   19 |       ans[2*i][j] = c[i][j];
      |                     ^
Language: C++

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

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

  char C[H][W];
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cin>>C[i][j];
    }
  }

  char ans[2*H][W];

  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      ans[2*i][j] = c[i][j];]
      ans[2*i+1][j] = c[i][j];
    }
  }

  for(int i=0;i<2*H;i++){
    for(int j=0;j<W;j++){
      cout<<C[i][j];
    }
    cout<<"\n";
  }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: 'c' was not declared in this scope
   19 |       ans[2*i][j] = c[i][j];]
      |                     ^
a.cc:19:29: error: expected primary-expression before ']' token
   19 |       ans[2*i][j] = c[i][j];]
      |                             ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int h,w;
	cin >> h >> w;
  	string x;
	for(int i = 0;i < h;i++){
      	cin >> x;
		cout << x << endl;
      	cout << x << endl;
	}
	cout<<sum<<endl;
}

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

#include <iostream>
using namespace std;
int main(void){
	int h,w;
	cin >> h >> w;
	string x;
	for(int i = 0;i < h;i++){
		cout << x << endl;
      	cout << x << endl;
	}
	cout<<sum<<endl;
}

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

#include <stdio.h>
#include <string.h>
int main()
{
	int h,w,i,j;
	char c[310][300];
	scanf("%d %d",&h,&w);
	getchar();
	for(i=1;i<=h;i++){
			gets(c[i]);
	}
	for(i=1;i<=h;i++){
			puts(c[i]);
			puts(c[i]);
	}
	return 0;
}

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

#include <stdio.h>
int main()
{
	int h,w,i,j;
	char c[310][300];
	scanf("%d %d",&h,&w);
	getchar();
	for(i=1;i<=h;i++){
			gets(c[i]);
	}
	for(i=1;i<=h;i++){
			puts(c[i]);
			puts(c[i]);
	}
	return 0;
}

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

#include<iostream>
#include<string>
#include<algorithm>
#include<vevctor>
using namespace std;

int main(){
  int h, w;
  cin >> h >> w;
  string s;
  
  for(int i = 0; i < h; i++){
    cin >> s;
    cout << s << endl;
    cout << s << endl;
  }
}
  

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: invalid types 'int[int]' for array subscript
    7 |         char s[101[101];
      |                   ^
a.cc:7:24: error: expected ']' before ';' token
    7 |         char s[101[101];
      |                        ^
      |                        ]
a.cc:9:37: error: 's' was not declared in this scope
    9 |         for(int j=1;j<=100;++j)cin>>s[i][j];
      |                                     ^
a.cc:11:38: error: 's' was not declared in this scope
   11 |         for(int j=1;j<=100;++j)cout<<s[i][j]<<endl<<s[i][j]<<endl;
      |                                      ^
Language: C++

#include<iostram>
using namespace std;

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

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

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

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


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

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

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

    vector<string> C(H);
    for (int i = 0; i < H; i++)
    {
        cin >> C[i];
    }

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: 'S' was not declared in this scope
   20 |             cout << S[i] << endl;
      |                     ^
Language: C++

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

int main() {
  int h,w;
  cin>>h>>w;
  vector<string> s(h);
  for(int i=0;i<h;i++){
    cin>>s.at(i);
    cout<<s.at(i)<<endl<<s.at(i)<<endl;
  
}

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

#include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;
int main() {
	int h,w;
//	scanf("%d %d",&h,&w);
	cin>>h>>w;
	char str[1001][1001]= {'\0'};
	int i,j;
	fflush(stdin);
	for(i=1; i<=h; i++) {
		for(j=1; j<=w; j++) {
//			scanf("%c",str[i][j]);
			cin>>str[i][j];
		}

	}
//	for(i=1; i<=h; i++) {
//		gets(str[i]);
//	}
	for(i=1; i<=h; i++) {
		for(j=1; j<=w; j++) {
			printf("%c",str[i][j]);
		}
//		printf("%s",str[i]);
		printf("\n");
		for(j=1; j<=w; j++) {
			printf("%c",str[i][j]);
		}
//		printf("%s",str[i]);
		printf("\n");
	}
//	double temp;
//	for(i=1; i<=h; i++) {
//		gets(str[i]);
//	}
//	for(i=1; i<=h*2-1; i++) {
//		for(j=0; j<w; j++) {
//			temp=floor((i+1)/2);
//			int a=(int)temp;
//			printf("%c",str[a][j]);
//		}
//		printf("\n");
//	}
//	for(j=0; j<w; j++) {
//		temp=floor((i+1)/2);
//		int a=(int)temp;
//		printf("%c",str[a][j]);
//	}
}

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

#include<stdio.h>
int main(){
	int h,w;
	scanf("%d %d",&h,&w);
	char str[101][101];
	int i;
	fflush(stdin);
	for(i=0;i<h;i++){
		gets(str[i]);
	}
	for(i=0;i<h;i++){
		puts(str[i]);
		puts(str[i]);
	}
	return 0;
}

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

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	int h,w;
	cin>>h>>w;
	char str[101][101];
	int i;
	fflush(stdin);
	for(i=0;i<h;i++){
		gets(str[i]);
	}
	for(i=0;i<h;i++){
		puts(str[i]);
		puts(str[i]);
	}
	return 0;
}

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

#include<iostream>
using namespace std;
int main(){
	int h,w;
	cin>>h>>w;
	char str[101][101];
	int i;
	fflush(stdin);
	for(i=0;i<h;i++){
		gets(str[i]);
	}
	for(i=0;i<h;i++){
		puts(str[i]);
		puts(str[i]);
	}
	return 0;
}

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

#include<iostream>
using namespace std;
int main(){
	int h,w;
	cin>>h>>w;
	char str[101][101];
	int i;
	fflush(stdin);
	for(i=0;i<h;i++){
		gets(str[i]);
	}
	for(i=0;i<h;i++){
		puts(str[i]);
		puts(str[i]);
	}
	return 0;
}

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

#include<stdio.h>
int main() {
	int h,w;
//	cin>>h>>w;
//	getchar();
	scanf("%d %d",&h,&w);
//	fflush(stdin);
	while(getchar()!='\n')
		continue;
	char str[][101]= {'\0'};
	int i,j;
	for(i=0; i<h; i++) {
		gets(str[i]);
//		for(j=0; j>w; j++) {
////			cin>>str[i][j];
////			scanf("%c",&str[i][j]);
//		}
	}
	for(i=0; i<2*h; i++) {
		for(j=0; j<w; j++) {
			cout<<str[(i)/2][j];
		}
		printf("\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   13 |                 gets(str[i]);
      |                 ^~~~
      |                 fgets
main.c:21:25: error: 'cout' undeclared (first use in this function)
   21 |                         cout<<str[(i)/2][j];
      |                         ^~~~
main.c:21:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main() {
	int h,w;
//	cin>>h>>w;
//	getchar();
	scanf("%d %d",&h,&w);
//	fflush(stdin);
	while(getchar()!='\n')
		continue;
	char str[][101]= {'\0'};
	int i,j;
	for(i=0; i<h; i++) {
		gets(str[i]);
//		for(j=0; j>w; j++) {
////			cin>>str[i][j];
////			scanf("%c",&str[i][j]);
//		}
	}
	for(i=0; i<2*h; i++) {
		for(j=0; j<w; j++) {
			cout<<str[(i)/2][j];
		}
		printf("\n");
	}
	return 0;
}

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

 #include <stdio.h>
#include <math.h>
#include <string.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <time.h>
#include <queue>
#include <list>
#include <string.h>
#define sf scanf
#define pf printf
#define lf double
#define ll long long
#define p123 printf("123\n");
#define pn printf("\n");
#define pk printf(" ");
#define p(n) printf("%d",n);
#define pln(n) printf("%d\n",n);
#define s(n) scanf("%d",&n);
#define ss(n) scanf("%s",n);
#define ps(n) printf("%s",n);
#define sld(n) scanf("%lld",&n);
#define pld(n) printf("%lld",n);
#define slf(n) scanf("%lf",&n);
#define plf(n) printf("%lf",n);
#define sc(n) scanf("%c",&n);
#define pc(n) printf("%c",n);
#define gc getchar();
#define re(n,a) memset(n,a,sizeof(n));
#define len(a) strlen(a)
#define LL long long
#define eps 1e-6
using namespace std;
const double pi = 3.1415926535;
/*
https://codeforces.com/contest/1106/problems
https://codeforces.com/contest/1106/submit
*/
const ll mod = 1e9+7;
//快速幂 (a^b)%mod
//如果求逆元，则b = mod-2;
ll pow_quick(ll a,ll b){
    ll r = 1,base = a;
    while(b){
        if(b & 1){
            r *= base;
            r %= mod;
        }
        base *= base;
        base %= mod;
        b >>= 1;
    }
    return r;
}
char a[1000000];
int main(){
    int h,w;
    s(h) s(w)
    gc
    for(int i = 0; i < h; i ++){
        gets(a);
        puts(a);
        puts(a);
    }
	return 0;
 }


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

 #include <stdio.h>
#include <math.h>
#include <string.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <time.h>
#include <queue>
#include <list>
#include <string.h>
#define sf scanf
#define pf printf
#define lf double
#define ll long long
#define p123 printf("123\n");
#define pn printf("\n");
#define pk printf(" ");
#define p(n) printf("%d",n);
#define pln(n) printf("%d\n",n);
#define s(n) scanf("%d",&n);
#define ss(n) scanf("%s",n);
#define ps(n) printf("%s",n);
#define sld(n) scanf("%lld",&n);
#define pld(n) printf("%lld",n);
#define slf(n) scanf("%lf",&n);
#define plf(n) printf("%lf",n);
#define sc(n) scanf("%c",&n);
#define pc(n) printf("%c",n);
#define gc getchar();
#define re(n,a) memset(n,a,sizeof(n));
#define len(a) strlen(a)
#define LL long long
#define eps 1e-6
using namespace std;
const double pi = 3.1415926535;
/*
https://codeforces.com/contest/1106/problems
https://codeforces.com/contest/1106/submit
*/
const ll mod = 1e9+7;
//快速幂 (a^b)%mod
//如果求逆元，则b = mod-2;
ll pow_quick(ll a,ll b){
    ll r = 1,base = a;
    while(b){
        if(b & 1){
            r *= base;
            r %= mod;
        }
        base *= base;
        base %= mod;
        b >>= 1;
    }
    return r;
}
char a[1000000];
int main(){
    int h,w;
    s(h) s(w)
    gc
    for(int i = 0; i < h; i ++){
        gets(a);
        puts(a);
        puts(a);
    }
	return 0;
 }



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

#include<stdio.h>

int main(){
  char s[101][101];
  int H, W, i;
  
  scanf("%d %d", &H, &W)
  for(i = 0; i < H; i++){
    scanf("%s", s[i]);
  }
  for (i = 0; i < 2*H; i++){
    printf("%s\n", s[i/2]);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:25: error: expected ';' before 'for'
    7 |   scanf("%d %d", &H, &W)
      |                         ^
      |                         ;
    8 |   for(i = 0; i < H; i++){
      |   ~~~
Language: C

#include<studio.h>

int main(void)
{
  int h,w,moji[110];
  scanf("%d%d",&h,&w);
  for(int i = 0;i < h;i++)
  {
    scanf("%s",moji);
    printf("%s",moji);
    printf("%s",moji);
  }
  return 0;
}

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

#include<stdio.h>
int main(void)
{
        int h,w;
        char a[10000][10000];
        scanf("%d%d",&h,&w);
        for(i=1;i<=w;i++) for(j=1;j<=h;j++) scanf("%c",&a[i][j]);
        for(i=1;i<=w;i=(i+1)/2){
                for(j=1;j<=h;j++) printf("%c",a[i][j]);
                printf("\n");
        }
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
    7 |         for(i=1;i<=w;i++) for(j=1;j<=h;j++) scanf("%c",&a[i][j]);
      |             ^
a.cc:7:31: error: 'j' was not declared in this scope
    7 |         for(i=1;i<=w;i++) for(j=1;j<=h;j++) scanf("%c",&a[i][j]);
      |                               ^
a.cc:8:13: error: 'i' was not declared in this scope
    8 |         for(i=1;i<=w;i=(i+1)/2){
      |             ^
a.cc:9:21: error: 'j' was not declared in this scope
    9 |                 for(j=1;j<=h;j++) printf("%c",a[i][j]);
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int h,w;cin>>h>>w;
  vector<string> c(h);
  for(int i=0;i<h;i++){
    cin>>c[i];
  }
  for(int i=0;i<h;i++){
    cout<<c[i]<<endl;
    cout<<c[i]<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<string> c(h);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:16: error: expected primary-expression before '>' token
    5 |   vector<string> c(h);
      |                ^
a.cc:5:18: error: 'c' was not declared in this scope
    5 |   vector<string> c(h);
      |                  ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int h,w;
    cin >>h>>w;
    char C[h][w];
    for(int i=0;i<h;i++){
        for(int j=0;j<w;j++){
            cin>>C[i][j];
        }
    }

     for(int i=0;i<h;i++){
        for(int j=0;j<w;j++){
            cout<<C[i][j];
        }
        cout<<endl;
        for(int j=0;j<w;j++){
            cout<<C[i][j];
        }
        cout<<endl;

    }

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

#include <iostream>
#include <string>
#include <sstream>
#include <set>
#include <map>
#include <unordered_map>
#include <stack>
#include <queue>
#include <vector>
#include <utility>
#include <iomanip>
#include <sstream>
#include <bitset>
#include <cstdlib>
#include <iterator>
#include <algorithm>
#include <functional>
#include <random>
#include <bits/stdc++.h>

#include <stdio.h>
#include <cstdio>
#include <cctype>
#include <cmath>
#include <math.h>
#include <ctime>
#include <cstring>

typedef long long ll;
using namespace std;

#define FOR(i,N) for(ll i=0;i<N;i++) 
#define RFOR(i,N) for(ll i=N-1;i>=0;--i)
#define COUT(str) cout << str << endl

#define MAX_N 100 //"long long","int"かを変えること!!!!

//入力
int h,w ;
string BUR[105];

int main() {
	int h, w;

	cin >> h >> w;

	FOR(i, h) {
		cin >> BUR[i];

		COUT(BUR)[i];

		COUT(BUR)[i];
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:26: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
   50 |                 COUT(BUR)[i];
      |                          ^
a.cc:52:26: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
   52 |                 COUT(BUR)[i];
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[101][101];
typedef long long ll;
typedef unsigned long long ull;
int main(){
	int a,b,i,j;
	cin>>a>>b;
	for(i=1;i<=a;i++)
		for(j=1;j<=b;j++) cin>>a[i][j];
	for(i=1;i<=a;i++)
		for(j=1;j<=b*2;j++) a[i][j]=a[(i+1)/2][j];
	for(i=1;i<=a;i++)
		for(j=1;j<=b*2;j++) cout<<a[i][j];
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: invalid types 'int[int]' for array subscript
   10 |                 for(j=1;j<=b;j++) cin>>a[i][j];
      |                                         ^
a.cc:12:38: error: invalid types 'int[int]' for array subscript
   12 |                 for(j=1;j<=b*2;j++) a[i][j]=a[(i+1)/2][j];
      |                                      ^
a.cc:12:46: error: invalid types 'int[int]' for array subscript
   12 |                 for(j=1;j<=b*2;j++) a[i][j]=a[(i+1)/2][j];
      |                                              ^
a.cc:14:44: error: invalid types 'int[int]' for array subscript
   14 |                 for(j=1;j<=b*2;j++) cout<<a[i][j];
      |                                            ^
Language: C++

#include<iostream>
#include<climits>
#include<math.h>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<stdio.h>
#include <string>
#include <complex>
#include <functional>
using namespace std;
typedef pair<int,int> P;
double dat[100][100];
int dp[6][1010];//動的計画法
int prime[10000001];
char str[1010][1010];
vector<pair<int,int> > pc[100001];
int ABS(int a){return max(a,-a);}
int main(){
	string s[101];
	int h,n;
	cin>>h>>n;
	for(int i=0;i<h,i++) cin>>s[i];
	for(int i=0;i<h;i++){
		cout<<s[i]<<endl;
		cout<<s[i]<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:28: error: expected ';' before ')' token
   23 |         for(int i=0;i<h,i++) cin>>s[i];
      |                            ^
      |                            ;
Language: C++

#include<iostream>
#include<string>
typedef long long int ll;
using namespace std;
    ll A,B;
    string S,T;
int main(){
    cin>>A>>B;
    REP(i,A){
        cin>>S;cout<<S<<endl<<S<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |     REP(i,A){
      |         ^
a.cc:9:5: error: 'REP' was not declared in this scope
    9 |     REP(i,A){
      |     ^~~
Language: C++

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

int main(){
  int H,W;
  cin >> H >> W;
  vector<char> C(10010);
  for(int i=1;i<=H*W;i++){
    cin >> C.at(i);}
  for(int i=1;i<=W;i++){
    cout << C.at(i)

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' at end of input
   13 |     cout << C.at(i)
      |                    ^
      |                    ;
a.cc:13:20: error: expected '}' at end of input
a.cc:12:24: note: to match this '{'
   12 |   for(int i=1;i<=W;i++){
      |                        ^
a.cc:13:20: error: expected '}' at end of input
   13 |     cout << C.at(i)
      |                    ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

    string s;

    for(int i=0;i<n;i++)
    {
        cin >> s;
        cout << s << endl;
        cout << s << endl;
    }
}

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

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

int main(){
  int a,b;
  string array[101];
  cin>>a>>b;
  for(i=0;i<b;i++){
    cin>>array[i];
    cout<<array[i]<<endl;
    cout<<array[i]<<endl;
  }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'int' is not a template
    7 |   int<vector> a(H*W);
      |   ^~~
a.cc:9:14: error: request for member 'at' in 'a', which is of non-class type 'int'
    9 |     cin >> a.at(i);
      |              ^~
a.cc:10:4: error: expected '}' at end of input
   10 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main(){
	int h,w;cin>>h>>w;
	rep(h){
		string s;cin>>s;cout<<s<<endl<<s<<endl;
		}
	}

Compiler output:
a.cc:7:14: error: macro "rep" requires 2 arguments, but only 1 given
    7 |         rep(h){
      |              ^
a.cc:2:9: note: macro "rep" defined here
    2 | #define rep(i,n) for(int i=0;i<n;i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'rep' was not declared in this scope
    7 |         rep(h){
      |         ^~~