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

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) push_back(a)
#define pop pop_back
#define V vector
#define P pair
#define V2(a,b,c) V<V<int>> a(b,V<int>(c))
#define V2a(a,b,c,d) V<V<int>> a(b,V<int>(c,d))
#define incin(a) int a; cin>>a
#define yuko(a) setprecision(a)
//#define min min<int>
//#define max max<int>
template<class T>
 void cou(vector<vector<T>> a){
  int b=a.size();
  int c=a[0].size();
  fo(i,b){
    fo(j,c){
      cout<<a[i][j];
      if(j==c-1)
        cout<<endl;
      else
        cout<<' ';
    }
  }
}
/*template<>
 void cou(vector<vector<char>> a){
  int b=a.size();
  int c=a[0].size();
  fo(i,b){
    fo(j,c){
      cout<<a[i][j];
      if(j==c-1)
        cout<<endl;
      else
        cout<<' ';
    }
  }
}*/
 int wari(int a,int b) {
   if(a%b==0)
     return a/b;
   else
     return a/b+1;
 }
 int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
 int souwa(int a){
  return a*(a+1)/2;
 }
 int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
 bool prime(int a){
   if(a<2)
     return false;
   else if(a==2)
     return true;
   else if(a%2==0)
     return false;
   double b=sqrt(a);
    for(int i=3;i<=b;i+=2){
      if(a%i==0){
        return false;
      }
    }
   return true;
 }
struct Union{
  vector<int> par;
  Union(int n){
	par= vector<int>(n, -1);
  }
  int find(int x){
    if(par[x]<0)
      return x;
    else
      return par[x]=find(par[x]);
  }
  bool same(int a,int b){
    return find(a)==find(b);
  }
  int Size(int a){
    return -par[find(a)];
  }
  void unite(int a,int b){
    a=find(a);
    b=find(b);
    if(a==b)
      return;
    if(Size(b)>Size(a))
      swap<int>(a,b);
    par[a]+=par[b];
    par[b]=a;
  }
};
int ketas(int a){
  string b=to_string(a);
  int c=0;
  fo(i,keta(a)){
    c+=b[i]-'0';
  }
  return c;
}
/*struct aa{
	vector<int> gt;
  aa(int n){
	gt= vector<int>(n, 1);
  }
	void c(V<int> d,int b){
	if(d[b]==0){
		gt[d[b]-1]++;
		gt[gt.sz-1]++;
	}
	else{
		gt[d[b]-1]++;
		c(d,d[d[b]]-1);
	}
}
void cok(int a){
	cout<<gt[a-1]<<endl;
	fo(i,a-1)
	cout<<gt[i]<<endl;
}
};
*/
signed main(){
	int a;
	cin>>a;
	int b=2,c=1,d;
	fo(i,a-1){
		d=b+c;
		b=c;
		c=d;
	}
	cout<d<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:184:15: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
  184 |         cout<d<<endl;
      |              ~^~~~~~
Language: C++

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

int main(){
  int n;
  cin >> n;
  vector<int> l(n);
  l[0]=2;
  l[1]=1;
  for(int i=0;i<n-2;i++){
    l[i+2]=l[i+1]+l[i];
  }
  cout << l[N-1] << endl;
}

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

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

ll lucas(int n){
  if(n == 0) return 2;
  if(n == 1) return 1;
  
  return lucas(n-2)+ lucas(n-1);
}

int main(){
  int N; cin >> N;
  cout << lucas(N) << ensl;
}

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

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

int main(void) {
  int n;
  cin >> n;
  if (n == 0) cout << 2 << endl;
  if (n == 1) cout << 1 << endl;
  else {
    n -= 1;
    ll ans = 1, f = 2, tmp;
    while (n > 0) {
      tmp = ans;
      ans += f;
      f = tmp;
    }
    cout << ans << endl;
  }
  
  return 0;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'll' was not declared in this scope
   11 |     ll ans = 1, f = 2, tmp;
      |     ^~
a.cc:13:7: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   13 |       tmp = ans;
      |       ^~~
      |       tm
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |       tmp = ans;
      |             ^~~
      |             abs
a.cc:14:14: error: 'f' was not declared in this scope
   14 |       ans += f;
      |              ^
a.cc:17:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

int main(void) {
  int n;
  cin >> n;
  if (n == 0) cout << 2 << endl;
  if (n == 1) cout << 1 << endl;
  else {
    n -= 2;
    ll ans = 1, f = 2, tmp;
    while (n > 0) {
      tmp = ans;
      ans += f;
      f = tmp;
      n--;
    }
    cout << ans << endl;
  }
  
  return 0;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'll' was not declared in this scope
   11 |     ll ans = 1, f = 2, tmp;
      |     ^~
a.cc:13:7: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   13 |       tmp = ans;
      |       ^~~
      |       tm
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |       tmp = ans;
      |             ^~~
      |             abs
a.cc:14:14: error: 'f' was not declared in this scope
   14 |       ans += f;
      |              ^
a.cc:18:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

int main(void) {
  int n;
  cin >> n;
  if (n == 0) cout << 2 << endl;
  if (n == 1) cout << 1 << endl;
  else {
    n -= 2;
    ll ans = 1, f = 2, tmp;
    while (n > 0) {
      tmp = ans;
      ans += f;
      f = tmp;
    }
    cout << ans << endl;
  }
  
  return 0;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'll' was not declared in this scope
   11 |     ll ans = 1, f = 2, tmp;
      |     ^~
a.cc:13:7: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   13 |       tmp = ans;
      |       ^~~
      |       tm
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |       tmp = ans;
      |             ^~~
      |             abs
a.cc:14:14: error: 'f' was not declared in this scope
   14 |       ans += f;
      |              ^
a.cc:17:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

int main(){
  int n;
  cin >> n;
  vector<ll> L(n);
  L[0]=2; L[1]=1;

  REP(i,2,n){
    L[i]=L[i-2]+L[i-1]
  }
  cout << L[n] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: expected ';' before '}' token
   14 |     L[i]=L[i-2]+L[i-1]
      |                       ^
      |                       ;
   15 |   }
      |   ~
Language: C++

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

int main () {
  int8_t N, i; cin >> N;
  if (N == 1) {
   cout << b;
   return 0;
 int64_t a = 2, b = 1;
  for (i=1;i<N;i++) {
    a += b;
    swap(a,b);
  }
  cout << b;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'b' was not declared in this scope
    7 |    cout << b;
      |            ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

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

int main () {
  int8_t N; cin >> N;
  vector<int64_t> L(N+1);
  for (int8_t i=0;i<N+1;i++) {
    L.at(0) = 2; L.at(1) = 1;
    L.at(i+2) = L.at(i) + L.at(i+1);
  }
  cout >> L.at(i+2);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'i' was not declared in this scope
   11 |   cout >> L.at(i+2);
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  if(n == 0) {
    cout << 2;
    return 0;
  }
  if(n == 1) {
    cout<<1;
    return 0;
  }
  a = 2;
  b = 1;
  for(int i = 0; i<n-2;i++){
    a += b;
    swap(a,b);
  }
  cout<<b;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'a' was not declared in this scope
   15 |   a = 2;
      |   ^
a.cc:16:3: error: 'b' was not declared in this scope
   16 |   b = 1;
      |   ^
Language: C++

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

ll luca[100];

ll getluca(int n){
  if(n == 0) return 2;
  if(n == 1) return 1;
  if(luca[n]!=0) return luca[n];
  return luca[k] = getluca(n-1) + getluca(n-2);
}

int main(){
  int n;
  cin >> n;
  
  cout << getluca(n) <<endl;
}

Compiler output:
a.cc: In function 'll getluca(int)':
a.cc:11:15: error: 'k' was not declared in this scope
   11 |   return luca[k] = getluca(n-1) + getluca(n-2);
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int (i) = 0; (i) < (int)(n); i++)
 
int main() {
 int n,ans,l0,step;
  ans=1;
  l0=2;
  cin>>n;
  if(int i>=2){
   rep(i,n){
    step=ans;
    ans=ans+l0;
     l0=step;
   }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected initializer before '>=' token
   11 |   if(int i>=2){
      |           ^~
a.cc:11:11: error: expected ')' before '>=' token
   11 |   if(int i>=2){
      |     ~     ^~
      |           )
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int (i) = 0; (i) < (int)(n); i++)
 
int main() {
 int n,ans,l0,step;
  ans=1;
  l0=2;
  cin>>n;
  if(i>=2){
   rep(i,n){
    step=ans;
    ans=ans+l0;
     l0=step;
   }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'i' was not declared in this scope
   11 |   if(i>=2){
      |      ^
Language: C++

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

ll luca(int n){
  if(n == 0) return 2;
  if(n == 1) return 1;
  return luca[n-1]+luca[n-2];
}

int main(){
  int n;
  cin >> n;
  
  cout << luca[n] <<endl;
}

Compiler output:
a.cc: In function 'll luca(int)':
a.cc:8:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    8 |   return luca[n-1]+luca[n-2];
      |                  ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:8:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    8 |   return luca[n-1]+luca[n-2];
      |                            ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:8:19: error: invalid operands of types 'll(int)' {aka 'long long int(int)'} and 'll(int)' {aka 'long long int(int)'} to binary 'operator+'
    8 |   return luca[n-1]+luca[n-2];
      |          ~~~~~~~~~^~~~~~~~~~
      |                  |         |
      |                  |         ll(int) {aka long long int(int)}
      |                  ll(int) {aka long long int(int)}
a.cc: In function 'int main()':
a.cc:15:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   15 |   cout << luca[n] <<endl;
      |                 ^
Language: C++

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

int64_t lucas(int x){
  if(x==0){
    return 2;
  }
  else if(x==1){
    return 1;
  }
  else{
    int64_t l;
    l=lucas(x-1)+lucas(x-2);
    return l;
    }
  }
}
int main(){
  int N;
  cin >> N;
  cout << lucas(N) << endl;
}

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

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

int64_t lucas(int x){
  if(x==0){
    return 2;
  }
  else if(x==1){
    return 1;
  }
  else{
    for(int i=0;i<x;i++){
      int64_t l=0;
      l += lucas(i);
      return l+1;
    }
  }
}
int64_t main(){
  int N;
  cin >> N;
  cout << lucas(N) << endl;
}

Compiler output:
a.cc:19:1: error: '::main' must return 'int'
   19 | int64_t main(){
      | ^~~~~~~
a.cc: In function 'int64_t lucas(int)':
a.cc:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define FT first
#define SC second

using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef pair<int, int> pint;
const int INF = 1e9;
const double EPS = 1e-9;



int main()
{
  int n ;
  cin >> n ;
  vector<ll> luc(n+1) ;
  luc.at(0) = 2 ;
  lic.at(1) = 1 ;
  REP(i,n-1){
    luc.at(i+2) = luc.at(i+1) + luc.at(i) ;
  }
  
  cout << luc.at(n) <<endl;

  return 0 ;
}


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

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

// ldというのもある
main(){
  vector<int64_t> vec(86);
  vec[0] = 2;
  vec[1] = 1;
  for(int i = 0; i < 84; i++){
    vec[i + 2] = vec[i] + vec[i + 1];
  }
  int N;
  cin >> N;
  if(N != 86){
    printf("%ld", vec[N]);
  }
  else{
    printf("%ld", vec[N - 2] + N[N - 1]);
  }
}

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:18:33: error: invalid types 'int[int]' for array subscript
   18 |     printf("%ld", vec[N - 2] + N[N - 1]);
      |                                 ^
Language: C++

#include <iostream>

using namespace std;

class B {
	int n;
	int64_t a{ 2 }, b{ 1 }, tmp;
public:
	void solve()
	{
		cin >> n;
		if (n == 1) cout << 1 << endl;;
		else 
		{
			for (int i{ 2 }; i <= n; i++)
			{
				tmp = a + b;
				a = b;
				b = tmp;
			}

			cout << tmp << endl;
		}
	}
};


int main()
{
	B solution;
	solution.solve();

	return 0;
}

Compiler output:
a.cc: In member function 'void B::solve()':
a.cc:13:17: error: 'else' without a previous 'if'
   13 |                 else
      |                 ^~~~
Language: C++

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

int main() {
int N;
 cin>>N;
  vector<int64_t> L(N);
L(0)=2;
L(1)=1;
  for(int i=1;i<N;i++){
  L(i+1)=L(i)+L(i-1);
  }
  cout<<L(N)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:2: error: no match for call to '(std::vector<long int>) (int)'
    8 | L(0)=2;
      | ~^~~
a.cc:9:2: error: no match for call to '(std::vector<long int>) (int)'
    9 | L(1)=1;
      | ~^~~
a.cc:11:4: error: no match for call to '(std::vector<long int>) (int)'
   11 |   L(i+1)=L(i)+L(i-1);
      |   ~^~~~~
a.cc:11:11: error: no match for call to '(std::vector<long int>) (int&)'
   11 |   L(i+1)=L(i)+L(i-1);
      |          ~^~~
a.cc:11:16: error: no match for call to '(std::vector<long int>) (int)'
   11 |   L(i+1)=L(i)+L(i-1);
      |               ~^~~~~
a.cc:13:10: error: no match for call to '(std::vector<long int>) (int&)'
   13 |   cout<<L(N)<<endl;
      |         ~^~~
Language: C++

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

int main() {
  int64_t L1 = 2;
  int64_t L2 = 1;
  int64_t L3;
  int N;
  cin >> N;
  
  if (N == 0) {
    cout << L1 << endl;
  }
  else if (N == 1) {
    cout << L2 << endl;
  }
  else {
    for (int i = 2; i <= N; i++) {
      L3 = L1 + L2;
      L1 = L2;
      L2 = L3;
    }
    count << L3 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int64_t' {aka 'long int'} to binary 'operator<<'
   23 |     count << L3 << endl;
      |     ~~~~~~^~~~~
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      long[] dp = new long[n+1];
      dp[0] = 2;
      dp[1] = 1;
      for(int i = n ; i > 1 ; i--){
      	dp[i] = dp[i-1] + dp[i-2];
      }
      System.out.println(dp[n]);
      
}


Compiler output:
Main.java:14: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      long n = (long) sc.nextInt();
      long x = lucas(n);
      System.out.println(x);
    }
  	public static long lucas(long n){
      int[] dp = new int[n];
      if(n == 0){
        return 2;
      }
      else if(n == 1){
        return 1;
      }
      else if(n >= 2){
        if(dp[n] == 0){
          dp[n] = lucas(n);
          return lucas(n-1)+lucas(n-2);
        }else{
          return dp[n];
        }
      }
    }
}


Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from long to int
      int[] dp = new int[n];
                         ^
Main.java:18: error: incompatible types: possible lossy conversion from long to int
        if(dp[n] == 0){
              ^
Main.java:19: error: incompatible types: possible lossy conversion from long to int
          dp[n] = lucas(n);
             ^
Main.java:19: error: incompatible types: possible lossy conversion from long to int
          dp[n] = lucas(n);
                       ^
Main.java:22: error: incompatible types: possible lossy conversion from long to int
          return dp[n];
                    ^
5 errors
Language: C++

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

int main()
{
    int n;
    cin >> n;
    long long L[87];
    L[0] = 2LL, L[1] = 1LL;
    for (int i = 2; i <= N; i++)
        L[i] = L[i - 2] + L[i - 1];
    cout << L[n] << endl;
}

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

#include <bits/stdc++.h>
using namespace std
  int main() {
  int N;
  cin >> N;
  vector<int64_t> luca(N);
  luca.at(0) = 2;
  luca.at(1) = 1;
  for(int i = 2; i < N + 1; i++){
    luca.at(i) = luca.at(i - 1) + luca.at(i - 2);
  }
  cout << luca.at(N) << endl;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main() {
      |   ~~~
Language: C++

#include <bits/stdc++.h>
using namespace std
  int main() {
  int N;
  cin >> N;
  vector<int64_t> luca(N);
  luca.at(0) = 2;
  luca.at(1) = 1;
  for(i = 2; i < N + 1; i++){
    luca.at(i) = luca.at(i - 1) + luca.at(i - 2);
  }
  cout << luca.at(N) << endl;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main() {
      |   ~~~               
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i = 2; i < N + 1; i++){
      |       ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  int a,b,c;
  a=2;
  b=1
  for(int i=0; i < N-1; i++){
    c=a+b;
    a=b;
    b=c;
  }
  cout << c <<endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected ';' before 'for'
    9 |   b=1
      |      ^
      |      ;
   10 |   for(int i=0; i < N-1; i++){
      |   ~~~ 
a.cc:10:16: error: 'i' was not declared in this scope
   10 |   for(int i=0; i < N-1; i++){
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int64_t> L(N);
  L.at(0)=2;
  L.at(1)=1;
  for(int i=0;i<N-2;i++){
    L.at(i+2)=L.at(i+1)+L.at(i)
  }
  cout<<L.at(N-1);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected ';' before '}' token
   10 |     L.at(i+2)=L.at(i+1)+L.at(i)
      |                                ^
      |                                ;
   11 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int64_t> L(N);
  int64_t L.at(0)=2;
  int64_t L.at(1)=1;
  for(int i=0;i<N-2;i++){
    L.at(i+2)=L.at(i+1)+L.at(i);
  }
  cout<<L.at(N-1);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected initializer before '.' token
    7 |   int64_t L.at(0)=2;
      |            ^
a.cc:8:12: error: expected initializer before '.' token
    8 |   int64_t L.at(1)=1;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int64_t> L(N);
  int64_t L.at(0)=2;
  int64_t L.at(1)=1;
  for(int i=0;i<N-2;i++){
    L.at(i+2)=L.at(i+1)+L.at(i)
  }
  cout<<L.at(N-1);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected initializer before '.' token
    7 |   int64_t L.at(0)=2;
      |            ^
a.cc:8:12: error: expected initializer before '.' token
    8 |   int64_t L.at(1)=1;
      |            ^
a.cc:10:32: error: expected ';' before '}' token
   10 |     L.at(i+2)=L.at(i+1)+L.at(i)
      |                                ^
      |                                ;
   11 |   }
      |   ~
Language: C++

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

int64_t lucas(int x){
  
  if(x == 0){
    return 2;
  }
  
  if(x == 1){
    return 1;
  }
    
  return lucas(x-1)+lucas(x-2);
}

int main() {
  
  int N;
  cin >> N;
  
  cout << lucas(N) << endl;
}
  
  
  
  
  
  




Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:4:1: error: 'int64_t' does not name a type
    4 | int64_t lucas(int x){
      | ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | include <bits/stdc++.h>
a.cc: In function 'int main()':
a.cc:20:3: error: 'cin' was not declared in this scope
   20 |   cin >> N;
      |   ^~~
a.cc:22:3: error: 'cout' was not declared in this scope
   22 |   cout << lucas(N) << endl;
      |   ^~~~
a.cc:22:11: error: 'lucas' was not declared in this scope
   22 |   cout << lucas(N) << endl;
      |           ^~~~~
a.cc:22:23: error: 'endl' was not declared in this scope
   22 |   cout << lucas(N) << endl;
      |                       ^~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  
  vector<long long> l(100);
  l.at(0) = 2;
  l.at(1) = 1;
  for(i = 2; i <= n; i++){
    l.at(i) = l.at(i - 1) + l.at(i - 2);
  }
  
  cout << l.at(n) << endl;
}

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

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

void Lucas(int64_t N){
  if(N == 0){
    return 2;
  }
  if(N == 1){
    return 1;
  }
  int64_t sum;
  sum = Lucas(N-1) + Lucas(N-2);
  return sum;
}

int main(){
  int64_t N;
  cin >> N;
  printf("%lld\n",Lucas(N));
}

Compiler output:
a.cc: In function 'void Lucas(int64_t)':
a.cc:6:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
    6 |     return 2;
      |            ^
a.cc:9:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
    9 |     return 1;
      |            ^
a.cc:12:20: error: invalid operands of types 'void' and 'void' to binary 'operator+'
   12 |   sum = Lucas(N-1) + Lucas(N-2);
      |         ~~~~~~~~~~ ^ ~~~~~~~~~~
      |              |            |
      |              void         void
a.cc:13:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   13 |   return sum;
      |          ^~~
a.cc: In function 'int main()':
a.cc:19:24: error: invalid use of void expression
   19 |   printf("%lld\n",Lucas(N));
      |                   ~~~~~^~~
Language: C++

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

void Lucas(int64_t &N){
  if(N == 0){
    return 2;
  }
  if(N == 1){
    return 1;
  }
  int64_t sum;
  sum = Lucas(N-1) + Lucas(N-2);
  return sum;
}

int main(){
  int64_t N;
  cin >> N;
  printf("%lld\n",Lucas(N));
}

Compiler output:
a.cc: In function 'void Lucas(int64_t&)':
a.cc:6:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
    6 |     return 2;
      |            ^
a.cc:9:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
    9 |     return 1;
      |            ^
a.cc:12:16: error: cannot bind non-const lvalue reference of type 'int64_t&' {aka 'long int&'} to an rvalue of type 'int64_t' {aka 'long int'}
   12 |   sum = Lucas(N-1) + Lucas(N-2);
      |               ~^~
a.cc:4:21: note:   initializing argument 1 of 'void Lucas(int64_t&)'
    4 | void Lucas(int64_t &N){
      |            ~~~~~~~~~^
a.cc:12:29: error: cannot bind non-const lvalue reference of type 'int64_t&' {aka 'long int&'} to an rvalue of type 'int64_t' {aka 'long int'}
   12 |   sum = Lucas(N-1) + Lucas(N-2);
      |                            ~^~
a.cc:4:21: note:   initializing argument 1 of 'void Lucas(int64_t&)'
    4 | void Lucas(int64_t &N){
      |            ~~~~~~~~~^
a.cc:13:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   13 |   return sum;
      |          ^~~
a.cc: In function 'int main()':
a.cc:19:24: error: invalid use of void expression
   19 |   printf("%lld\n",Lucas(N));
      |                   ~~~~~^~~
Language: C++

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

int main (){
	string S;
  	cin s >> S;
  	if ((S[0] == S[1] && S[1] == S[2]) || (S[1] == S[2] && S[3])){
    	cout << "Yes" <<endl;
    } 
  	else{
      cout << "No"<<endl;
    }
  return 0;
}

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

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

int main (void){
	string S;
  	cin s >> S;
  	if ((S[0] == S[1] && S[1] == S[2]) || (S[1] == S[2] && S[3])){
    	cout << "Yes" <<endl;
    } 
  	else{
      cout << "No"<<endl;
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 's'
    6 |         cin s >> S;
      |            ^~
      |            ;
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)

int main(){
  int n;
  cin>>n;
  vector<long long>a(x);
  a[0]=2; a[1]=1;
  for(int i=0;i<n-1;i++) a[i+2]=a[i+1]+a[i];
  cout<<a[n]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'x' was not declared in this scope
   15 |   vector<long long>a(x);
      |                      ^
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))
long long func(int x){
  vector<long long>a(x);
  a[0]=2; a[1]=1;
  for(int i=0;i<x-1;i++) 
  a[i+2]=a[i+1]+a[i];
  return a[x];
}
int main(){
  int n;
  cin>>n;
  long long ans=func(n);
  cout<<<<endl;
}

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

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

int main(){
  vector<long long> L(87);
  L.at(0)=2;
  L.at(1)=1;
  for(int i=2; i<87; i++){
    n.at(i)=L.at(i-1)+L.at(i-2);
  }
  
  int N;
  cin >> N;
  cout << L.at(N) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'n' was not declared in this scope
    9 |     n.at(i)=L.at(i-1)+L.at(i-2);
      |     ^
Language: C++

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

    vector<long long>l(n+1);
    l[0]=2;
    l[1]=1;

    for (int i=2;i<=n;i++) {
        l[i]=l[i-1]+l[i-2];
    }

    cout<<l[n]<<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 N,ans;
  cin>>N;
  vector<int64_t> vec(3);
  vec.at(0)=2;
  vec.at(1)=1;
  for(int i=0;i<N;i++){
    vec.at(2)=vec.at(0)+vec.at(1);
    ans=vec.at(2);
    vec.at(0)=vec.at(1);
    vec.at(1)=vec.at(2);
  }
  cout<<ans
}

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

#include <iostream>
#include <vecrtor>

using namespace std;

int main(){
  int N;
  vector<unsigned long long> L;
  cin >> N;
  
  L[0] = 2;
  L[1] = 0;
  for(int i = 2; i < N; i++){
    L[i] = L[i-1] + L[i-2];
  }
  cout << L[N-1];
}

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

#include<bits/stdc++.h>
#define rep(i,n) for(int (i) = 0;(i) < (n);(i)++)
#define SORT(c) sort((c).begin(),(c).end())
#define MOD 1000000007
//S.size()
//配列名.Length()

using namespace std;

typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;
typedef vector<bool> VB;
typedef unsigned long long ll;

ll ryuka(int n){
	if(n == 1)return 2;
	else if(n == 2)return 1;

	else{
		ll num = 0;
		ll num1 = 2;
		ll num2 = 1;
		for(int i = 3;i <= n;i++){
			num = num1 + num2;
			num1 = num2;
			num2 = num;
		}
		return num;

	}
}

int main(void){
	
		cout<<(ryuka(N + 1));

}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:30: error: 'N' was not declared in this scope
   36 |                 cout<<(ryuka(N + 1));
      |                              ^
Language: C++

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

int main() {
 	int N;
  	cin >> N;
  
  	int64_t a = 2;
  	int64_t b = 1;
  	int64_t c = b;
  
  	for(int i=1; i<N; i++) {
      		a = b;
     		b = c;
     		c = a + b;
    }
  }
  
  cout << c;
}


Compiler output:
a.cc:19:3: error: 'cout' does not name a type
   19 |   cout << c;
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

int main() {
 	int N;
  	cin >> N;
  
  	int a = 2;
  	int b = 1;
  	int c = b;
  
  	for(int i=0; i<N - 1; i++) {
      		a = b;
     		b = c;
     		c = a + b;
    }
  }
  
  cout << c;
}


Compiler output:
a.cc:19:3: error: 'cout' does not name a type
   19 |   cout << c;
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

int main() {
 	int N;
  	cin >> N;
  
  	int a = 2;
  	int b = 1;
  	int c = a + b;
  
  	else if(N == 1) {
     	c = b; 
    }
  
  else if(N >= 2) {
  		for(int i=0; i<N - 2; i++) {
    	  	a = b;
     		b = c;
     	 	c = a + b;
    	}
  }
  
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(N == 1) {
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    int N;
    cin >> N;
    int X = 2, Y = 1 , Z = 1;
    for(int i = 2, i <= N; i++) {
        Z = Y + X;
        X = Y;
        Y = Z;
    }
    cout << Z << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before '<=' token
    7 |     for(int i = 2, i <= N; i++) {
      |                     ^~~
      |                     ;
a.cc:7:22: error: expected primary-expression before '<=' token
    7 |     for(int i = 2, i <= N; i++) {
      |                      ^~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF 1000000000000000
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
template <class T> inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

void print(const std::vector<int> &v) {
    std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
    std::cout << std::endl;
}

int memo[90];
memo[0] = 2;
memo[1] = 1;
int rec(int n) {
    if(memo[n] != 0) {
        return memo[n];
    }
    int tmp = rec(n - 1) + rec(n - 2);
    if(memo[n] != 0) {
        memo[n] = tmp;
    }
    return tmp;
}
int main() {
    int N;
    cin >> N;
    cout << rec(N) << endl;
}

Compiler output:
a.cc:33:1: error: 'memo' does not name a type
   33 | memo[0] = 2;
      | ^~~~
a.cc:34:1: error: 'memo' does not name a type
   34 | memo[1] = 1;
      | ^~~~
Language: C++

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

int lucas[100];

int fnc(int x){
	if(lucas[x]>0)return lucas[x];
	else return lucas[x]=lucas[x-1]+lucas[x-2];
}

signged main(){
fill(begin(lucas),end(lucas),0);
lucas[0]=2;lucas[1]=1;
  int n;cin>>n;
  cout<<fnc(n)<<endl;
  
}

Compiler output:
a.cc:12:1: error: 'signged' does not name a type; did you mean 'signed'?
   12 | signged main(){
      | ^~~~~~~
      | signed
Language: C++

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

int lucas[100];

int fnc(int x){
	if(lucas[x]>0)return lucas[x];}
	else {return lucas[x]=lucas[x-1]+lucas[x-2];}
}

signged main(){
fill(begin(lucas),end(lucas),0);
lucas[0]=2;lucas[1]=1;
  int n;cin>>n;
  cout<<fnc(n)<<endl;
  
}

Compiler output:
a.cc:9:9: error: expected unqualified-id before 'else'
    9 |         else {return lucas[x]=lucas[x-1]+lucas[x-2];}
      |         ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
a.cc:12:1: error: 'signged' does not name a type; did you mean 'signed'?
   12 | signged main(){
      | ^~~~~~~
      | signed
a.cc: In function 'long long int fnc(long long int)':
a.cc:8:39: warning: control reaches end of non-void function [-Wreturn-type]
    8 |         if(lucas[x]>0)return lucas[x];}
      |                                       ^
Language: C++

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

int main(){
  vector<uint64_t> lucas(88);
  int N;
  cin >> N;
  lucas.at(0) = 2;
  lucas.at(1) = 1;
  for(int next = 2; next < N+1; ++next;){
    lucas.at(next) = lucas.at(next-1)+lucas.at(next-2);
  }
  cout << lucas(N) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:39: error: expected ')' before ';' token
   10 |   for(int next = 2; next < N+1; ++next;){
      |      ~                                ^
      |                                       )
a.cc:10:40: error: expected primary-expression before ')' token
   10 |   for(int next = 2; next < N+1; ++next;){
      |                                        ^
a.cc:13:16: error: no match for call to '(std::vector<long unsigned int>) (int&)'
   13 |   cout << lucas(N) << endl;
      |           ~~~~~^~~
Language: C++

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

int main(){
  vector<uint64_t> lucas(88);
  int N;
  cin >> N;
  lucas.at(0) = 2;
  lucas.at(1) = 1;
  while(int next = 2; next < N+1; ++next;){
    lucas.at(next) = lucas.at(next-1)+lucas.at(next-2);
  }
  cout << lucas(N) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ')' before ';' token
   10 |   while(int next = 2; next < N+1; ++next;){
      |        ~            ^
      |                     )
a.cc:10:32: error: the value of 'N' is not usable in a constant expression
   10 |   while(int next = 2; next < N+1; ++next;){
      |                                ^
a.cc:6:7: note: 'int N' is not const
    6 |   int N;
      |       ^
a.cc:10:23: error: parse error in template argument list
   10 |   while(int next = 2; next < N+1; ++next;){
      |                       ^~~~~~~~~~
a.cc:10:23: error: statement cannot resolve address of overloaded function
a.cc:10:37: error: no pre-increment operator for type
   10 |   while(int next = 2; next < N+1; ++next;){
      |                                     ^~~~
a.cc:10:42: error: expected primary-expression before ')' token
   10 |   while(int next = 2; next < N+1; ++next;){
      |                                          ^
a.cc:13:16: error: no match for call to '(std::vector<long unsigned int>) (int&)'
   13 |   cout << lucas(N) << endl;
      |           ~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
 
int main(){
  int n;
  cin>>n;
  int sum1 =2;
  int  sum2=1;
  if(n==1) int ai =1;
  else
    for(int i =2;i<n+1;i++){
  int ai = sum1+sum2;
      sum1 = sum2;
      sum2 = ai;  
  }
  cout << ai;
  }
  

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

#include <bits/stdc++.h>
using namespace std;
 
 
int main(){
  int n;
  cin>>n;
  int sum1 =2;
  int  sum2=1;
  if(n==1) int ai =1;
  else
    for(int i =2;i<n+1;i++){
  int ai = sum1+sum2;
      sum1 = sum2
      sum2 = ai;  
  }
  cout << ai;
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ';' before 'sum2'
   14 |       sum1 = sum2
      |                  ^
      |                  ;
   15 |       sum2 = ai;
      |       ~~~~        
a.cc:17:11: error: 'ai' was not declared in this scope
   17 |   cout << ai;
      |           ^~
Language: C++

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

int main() {
  int N;
  cin >> N;
  long L(N);
  L[0]=2;
  L[1]=1;
  for(int i=2;i<N;i++){
    L[i]=L[i-1]+L[i-2];
  }
  cout << L[N-1];
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: invalid types 'long int[int]' for array subscript
    8 |   L[0]=2;
      |    ^
a.cc:9:4: error: invalid types 'long int[int]' for array subscript
    9 |   L[1]=1;
      |    ^
a.cc:11:6: error: invalid types 'long int[int]' for array subscript
   11 |     L[i]=L[i-1]+L[i-2];
      |      ^
a.cc:11:11: error: invalid types 'long int[int]' for array subscript
   11 |     L[i]=L[i-1]+L[i-2];
      |           ^
a.cc:11:18: error: invalid types 'long int[int]' for array subscript
   11 |     L[i]=L[i-1]+L[i-2];
      |                  ^
a.cc:13:12: error: invalid types 'long int[int]' for array subscript
   13 |   cout << L[N-1];
      |            ^
Language: C++

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

int main(){
	int N;
	cin >> N;
	
	int Lucas = 0;
	int Lucasi2 = 2;
	int Lucasi1 = 1;
	
	if(N == 1){
		cout << 1 << endl;
	}
	else if(N > 1){
		for(int i = ; i < N - 1; i++) {
			Lucas = Lucasi1 + Lucasi2;
			Lucasi2 = Lucasi1;
			Lucasi1 = Lucas;
		}
		cout << Lucas << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected primary-expression before ';' token
   16 |                 for(int i = ; i < N - 1; i++) {
      |                             ^
Language: C++

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

int main(){
  int N;
  cin>>N;
  
  int64_t ryuka(int N){
    if (N=0){
      return 2;
    }
    if(N=1){
      return 1;
    }
    int64_t total=0;
    for(int i=2;i<=N;i++){
      total+=ryuka(i-1)+ryuka(i-2);
    }
    return total;
  }
  cout<<ryuka(N)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: a function-definition is not allowed here before '{' token
    8 |   int64_t ryuka(int N){
      |                       ^
a.cc:21:9: error: 'ryuka' was not declared in this scope
   21 |   cout<<ryuka(N)<<endl;
      |         ^~~~~
Language: C++

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

int main(){
  int N;
  cin>>N;
  
  int64_t ryuka(int N){
    if (N=0){
      return 2;
    }
    if(N=1){
      return 1;
    }
    int64_t total=0;
    for(int i=1;i<=N;i++){
      total+=ryuka(i);
    }
    return total;
  }
  cout<<ryuka(N)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: a function-definition is not allowed here before '{' token
    8 |   int64_t ryuka(int N){
      |                       ^
a.cc:21:9: error: 'ryuka' was not declared in this scope
   21 |   cout<<ryuka(N)<<endl;
      |         ^~~~~
Language: C++

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

int main(){
  int A;
  int f0 = 2, f1 = 1;
  double f2;
  cin >> A;
  for(int i = 0; i < A-2; i++){
    f2 = f1 + f0;
    f0 = f1;
    f1 = f2;
  }
  if(A == 0){
    cout << "2" << endl;
  }
  else if(A == 1){
    cout << "3" << endl;
  }
  else{
    cout << sum << endl;
  }
}


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

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

int main(){
  int A;
  int f0 = 2, f1 = 1, f2;
  cin >> A;
  for(int i; i < A-2; i++){
    f2 = f1 + f0;
    f0 = f1;
    f1 = f2;
  }
  if(A == 0){
    cout << "2" << endl;
  }
  else if(A == 1){
    cout << "3" << endl;
  }
  else{
    cout << sum << endl;
  }
}


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

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

int64_t lucas(int n) {
  if(n == 0)
    return 2;
  else if (n == 1)
    return 1;
  else
    return lucas(n-1) + lucas(n-2);
}

int main() {
  int N;
  cout << lucas(N) << endl;
}

Compiler output:
a.cc:2:17: error: 'stdc' is not a namespace-name
    2 | using namespace stdc;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   cout << lucas(N) << endl;
      |   ^~~~
      |   std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   cout << lucas(N) << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(){
  int N;
  cin>>N;
  
  vector<int> L(N);
  
  L.at(0)=2;
    L.at(1)=1;
  

  for(int i=2;i<N;i++){
    L.at(i)=L.at(i-1)+L.at(i-2);
  }
  
  cout<<L.at(N-1)<,endl;
}

    
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: expected primary-expression before ',' token
   18 |   cout<<L.at(N-1)<,endl;
      |                   ^
Language: C++

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

int main(){
  int N;
  cin>>N;
  
  vector<int> L(N);
  
  L.at(0)=2;
    L.at(1)=1;
  

  for(int i=2;i<N;i++){
    L.at(i)=L.at(i-1)+L.at(i-2);
  }
  
  cout<<L.at(N-1)<,endl;
}

    
    
    

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

#include <bits/stdc++.h>
using namespace std;
f(int x){
  if(x == 2)
    return 3;
  return f(x - 1) + f(x - 2);
}
int main (){
  int  N;
  cin >> N;
  int64_t = R;
  f(N) = R
    cout << R << endl;
}

Compiler output:
a.cc:3:1: error: ISO C++ forbids declaration of 'f' with no type [-fpermissive]
    3 | f(int x){
      | ^
a.cc: In function 'int main()':
a.cc:11:11: error: expected unqualified-id before '=' token
   11 |   int64_t = R;
      |           ^
a.cc:12:10: error: 'R' was not declared in this scope
   12 |   f(N) = R
      |          ^
Language: C++

#include<iostream>
#include<vector>

using namespace std;

int main(){
  int n;
  //1以上８６以下の整数
  cin>> n;
  
  vector<int>l;
  l[0]=2;
  l[1]=1;
  for(int i=2;i<=n;i++){
  l[i]=l[i-1]+l[i-2]
  }  
  cout<< l[n] <<endl;
  
  return 0;  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: expected ';' before '}' token
   15 |   l[i]=l[i-1]+l[i-2]
      |                     ^
      |                     ;
   16 |   }
      |   ~
Language: C++

#include<iostream>
#include<vector>

using namespace std;

int main(){
  int n;
  //1以上８６以下の整数
  cin>> n;
  
  vector<int>l;
  l[0]=2;
  l[1]=1;
  for(i=2;i<=n;i++){
  l[i]=l[i-1]+l[i-2]
  }  
  cout<< l[n] <<endl;
  
  return 0;  
}

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

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

int64_t lucas(int &x){
  if (x == 2)
    return 0;
  x = lucas(x-1) + lucas(x-2);
  return x;
}
int main(){
  int N = 0;
  cin >> N;
  if (N == 1)
    cout << 1 << endl;
  else {
    int64_t L = lucas(N) + 3;
    printf("L = %lld\n", L);
  }
}

Compiler output:
a.cc: In function 'int64_t lucas(int&)':
a.cc:7:14: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    7 |   x = lucas(x-1) + lucas(x-2);
      |             ~^~
a.cc:4:20: note:   initializing argument 1 of 'int64_t lucas(int&)'
    4 | int64_t lucas(int &x){
      |               ~~~~~^
a.cc:7:27: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    7 |   x = lucas(x-1) + lucas(x-2);
      |                          ~^~
a.cc:4:20: note:   initializing argument 1 of 'int64_t lucas(int&)'
    4 | int64_t lucas(int &x){
      |               ~~~~~^
Language: C++

#include<bits/stdc++.h>

int luca(int n){
  if(n == 0){
    return 2;
  }
  else if(n == 1){
    return 1;
  }
  
  return luca(n-1) + luca(n-2);
}

int main(){
  int n;
  cin >> n >> endl;
  cout << luca(n) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |   cin >> n >> endl;
      |   ^~~
      |   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:16:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cin >> n >> endl;
      |               ^~~~
      |               std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   cout << luca(n) << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~