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

#include <iostream>
#include <string>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <vector>
#include <bitset>
#include <functional>
#include <queue>
#include <utility>
#include <map>
#include "UnionFind.h"
using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define dump(x)  cerr << #x << " = " << (x) << endl;
typedef long long LL;
typedef pair<int, int> P;
const int INF = 1 << 29;	// 十分大きい値にする, INT_MAX にしないのはオーバーフロー対策


void solve()
{
	int A, B;
	cin >> A >> B;

	int res = B;

	if (A <= 5) {
		res = 0;
	}
	else if (A <= 12) {
		res = B / 2;
	}

	cout << res << endl;
}

int main(void)
{
	solve();
	return 0;
}


Compiler output:
a.cc:12:10: fatal error: UnionFind.h: No such file or directory
   12 | #include "UnionFind.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,ab;cin>>a>>b;
  if(a>12)cout<<b<<endl;
  else if(b<6)cout<<0<<endl;
  else cout<<b/2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: 'b' was not declared in this scope; did you mean 'ab'?
    4 |   int a,ab;cin>>a>>b;
      |                    ^
      |                    ab
Language: C++

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

using ll = long long;
using ull = unsigned long long;
using ld = long double;
#define FOR(NAME, START, NUM) for (ll NAME = START; NAME < (NUM); NAME++)
#define REP(NAME, NUM) for (ll NAME = 0; NAME < (NUM); NAME++)
#define BREP(NAME, NUM) for (ll NAME = (NUM)-1; NAME >= 0; NAME--)
#define ALL(NAME) (NAME).begin(), (NAME).end()
const ll INF =1000000000000000;

int main(){
  int a,b;
  cin >> a >> b;
  if(a>=13)cout<< b << endl;
  else if(a<=5)cout<<0<<endl;
  else cout<<b/2<<ebdl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: 'ebdl' was not declared in this scope
   18 |   else cout<<b/2<<ebdl;
      |                   ^~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define endl '\n'
using namespace std;
int dy[4] = { 1, 0, -1, 0 }, dx[4] = { 0, 1, 0, -1 };
typedef pair<ll, ll> P;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b;
    cin >> a >> b;
    if (a >= 13) {
        cout << b << endl;
    } else if (6 <= a && a <= 12) {
        cout << b / 2 << endl;
    } else {
        cout << 0 << endl;
    }
    return 0;
}#include <bits/stdc++.h>
#define ll long long
#define endl '\n'
using namespace std;
int dy[4] = { 1, 0, -1, 0 }, dx[4] = { 0, 1, 0, -1 };
typedef pair<ll, ll> P;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b;
    cin >> a >> b;
    if (a >= 13) {
        cout << b << endl;
    } else if (6 <= a && a <= 12) {
        cout << b / 2 << endl;
    } else {
        cout << 0 << endl;
    }
    return 0;
}

Compiler output:
a.cc:22:2: error: stray '#' in program
   22 | }#include <bits/stdc++.h>
      |  ^
a.cc:22:3: error: 'include' does not name a type
   22 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:26:5: error: redefinition of 'int dy [4]'
   26 | int dy[4] = { 1, 0, -1, 0 }, dx[4] = { 0, 1, 0, -1 };
      |     ^~
a.cc:5:5: note: 'int dy [4]' previously defined here
    5 | int dy[4] = { 1, 0, -1, 0 }, dx[4] = { 0, 1, 0, -1 };
      |     ^~
a.cc:26:30: error: redefinition of 'int dx [4]'
   26 | int dy[4] = { 1, 0, -1, 0 }, dx[4] = { 0, 1, 0, -1 };
      |                              ^~
a.cc:5:30: note: 'int dx [4]' previously defined here
    5 | int dy[4] = { 1, 0, -1, 0 }, dx[4] = { 0, 1, 0, -1 };
      |                              ^~
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main()
      |     ^~~~
a.cc:8:5: note: 'int main()' previously defined here
    8 | int main()
      |     ^~~~
Language: C++

def main():
    from sys import stdin, stdout

    def read():
        return stdin.readline().rstrip('\n')

    def read_array(sep=None, maxsplit=-1):
        return read().split(sep, maxsplit)

    def read_int():
        return int(read())

    def read_int_array(sep=None, maxsplit=-1):
        return [int(a) for a in read_array(sep, maxsplit)]

    def write(*args, **kwargs):
        sep = kwargs.get('sep', ' ')
        end = kwargs.get('end', '\n')
        stdout.write(sep.join(str(a) for a in args) + end)

    def write_array(array, **kwargs):
        sep = kwargs.get('sep', ' ')
        end = kwargs.get('end', '\n')
        stdout.write(sep.join(str(a) for a in array) + end)

    a, b = read_int_array()
    if a >= 13:
        write(b)
    elif a >= 6:
        write(b // 2)
    else:
        write(0)

main()


Compiler output:
a.cc:17:26: warning: multi-character character constant [-Wmultichar]
   17 |         sep = kwargs.get('sep', ' ')
      |                          ^~~~~
a.cc:18:26: warning: multi-character character constant [-Wmultichar]
   18 |         end = kwargs.get('end', '\n')
      |                          ^~~~~
a.cc:22:26: warning: multi-character character constant [-Wmultichar]
   22 |         sep = kwargs.get('sep', ' ')
      |                          ^~~~~
a.cc:23:26: warning: multi-character character constant [-Wmultichar]
   23 |         end = kwargs.get('end', '\n')
      |                          ^~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

/*
  -------------
  Prateek Celly
  DA-IICT
  -------------
*/
#include<bits/stdc++.h>
using namespace std;


typedef unsigned long long ull;
typedef long double ld;

#define PB push_back
#define ff first
#define ss second
#define MOD 1000000007

int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ll a,b;
  cin>>a>>b;
  if(a<=5) cout<<0;
  else if(a<=13) cout<<b/2;
  else cout<<b;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'll' was not declared in this scope; did you mean 'ull'?
   23 |   ll a,b;
      |   ^~
      |   ull
a.cc:24:8: error: 'a' was not declared in this scope
   24 |   cin>>a>>b;
      |        ^
a.cc:24:11: error: 'b' was not declared in this scope
   24 |   cin>>a>>b;
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i,a,b) for (int i = a; i <b; i++)
typedef long long ll;
#define int ll
typedef vector<int> vi;
typedef vector<long long> vl;
typedef pair<int,int> pi;
#define trace(x) cout<<#x<<"="<<x<<"\n";
#define llp 1000000007
#define mod 1000000007

template < typename F, typename S >
ostream& operator << ( ostream& os, const pair< F, S > & p ) {
    return os << "(" << p.first << ", " << p.second << ")";
}

template < typename T >
ostream &operator << ( ostream & os, const vector< T > &v ) {
    os << "{";
    typename vector< T > :: const_iterator it;
    for( it = v.begin(); it != v.end(); it++ ) {
        if( it != v.begin() ) os << ", ";
        os << *it;
    }
    return os << "}";
}

template < typename T >
ostream &operator << ( ostream & os, const set< T > &v ) {
    os << "[";
    typename set< T > :: const_iterator it;
    for ( it = v.begin(); it != v.end(); it++ ) {
        if( it != v.begin() ) os << ", ";
        os << *it;
    }
    return os << "]";
}

template < typename F, typename S >
ostream &operator << ( ostream & os, const map< F, S > &v ) {
    os << "[";
    typename map< F , S >::const_iterator it;
    for( it = v.begin(); it != v.end(); it++ ) {
        if( it != v.begin() ) os << ", ";
        os << it -> first << " = " << it -> second ;
    }
    return os << "]";
}

#define deb(x) cerr << #x << " = " << x << endl;


int32_t main(){
	ios::sync_with_stdio(false);

    int a;
    int b;
    cin>>a>>b;
    itn ans=0;
    if(a>=13){
        ans=b;
    }
    else if(a>=6){
        ans=b/2;
    }
    cout<<ans<<"\n";


	return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:64:5: error: 'itn' was not declared in this scope; did you mean 'int'?
   64 |     itn ans=0;
      |     ^~~
      |     int
a.cc:66:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   66 |         ans=b;
      |         ^~~
      |         abs
a.cc:69:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   69 |         ans=b/2;
      |         ^~~
      |         abs
a.cc:71:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   71 |     cout<<ans<<"\n";
      |           ^~~
      |           abs
Language: C++

// Contests.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include "bits/stdc++.h"
using namespace std;
#define ll long long
#define fw(p) for(int w=0;w<(p);w++)
#define fx(p) for(int x=0;x<(p);x++)
#define fy(p) for(int y=0;y<(p);y++)
#define fz(p) for(int z=0;z<(p);z++)
#define fyg(p,g) for(int y=(g);y<(p);y++)
#define fzg(p,g) for(int z=(g);z<(p);z++)
#define ce(d) cout<<d<<endl;
#define vecp(p) int aa;cin>>aa;(p).push_back(aa);
#define vecpl(p) long long aa;cin>>aa;(p).push_back(aa);
#define vecps(p) string aa;cin>>aa;(p).push_back(aa);
#define vecp2(p) cin>>aa;(p).push_back(aa);
#define vecpl2(p) long long a	b;cin>>ab;(p).push_back(ab);
#define vecps2(p) string ab;cin>>ab;(p).push_back(ab);
#define set0(k,n) for(int nn=0;nn<(n);nn++){ (k).push_back(0); }
#define sorts(c) sort((c).begin(),(c).end());
#define reverses(c) reverse((c).begin(),(c).end());
#define vec(b) vector<int> (b);
#define vecl(b) vector<long long> (b);
#define vecs(b) vector<string> (b);
#define vecsize(b,size) vector<int> (b)((size));
#define pb(b,a) (b).push_back((a));
#define doublece(a,b) cout<<(a)<<' '<<(b)<<endl;
#define pairs(s) vector<pair<int,int>> (s);
#define pairsl(s) vector<pair<ll,ll>> (s);
#define pairss(s) vector<pair<string,string>> (s);
#define pairsp(s) int aa,bb;cin>>aa>>bb;(s).push_back(make_pair(aa,bb));
#define pairspl(s) int aa,bb;cin>>aa>>bb;(s).push_back(make_pair(aa,bb));
#define pairsps(s) int aa,bb;cin>>aa>>bb;(s).push_back(make_pair(aa,bb));
#define pairsREV(s) (s).push_back(make_pair(bb,aa));
#define pairslREV(s) (s).push_back(make_pair(bb,aa));
#define pairssREV(s) (s).push_back(make_pair(bb,aa));
#define MOD 1000000007

int main()
{
  
	int A, B;
	cin >> A >> B;

	if (A >= 13) {
		ce(B)

	}
	else if (A > 5) {
		ce(B/2)
	}
	else {
		ce(0)
	}

    return 0;
}



Compiler output:
a.cc:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

n, k = map(int, input().split())
if n >= 13:
    print(k)
elif n < 13 and n >= 6:
    print(k/2)
else:
    print(0)

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

A, B = map(int,input().split(" "))

if A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(B//2)
else:
    print(0)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | A, B = map(int,input().split(" "))
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'A' [-Wimplicit-int]
main.c:1:4: error: type defaults to 'int' in declaration of 'B' [-Wimplicit-int]
    1 | A, B = map(int,input().split(" "))
      |    ^
main.c:1:8: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | A, B = map(int,input().split(" "))
      |        ^~~
main.c:1:12: error: expected expression before 'int'
    1 | A, B = map(int,input().split(" "))
      |            ^~~
main.c:3:1: error: expected ',' or ';' before 'if'
    3 | if A >= 13:
      | ^~
Language: C++

//↓template↓

#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n)  n.begin(),n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30];
long long fac[200005], finv[200005], inv[200005];
vector<long long>dij;
struct edge { long long to, cost; };
vector<vector<edge> >G;

long long mod_pow(long long a, long long b) {
	long long res = 1, mul = a;
	for (int i = 0; i < 31; ++i) {
		if (b >> i & 1) {
			res *= mul;
			res %= MOD;
		}
		mul = (mul * mul) % MOD;
	}

	return res;
}

void addedge(int from, int to, int cost) {
	G[from].push_back({ to,cost });
	G[to].push_back({ from,cost });
}

//↑template↑





int main() {
	int n, m;
	cin >> n >> m;
	if (n <= 5) { cout << 0 << endl; }
	else if (6 <= n && n <= 12) { cout << b / 2 << endl; }
	else { cout << b << endl; }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:47: error: 'b' was not declared in this scope
   46 |         else if (6 <= n && n <= 12) { cout << b / 2 << endl; }
      |                                               ^
a.cc:47:24: error: 'b' was not declared in this scope
   47 |         else { cout << b << endl; }
      |                        ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n,m;cin>>n>>m;
  if(n < 6)cout << 0 << endl;
  else (n < 13)cout << m/2 << endl;
  else cout << m << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'cout'
    6 |   else (n < 13)cout << m/2 << endl;
      |                ^~~~
      |                ;
a.cc:7:3: error: 'else' without a previous 'if'
    7 |   else cout << m << endl;
      |   ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main (void)
{
  int n,d,a[11];
  cin>>r>>d>>a[0];
  for(int i=1;i<=n;i++)
  {
    a[i]=a[i-1]*r-d;
    cout<<a[i]<<endl;
    
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'r' was not declared in this scope
    7 |   cin>>r>>d>>a[0];
      |        ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main (void)
{
  int n,d,a[11];
  cin>>r>>d>>a[0];
  for(int i=1;i<=n;i++)
  {
    a[i]a[i-1]*r-d;
    cout<<a[i]<<endl;
    
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'r' was not declared in this scope
    7 |   cin>>r>>d>>a[0];
      |        ^
a.cc:10:9: error: expected ';' before 'a'
   10 |     a[i]a[i-1]*r-d;
      |         ^
      |         ;
Language: C++

#include<iostream>
using namespace std;

int main(){
  int r, d, x;
  cin >> r >> d >> x;
  for(int i = 0;i < 10;i++){
    if(i == 0){
    x[i] = x * r - d;
    }
    else{
      x[i] = x[0] * r - d;
    }
    cout << x[i] <<endl;
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: invalid types 'int[int]' for array subscript
    9 |     x[i] = x * r - d;
      |      ^
a.cc:12:8: error: invalid types 'int[int]' for array subscript
   12 |       x[i] = x[0] * r - d;
      |        ^
a.cc:12:15: error: invalid types 'int[int]' for array subscript
   12 |       x[i] = x[0] * r - d;
      |               ^
a.cc:14:14: error: invalid types 'int[int]' for array subscript
   14 |     cout << x[i] <<endl;
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main() {
  ll r,d,x_2000;
  cin>>r>>d>>x_2000;
  for(ll i=0;i<10;i++){
    x_2000=r*x_2000-D;
    cout<<x_2000<<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'D' was not declared in this scope
    8 |     x_2000=r*x_2000-D;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C;
  cin>>A>>B>>C;
  vector<int> N;
  int G=A*C-B;
  N.push_back(G);
  for (int i=0; i<=9; i++){
    int X=N[i]*A-B;
    N.push_back(X);
  }
  for (int x:C){
    cout<<x<<endl;
  }
}

    


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'begin' was not declared in this scope
   13 |   for (int x:C){
      |              ^
a.cc:13:14: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:13:14: error: 'end' was not declared in this scope
   13 |   for (int x:C){
      |              ^
a.cc:13:14: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C;
  cin>>A>>B>>C;
  vector<int> N;
  int G=A*C-B;
  C.push_back(G);
  for (int i=0; i<=9; i++){
    int X=N[i]*A-B;
    C.push_back(X);
  }
  for (int x:C){
    cout<<x<<endl;
  }
}

    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: request for member 'push_back' in 'C', which is of non-class type 'int'
    8 |   C.push_back(G);
      |     ^~~~~~~~~
a.cc:11:7: error: request for member 'push_back' in 'C', which is of non-class type 'int'
   11 |     C.push_back(X);
      |       ^~~~~~~~~
a.cc:13:14: error: 'begin' was not declared in this scope
   13 |   for (int x:C){
      |              ^
a.cc:13:14: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:13:14: error: 'end' was not declared in this scope
   13 |   for (int x:C){
      |              ^
a.cc:13:14: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C;
  cin>>A>>B>>C;
  vector<int> N;
  int G=A*C-B;
  G.push_back(G);
  for (int i=0; i<=9; i++){
    int X=N[i]*A-B;
    C.push_back(X);
  }
  for (int x:C){
    cout<<x<<endl;
  }
}

    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: request for member 'push_back' in 'G', which is of non-class type 'int'
    8 |   G.push_back(G);
      |     ^~~~~~~~~
a.cc:11:7: error: request for member 'push_back' in 'C', which is of non-class type 'int'
   11 |     C.push_back(X);
      |       ^~~~~~~~~
a.cc:13:14: error: 'begin' was not declared in this scope
   13 |   for (int x:C){
      |              ^
a.cc:13:14: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:13:14: error: 'end' was not declared in this scope
   13 |   for (int x:C){
      |              ^
a.cc:13:14: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C;
  cin>>A>>B>>C;
  vi N;
  int G=A*C-B;
  G.push_back(G);
  for (int i=0; i<=9; i++){
    int X=N[i]*A-B;
    C.push_back(X);
  }
  for (int x:C){
    cout<<x<<endl;
  }
}

    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vi' was not declared in this scope
    6 |   vi N;
      |   ^~
a.cc:8:5: error: request for member 'push_back' in 'G', which is of non-class type 'int'
    8 |   G.push_back(G);
      |     ^~~~~~~~~
a.cc:10:11: error: 'N' was not declared in this scope
   10 |     int X=N[i]*A-B;
      |           ^
a.cc:11:7: error: request for member 'push_back' in 'C', which is of non-class type 'int'
   11 |     C.push_back(X);
      |       ^~~~~~~~~
a.cc:13:14: error: 'begin' was not declared in this scope
   13 |   for (int x:C){
      |              ^
a.cc:13:14: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:13:14: error: 'end' was not declared in this scope
   13 |   for (int x:C){
      |              ^
a.cc:13:14: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int r,d,x,;
  cin>>r>>d>>x;
  for(int i=0;i<10;i++){
    cout<<r*x-d<<endl;
    x=r*x-d;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
    4 |   int r,d,x,;
      |             ^
Language: C++

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

int main(){
  int r,d,x;cin>>r>>d>>x;
  for(int i=0;i<10;i++){
    cout<<rx-d<<endl;
    x=rx-d;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'rx' was not declared in this scope; did you mean 'x'?
    7 |     cout<<rx-d<<endl;
      |           ^~
      |           x
Language: C++

include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << setprecision(20) << fixed;

  long long r, D, x;
  cin >> r >> D >> x;
  for(int i = 0; i < 10; i++){
    x = r * x - D;
    cout << x <<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:4:3: error: 'ios' has not been declared
    4 |   ios::sync_with_stdio(false);
      |   ^~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin.tie(0);
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << setprecision(20) << fixed;
      |   ^~~~
a.cc:6:11: error: 'setprecision' was not declared in this scope
    6 |   cout << setprecision(20) << fixed;
      |           ^~~~~~~~~~~~
a.cc:6:31: error: 'fixed' was not declared in this scope
    6 |   cout << setprecision(20) << fixed;
      |                               ^~~~~
a.cc:12:17: error: 'endl' was not declared in this scope
   12 |     cout << x <<endl;
      |                 ^~~~
Language: C++

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

int main() {
  int r;
  int D;
  int X;
  cin >> r;
  cin >> D;
  cin >> x;
  for(int i=0;i<10;i++){
    X=r*X-D;
    cout << X;
  }
	return 0;
}


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

#include<stdio.h>
int main(){
  int r,x,d;
  scanf("%d%d%d",&r,&d,&x);
  int a[11];
  a[0]=x;
  for(int i=0;i<10;i+=){
    a[i+1]=r*a[i]-d;
    printf("%d\n",a[i+1]);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected expression before ')' token
    7 |   for(int i=0;i<10;i+=){
      |                       ^
Language: C

#include<stdio.h>
int main(){
  int r,x,d;
  scanf("%d%d%d",&r,&d,&x);
  int a[11];
  a[0]=x;
  for(int i=0;i<10;i+=){
    a[i+1]=r*a[i]-d;
    printf("%d\n",a[i+1]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected expression before ')' token
    7 |   for(int i=0;i<10;i+=){
      |                       ^
Language: C

#include <stdio.h>
int main()
{
    int r,x,,i,d,sum=0;
    scanf("%d%d%d",&r,&d,&x);

    for(i=0;i<10;i++)
    {
        {
        sum=(r*x-d);
        printf("%d\n",sum);
        x=sum;
        }
    }
}



Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected identifier or '(' before ',' token
    4 |     int r,x,,i,d,sum=0;
      |             ^
main.c:5:24: error: 'd' undeclared (first use in this function)
    5 |     scanf("%d%d%d",&r,&d,&x);
      |                        ^
main.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 'i' undeclared (first use in this function)
    7 |     for(i=0;i<10;i++)
      |         ^
main.c:10:9: error: 'sum' undeclared (first use in this function)
   10 |         sum=(r*x-d);
      |         ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int r,D.x[11];
    cin >> r >> D >> x[0];
    for (int i = 1;i <= 10; i++)
    {
        x[i] = r*x[i-1] - D;
        cout << x[i] << endl;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: expected initializer before '.' token
    4 |     int r,D.x[11];
      |            ^
a.cc:5:17: error: 'D' was not declared in this scope
    5 |     cin >> r >> D >> x[0];
      |                 ^
a.cc:5:22: error: 'x' was not declared in this scope
    5 |     cin >> r >> D >> x[0];
      |                      ^
Language: C++

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

int main() {
  int r, D;
  vector<int> x(2011);
  cin >> r >> D >> x.at(2000);
  for (i=2000; i<2010; i++) {
    x.at(i+1)=r*x.at(i)-D;
  }
  for (j=2001; j<2011; j++) {
    cout << x.at(j) << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'i' was not declared in this scope
   11 |   for (i=2000; i<2010; i++) {
      |        ^
a.cc:14:8: error: 'j' was not declared in this scope
   14 |   for (j=2001; j<2011; j++) {
      |        ^
Language: C

#include <stdio.h>

int main(void){
  int r d x;

  scanf("%d %d %d", &r, &d, &x);
  for(int i = 0; i < 10; i++){
    x = r*x - d;
  }
  printf("%d", x);
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'd'
    4 |   int r d x;
      |         ^
main.c:4:9: error: unknown type name 'd'
main.c:6:22: error: 'r' undeclared (first use in this function)
    6 |   scanf("%d %d %d", &r, &d, &x);
      |                      ^
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:26: error: 'd' undeclared (first use in this function)
    6 |   scanf("%d %d %d", &r, &d, &x);
      |                          ^
Language: C++

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

int main(){
  int D,r,ans;
  cin>>D>>r>>ans;
  for(int i=0;i<10;i++){
    ans+=r*ans-D;
    cout<<ans<<endl;
}

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

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

int main(){
  int D,r,ans;
  cin>>D>>r>>x;
  for(int i=0;i<10;i++){
    if(i!=0)cout<<" ";
    ans+=r*ans-D;
    cout<<ans;
  }
  cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'x' was not declared in this scope
    6 |   cin>>D>>r>>x;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,x;
  cin>>a>>b>>x;
  for(int i=0;i<10;i++){
    x=a*x-b;
    cout<<x\n<<endl;
  }
}

Compiler output:
a.cc:8:12: error: stray '\' in program
    8 |     cout<<x\n<<endl;
      |            ^
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'n'
    8 |     cout<<x\n<<endl;
      |            ^~
      |            ;
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,r,d,x;
  cin>>r>>d>>x;
  for(int i=0;i>8;i++){
    a=r*x-d
    cout<<a<<endl;
    d=a;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'cout'
    7 |     a=r*x-d
      |            ^
      |            ;
    8 |     cout<<a<<endl;
      |     ~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		//入力表示
		int r= sc.nextInt();
		int K = sc.nextInt();
		int x = sc.nextInt();
		
		for(int i=0;i<10;i++){
			x=x*r-K;
			System.out.println(x);
		}
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int main(){
    ll r,d,x; cin >> r>>d>>x;
    rep(i,10){
        x = r*x-d;
        cout << x << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'll' was not declared in this scope
    6 |     ll r,d,x; cin >> r>>d>>x;
      |     ^~
a.cc:6:22: error: 'r' was not declared in this scope
    6 |     ll r,d,x; cin >> r>>d>>x;
      |                      ^
a.cc:6:25: error: 'd' was not declared in this scope
    6 |     ll r,d,x; cin >> r>>d>>x;
      |                         ^
a.cc:6:28: error: 'x' was not declared in this scope
    6 |     ll r,d,x; cin >> r>>d>>x;
      |                            ^
Language: C++

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

int main(){
    int r;
    int d;
    int x;
    cin >> r >> d >> x ;
    int c = 0;

    for(int i=0;i<10;i++){
        c = r*x - d ;
        cout << c << endl;
        x = c;
    }
    
    


    }
}

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

#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <cstring>
#include <string>
#include <vector>
#include <random>
#include <bitset>
#include <queue>
#include <cmath>
#include <unordered_map>
#include <set>
#include <map>
#define INCANT cin.tie(0), cout.tie(0), ios::sync_with_stdio(0), cout << fixed << setprecision(20);
#define rep(i,n) for (int i=0; i<n;++i)
#define ALL(a)  (a).begin(),(a).end()
#define PI 3.14159265358979
typedef long long ll;
using namespace std;
const ll MOD = 1e9+7LL;
const int INF = 2e9;
int r,D,x;

int main() {
  INCANT;
  cin >> r >> D >> x;
  int tmp=x;
  rep(i, 10) {
    tmp*=r;
    tmp-=D;
    cout << tmp << endl;
  }
  return 0;
}

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

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

int r,d,x;
cin>>r>>d>>x;
for(int i=1;i<=10;i++){
 x=r*x-d;
cout<<x<<endl;
}



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

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

int main(){
    int R,D,X;
    cin >> R >> D >> X;
    for (int i = 0; i < 10; i++;) {
        R = R-D;
        cout << R << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ')' before ';' token
    7 |     for (int i = 0; i < 10; i++;) {
      |         ~                      ^
      |                                )
a.cc:7:33: error: expected primary-expression before ')' token
    7 |     for (int i = 0; i < 10; i++;) {
      |                                 ^
Language: C

 #include<stdio.h>
 int main(void)
 {
     int r,D,x[11],i;

     scanf("%d%d%d",&r,&D,&x[0]);

     for(i=1;i<=10;i++){
       x[i]=(r*x[i-1])-D;
         printf("%d\n",x[i]);
     }

     return 0;
 }
i

Compiler output:
main.c:15:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   15 | i
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int r,d,x1,i=10;
  cin>>r>>d>>x;
  while(i--){
    x1=r*x1-d;
    cout<<x1;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'x' was not declared in this scope
    5 |   cin>>r>>d>>x;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int r,d,x1;
  cin>>r>>d>>x;
  while(d--){
    x1=r*x1-d;
    cout<<x1;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'x' was not declared in this scope; did you mean 'x1'?
    5 |   cin>>r>>d>>x;
      |              ^
      |              x1
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int r,d,x1;
  cin>>r>>d>>x;
  while(d--){
    x1=r*x1-d;
    cout<<x;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'x' was not declared in this scope; did you mean 'x1'?
    5 |   cin>>r>>d>>x;
      |              ^
      |              x1
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int r,d,x1;
  cin>>r>>d>>x;
  while(d--){
    x=r*x-d;
    cout<<x;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'x' was not declared in this scope; did you mean 'x1'?
    5 |   cin>>r>>d>>x;
      |              ^
      |              x1
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int r,d,x1;
  cin>>r>>d>>x;
  while(n--){
    x=r*x-d;
    cout<<x;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'x' was not declared in this scope; did you mean 'x1'?
    5 |   cin>>r>>d>>x;
      |              ^
      |              x1
a.cc:6:9: error: 'n' was not declared in this scope
    6 |   while(n--){
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define ALL(n) begin(n),end(n)
#define IN(a, x, b) (a<=x && x<b)
#define INIT std::ios::sync_with_stdio(false);std::cin.tie(0);
template<class T> inline T CHMAX(T & a, const T b) { return a = (a < b) ? b : a; }
template<class T> inline T CHMIN(T & a, const T b) { return a = (a > b) ? b : a; }

const long double EPS = 1e-10;
const long long INF = 1e18;
const long double PI = acos(-1.0L);

int main()
{
    INIT;
    char in[120];
    int n;
    scanf("%d", &n);
    pair<pair<string, int>, int> p[110];
    REP(i,n){
        int t; scanf("%s%d",in,&t);
        string tmp=in;
        p[i] = make_pair(make_pair(in, -t),i);
    }
    sort(p, p+n);
    REP(i,n) printf("%d\n", p[i].second+1);
    return 0;

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

r, D, x2000 = map(int, input().split())
ans = [x2000]

for i in range(10):
    ans.append(ans[i] * r - D)
    print(ans[i + 1])


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

#include <stdio.h>
int main (void)
{
   int r,d,x,i;
   scanf("%d%d%d",&r,&d,&x);
   for(i=0;i<10;i++){
           x =x*(r-d);
           pirntf("%d\n",x);
   }
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:12: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |            pirntf("%d\n",x);
      |            ^~~~~~
      |            printf
Language: C

#include <stdio.h>
int main (void)
{
   int r,d,x,i;
   scanf("%d%d%d",&r,&d,&x);
   for(i=0;i<10;i++){
           x =x*r-d;
           pirntf("%d\n",x);
   }
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:12: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |            pirntf("%d\n",x);
      |            ^~~~~~
      |            printf
Language: C

#include <stdio.h>
int main (void)
{
   int r,K,x,i;
   scanf("%d%d%d",&r,&K,&x);
   for(i=0;i<10;i++){
           x =x*r-K;
           pirntf("%d\n",x);
   }
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:12: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |            pirntf("%d\n",x);
      |            ^~~~~~
      |            printf
Language: C++

#include<bits/stdc++.h>
using namespace stdl;
using lomg long ll;

int main(){
  ll n, l;
  ll R[n], L[n];
  for(int i = 0; i < N; i++) cin >> R[i] >> L[i];
  
  ll MIN = 0,  MAX = 0;
  for(int i = 0; i < N; i++){
    MIN = max{MIN, R[i]);
    MAX = min{MAX, L[i]);
  }
  cout << MAX - MIN + 1 << endl;
}
     

Compiler output:
a.cc:2:17: error: 'stdl' is not a namespace-name
    2 | using namespace stdl;
      |                 ^~~~
a.cc:3:7: error: expected nested-name-specifier before 'lomg'
    3 | using lomg long ll;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll n, l;
      |   ^~
a.cc:7:5: error: expected ';' before 'R'
    7 |   ll R[n], L[n];
      |     ^~
      |     ;
a.cc:8:22: error: 'N' was not declared in this scope
    8 |   for(int i = 0; i < N; i++) cin >> R[i] >> L[i];
      |                      ^
a.cc:8:30: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   for(int i = 0; i < N; i++) cin >> R[i] >> L[i];
      |                              ^~~
      |                              std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:37: error: 'R' was not declared in this scope
    8 |   for(int i = 0; i < N; i++) cin >> R[i] >> L[i];
      |                                     ^
a.cc:8:45: error: 'L' was not declared in this scope
    8 |   for(int i = 0; i < N; i++) cin >> R[i] >> L[i];
      |                                             ^
a.cc:10:5: error: expected ';' before 'MIN'
   10 |   ll MIN = 0,  MAX = 0;
      |     ^~~~
      |     ;
a.cc:11:22: error: 'N' was not declared in this scope
   11 |   for(int i = 0; i < N; i++){
      |                      ^
a.cc:12:5: error: 'MIN' was not declared in this scope
   12 |     MIN = max{MIN, R[i]);
      |     ^~~
a.cc:12:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
   12 |     MIN = max{MIN, R[i]);
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:11:29: note: to match this '{'
   11 |   for(int i = 0; i < N; i++){
      |                             ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int main(){
  int r, d , x;
  cin >> r >> d >> x;
  
  long long sum = 0;
  for(int i = 0; i < 10; i++){
    sum = sum*r - d;
    cout << sum << endl;
  }
}

  
  

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

#include<bits/stdc++.h>
using namespace std;
int main(){
int r,D,X;
  cin>>r>>D>>X;
  vector<int> A(10);
  A.at(0)=r*X-D;
  
  for(int i=0;i<10;i++){
 cin>>A.at(i)
    A.at(i+1)=r*A.at(i)-D;
   cout<<A.at(i)<<endl;
   
    
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'A'
   10 |  cin>>A.at(i)
      |              ^
      |              ;
   11 |     A.at(i+1)=r*A.at(i)-D;
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int r,D,X;
  cin>>r>>D>>X;
  vector<int> A(10);
  A.at(0)=r*X-D;
   A.at(i+1)=r*A.at(i)-D;
  for(int i=0;i<10;i++){
 cin>>A.at(i)
   cout<<A.at(i)<<endl;
   
    
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'i' was not declared in this scope
    8 |    A.at(i+1)=r*A.at(i)-D;
      |         ^
a.cc:10:14: error: expected ';' before 'cout'
   10 |  cin>>A.at(i)
      |              ^
      |              ;
   11 |    cout<<A.at(i)<<endl;
      |    ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int r,D,X;
  cin>>r>>D>>X;
  vector<int> A[10];
  A.at(0)=r*X-D;
  for(int i=0;i<10;i++){
  cout<<A.at(i)<<endl;
    A.at(i+1)=r*A.at(i)-D;
    
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: request for member 'at' in 'A', which is of non-class type 'std::vector<int> [10]'
    7 |   A.at(0)=r*X-D;
      |     ^~
a.cc:9:11: error: request for member 'at' in 'A', which is of non-class type 'std::vector<int> [10]'
    9 |   cout<<A.at(i)<<endl;
      |           ^~
a.cc:10:7: error: request for member 'at' in 'A', which is of non-class type 'std::vector<int> [10]'
   10 |     A.at(i+1)=r*A.at(i)-D;
      |       ^~
a.cc:10:19: error: request for member 'at' in 'A', which is of non-class type 'std::vector<int> [10]'
   10 |     A.at(i+1)=r*A.at(i)-D;
      |                   ^~
Language: C

#include<stdio.h>
int main()
{
long int a,b,c,j;
scanf("%ld %ld %ld",&a,&b,&c);
int d[11];
  d[0]=c;
  for(j=1;j<11;++j)
  {a[j]=d[j-1]*a-b;
  printf("%ld\n",d[j]);
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: subscripted value is neither array nor pointer nor vector
    9 |   {a[j]=d[j-1]*a-b;
      |     ^
Language: C

#include<stdio.h>
int main()
{
long int a,b,c,j;
scanf("%ld %ld %ld",&a,&b,&c);
int a[11];
  a[0]=c;
  for(j=1;j<11;++j)
  {a[j]=a[j-1]*a-b;
  printf("%ld\n",a[j]);
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: conflicting types for 'a'; have 'int[11]'
    6 | int a[11];
      |     ^
main.c:4:10: note: previous declaration of 'a' with type 'long int'
    4 | long int a,b,c,j;
      |          ^
Language: C++

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

int main(){
  int r,D,x;
  cin>>r>>D>>x;
  int a[12];
  a[0]=x;
  for(int i=1;i<10;i++){
    a[i]=r*a[i-1]-D;
  }
  for(int i=0,i<10;i++) cout<<a[i]<<endl;
}
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before '<' token
   12 |   for(int i=0,i<10;i++) cout<<a[i]<<endl;
      |                ^
      |                ;
a.cc:12:16: error: expected primary-expression before '<' token
Language: C++

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

int main(){
  int r,D,x;
  cin>>r>>D>>x;
  int a[12];
  a[0]=x;
  for(int i=1;i<10;i++){
    a[i]=r*a[i-1]-D;
  }
  for(int i=0,i<N;i++) cout<<a[i]<<endl;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before '<' token
   12 |   for(int i=0,i<N;i++) cout<<a[i]<<endl;
      |                ^
      |                ;
a.cc:12:16: error: expected primary-expression before '<' token
a.cc:12:17: error: 'N' was not declared in this scope
   12 |   for(int i=0,i<N;i++) cout<<a[i]<<endl;
      |                 ^
Language: Java

import java.util.*;
import java.io.*;

public class Competitive {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int r=sc.nextInt();
        int D=sc.nextInt();
        int x=sc.nextInt();
        int ans[]=new int[11];
        ans[0]=x;
        for (int i=0 ; i<10; i++)
        {
            ans[i+1]=r*ans[i]-D;
            System.out.println(ans[i+1]);
        }

    }
}

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

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

int main(){
    long long r,D,x;
    cin >> r >> D >> x;
    for (int i=0 ; i<10 ; i++){
        cout << x*r-D << endl;
        x=x*r-D
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before '}' token
    9 |         x=x*r-D
      |                ^
      |                ;
   10 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

int xi(int r, int d, int x) {
    int xi = r*x - d;
    return xi;
}

int main() {
    int r, d, x;
    cin >> r >> d >> x;
    for (int i=0; i<10; ++i) {
        x = xi(r, d, x)
        cout << x << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before 'cout'
   13 |         x = xi(r, d, x)
      |                        ^
      |                        ;
   14 |         cout << x << endl;
      |         ~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int r, D;
  int x;
  cin>>r>>D>>x;
  int i=0;
  while(i<10){
    x=r*x-D;
     cout<<x<<endl;
    i++;
  }
  
  

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

#include<iostream>
using namespace std;
int main(){
int r, D;
  int x;
  cin>>r>>D>>x;
  int i=0
  while(i<10){
    x=r*x-D;
     cout<<x<<endl;
    i++;
  }
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'while'
    8 |   while(i<10){
      |   ^~~~~
a.cc:12:4: error: expected '}' at end of input
   12 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <stdio.h

int main()
{
	int r, d, x, i=10;
	
	scanf("%d %d %d", &r, &d, &x);
	
	x=r*x-d;
	while(i>0){
		printf("%d\n", x);
		x=r*x-d;
		i--;
	}
	
return 0;
}

Compiler output:
main.c:1:18: error: missing terminating > character
    1 | #include <stdio.h
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
int main(){
  int r,d,x;
  cin>>r>>d>>x;
  int a[11];
  a[0]=x;
  rep(i,1,11)a[i]=r*a[i-1]-d;
  rep(i,1,ii)cout<<a[i]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'ii' was not declared in this scope; did you mean 'i'?
   12 |   rep(i,1,ii)cout<<a[i]<<endl;
      |           ^~
a.cc:4:35: note: in definition of macro 'rep'
    4 | #define rep(i,l,r)for(ll i=(l);i<(r);i++)
      |                                   ^
Language: C++

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

int main() {
  int r,d,x;
  cin>>r>>d>>x;
  for(int i=0;i<10;1++){
    x=x*r-d;
    cout<<x;
  }
  
 // cout << /* ここに式を書く */ << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: lvalue required as increment operand
    7 |   for(int i=0;i<10;1++){
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int r,D,x;
  cin >> r >> D >> x;
int i = 0; // カウンタ変数
while (i < 10) {
  x =r*x-D
  cout << x << endl;
  i ++;
}
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before 'cout'
    9 |   x =r*x-D
      |           ^
      |           ;
   10 |   cout << x << endl;
      |   ~~~~