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

#include<cstdio>

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
   16 |   cin >> n >> endl;
      |   ^~~
a.cc:16:15: error: 'endl' was not declared in this scope
   16 |   cin >> n >> endl;
      |               ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << luca(n) << endl;
      |   ^~~~
Language: C++

int main(){
  int N;
  cin >> N;

  vector<int64_t> ans(N+1);
  ans.at(0)=2;
  ans.at(1)=1;
  for(int i=2;i<=N;i++){
    ans.at(i)=ans.at(i-1)+ans.at(i-2);
  }

  cout << ans.at(N) <<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int64_t> ans(N+1);
      |   ^~~~~~
a.cc:5:10: error: 'int64_t' was not declared in this scope
    5 |   vector<int64_t> ans(N+1);
      |          ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | int main(){
a.cc:5:19: error: 'ans' was not declared in this scope
    5 |   vector<int64_t> ans(N+1);
      |                   ^~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << ans.at(N) <<endl;
      |   ^~~~
a.cc:12:23: error: 'endl' was not declared in this scope
   12 |   cout << ans.at(N) <<endl;
      |                       ^~~~
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,a,b) for(int i=0;i<b;i++)
#define REP(i,a,b) for(int i=0;i<=b;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define Yes(f) cout <<(f?"Yes":"No")<<endl//fが真の場合Yesを出力、偽の場合Noを出力
#define yes(f) cout <<(f?"yes":"no")<<endl
#define YES(f) cout <<(f?"YES":"NO")<<endl
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())

using namespace std;

const int mod=1e9+7;

int last_two=2;
int last_one=1;
signed main(){
    int n;
    cin >> n;
    int ans=1;
    if()
    rep(i,n-1)
    {
        ans=last_one+last_two;
        last_two=last_one;
        last_one=ans;
    }

    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:8: error: expected primary-expression before ')' token
   35 |     if()
      |        ^
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,a,b) for(int i=0;i<b;i++)
#define REP(i,a,b) for(int i=0;i<=b;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define Yes(f) cout <<(f?"Yes":"No")<<endl//fが真の場合Yesを出力、偽の場合Noを出力
#define yes(f) cout <<(f?"yes":"no")<<endl
#define YES(f) cout <<(f?"YES":"NO")<<endl
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())

using namespace std;

const int mod=1e9+7;

int last_two=2;
int last_one=1;
signed main(){
    int n;
    cin >> n;
    int ans=1;
    if()
    rep(i,n-1)
    {
        ans=last_one+last_two;
        last_two=last_one;
        last_one=ans;
    }

    if(n)
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:8: error: expected primary-expression before ')' token
   35 |     if()
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected '}' at end of input
   12 |   cout << A[N-1];
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 |   vector<long int> A();
      |                     ^~
a.cc:7:6: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    7 |   A[0] = 2;
      |      ^
a.cc:7:8: error: assignment of read-only location '* A'
    7 |   A[0] = 2;
      |   ~~~~~^~~
a.cc:8:6: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    8 |   A[1] = 1;
      |      ^
a.cc:8:8: error: assignment of read-only location '*(A + 1)'
    8 |   A[1] = 1;
      |   ~~~~~^~~
a.cc:10:8: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   10 |     A[i] = A[i-1]+A[i-2];
      |        ^
a.cc:10:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   10 |     A[i] = A[i-1]+A[i-2];
      |                 ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:10:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   10 |     A[i] = A[i-1]+A[i-2];
      |                        ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:10:18: error: invalid operands of types 'std::vector<long int>()' and 'std::vector<long int>()' to binary 'operator+'
   10 |     A[i] = A[i-1]+A[i-2];
      |            ~~~~~~^~~~~~~
      |                 |      |
      |                 |      std::vector<long int>()
      |                 std::vector<long int>()
a.cc:12:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   12 |   cout << A[N-1];
      |                ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:12:18: error: expected '}' at end of input
   12 |   cout << A[N-1];
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc:6:23: error: exponent has no digits
    6 |   vector<long long> A(2e);
      |                       ^~
a.cc: In function 'int main()':
a.cc:12:13: error: 'i' was not declared in this scope
   12 |   cout << A[i];
      |             ^
a.cc:12:16: error: expected '}' at end of input
   12 |   cout << A[i];
      |                ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
  
  int N;
  cin >> N;
  
  int fib (int n) {
    if (n == 0)
      return 2;
    else if (n == 1)
      return 1;
    else 
      return fib(n-1) + fib(n-2);
  }
  
  cout << fib(N) << endl;

}

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected initializer before '<' token
    8 |   int vector<int64_t> lucas(N);
      |             ^
a.cc:9:5: error: 'lucas' was not declared in this scope
    9 |     lucas.at(0)=2;
      |     ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int64_t l;
  int N;
  cin >>N;
  int vector<int64_t> lucas(N);
    lucas.at(0)=2;
  lucas.at(1)=1;
  int i;
  lucas.at(i)=lucas.at(i-1)+lucas.at(i-2);
  cout<<lucas.at(N)<<endl;
}
  
        
        
      

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected initializer before '<' token
    8 |   int vector<int64_t> lucas(N);
      |             ^
a.cc:9:5: error: 'lucas' was not declared in this scope
    9 |     lucas.at(0)=2;
      |     ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
vector<int64_t> luc(86, 0);

int64_t luca(int n) {
  if (n == 0)
    return 2;
  else if (n == 1)
    return 1;
  else {
    if (luc.at(n) > 0)
      return luc.at(n);
    else
      return luca(n - 1) + luca(n - 2);
}

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


Compiler output:
a.cc: In function 'int64_t luca(int)':
a.cc:17:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   17 | int main() {
      |         ^~
a.cc:17:9: note: remove parentheses to default-initialize a variable
   17 | int main() {
      |         ^~
      |         --
a.cc:17:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:17:12: error: a function-definition is not allowed here before '{' token
   17 | int main() {
      |            ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:5:21: note: to match this '{'
    5 | int64_t luca(int n) {
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int64_t luca(n) {
  if (n == 0)
    return 2;
  else if (n == 1)
    return 1;
  else
    return luca(n - 1) + luca(n - 2);
}

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


Compiler output:
a.cc:3:14: error: 'n' was not declared in this scope; did you mean 'yn'?
    3 | int64_t luca(n) {
      |              ^
      |              yn
a.cc: In function 'int main()':
a.cc:15:15: error: 'luca' cannot be used as a function
   15 |   cout << luca(N) << endl;
      |           ~~~~^~~
Language: C++

int main()
{
	long long int a = 2;
	long long int b = 1;
	long long int c = 0;

	int n;
	cin >> n;
	if (n == 1) {
		cout << 1 << endl;
		return 0;
	}
	if (n == 2) {
		cout << 1 << endl;
		return 3;
	}
	if (n == 3) {
		cout << 1 << endl;
		return 4;
	}
	for (int i = 0; i < n-1; i++) {
		c = a + b;
		a = b;
		b = c;
	}
	cout << c << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> n;
      |         ^~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << 1 << endl;
      |                 ^~~~
a.cc:10:30: error: 'endl' was not declared in this scope
   10 |                 cout << 1 << endl;
      |                              ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << 1 << endl;
      |                 ^~~~
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |                 cout << 1 << endl;
      |                              ^~~~
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << 1 << endl;
      |                 ^~~~
a.cc:18:30: error: 'endl' was not declared in this scope
   18 |                 cout << 1 << endl;
      |                              ^~~~
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout << c << endl;
      |         ^~~~
a.cc:26:22: error: 'endl' was not declared in this scope
   26 |         cout << c << endl;
      |                      ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <math.h>
#include <stdio.h>
#include <set>
#include <vector>
using namespace std;


int main(){
    int n;
    cin>>n;
    long long str[n+1];
    str[0] = 2;
    str[1] = 1;
    int i=2;
    while(i<=n){
        str[i] = str[i-1] + str[i-2];
        i++;
    }

    printf("%lld"\n, str[n]);
    return 0;
}

Compiler output:
a.cc:23:18: error: stray '\' in program
   23 |     printf("%lld"\n, str[n]);
      |                  ^
a.cc: In function 'int main()':
a.cc:23:18: error: expected ')' before 'n'
   23 |     printf("%lld"\n, str[n]);
      |           ~      ^~
      |                  )
Language: C++

#include <vector>
using namespace std;
 
/*int calc(int n){
  if(n == 0)
    return 2;
  else if(n == 1)
    return 1;
  else
    return calc(n - 2) + calc (n - 1);
}*/
 
int main(void){
  
  int N;
  cin >> N;
  
  vector<long>luca(87,0);
  
  luca[0] = 2;
  luca[1] = 1;
  
  for(int i=2;i<87;i++){
    luca[i] = luca[i-2] + luca[i-1];
  }
  cout << luca[N] << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'cin' was not declared in this scope
   16 |   cin >> N;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <vector>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:26:3: error: 'cout' was not declared in this scope
   26 |   cout << luca[N] << endl;
      |   ^~~~
a.cc:26:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:22: error: 'endl' was not declared in this scope
   26 |   cout << luca[N] << endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <vector>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

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

typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<vector<bool>> vvb;
typedef vector<vector<int>> vvi;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)

int main() {
	int n;
	cin >> n;
	long long ans;
	ans = (long long)(pow((1 + sqrt(5)) / 2, n) + pow((1 - sqrt(5)) / 2, n));
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:36: error: 'sqrt' was not declared in this scope
   20 |         ans = (long long)(pow((1 + sqrt(5)) / 2, n) + pow((1 - sqrt(5)) / 2, n));
      |                                    ^~~~
a.cc:20:27: error: 'pow' was not declared in this scope
   20 |         ans = (long long)(pow((1 + sqrt(5)) / 2, n) + pow((1 - sqrt(5)) / 2, n));
      |                           ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int 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;
  int ans=lucas(N);
  cout<<ans<<endl;
}

Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　return lucas(x-1)+lucas(x-2);
      | ^
a.cc: In function 'int lucas(int)':
a.cc:6:1: error: '\U00003000return' was not declared in this scope; did you mean 'sigreturn'?
    6 | 　return lucas(x-1)+lucas(x-2);
      | ^~~~~~~~
      | sigreturn
a.cc:7:1: warning: control reaches end of non-void function [-Wreturn-type]
    7 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int lucas(int x){
  if(x==0) return 2;
  if(x==1) return 1;
　else return lucas(x-1)+lucas(x-2); 
}
int main(){
  int N;
  cin>>N;
  int ans=lucas(N);
  cout<<ans<<endl;
}

Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　else return lucas(x-1)+lucas(x-2);
      | ^
a.cc: In function 'int lucas(int)':
a.cc:6:1: error: '\U00003000else' was not declared in this scope
    6 | 　else return lucas(x-1)+lucas(x-2);
      | ^~~~~~
a.cc:7:1: warning: control reaches end of non-void function [-Wreturn-type]
    7 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define int long long
#define P pair<int,int>
#define PP pair<int,P>
#define F first
#define S second
#define f(i,n) for(int i=0;i<(n);i++)
#define INF LLONG_MAX/3
#define eps LDBL_EPSILON
#define mod (int)(1000000007)
#define pie 3.141592653589793238462643383279
#define Bpri priority_queue
#define Spri priority_queue<P,vector<P>,greater<P>>
using namespace std;
int dp[100]
signed main(){
	int n;
	cin>>n;
	dp[0]=2;
	dp[1]=1;
	f(i,n-1){
		dp[i+2]=dp[i]+dp[i+1];
	}
	cout<<dp[n]<<endl;
	return 0;
}


Compiler output:
a.cc:16:1: error: expected initializer before 'signed'
   16 | signed main(){
      | ^~~~~~
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 ans = lucas(n);
        System.out.println(ans);
    }
    static Map<Integer, Integer> map = new HashMap<>();
    static long lucas(int a){
        if(a == 0) return 2;
        if(a == 1) return 1; 
        Integer m = map.get(a);
        //メモしてたらそこから出す。
        if(m != null) {
            return m;
        }
        //メモされてなかった(初めて計算する)ので計算しメモる。
        m = lucas(a-1) + lucas(a-2);
        map.put(a,m);
        return m;
    }
}

Compiler output:
Main.java:19: error: incompatible types: long cannot be converted to Integer
        m = lucas(a-1) + lucas(a-2);
                       ^
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int memo[] = new int[n];
        Arrays.fill(memo, 0);
        memo[0] = 2;
        memo[1] = 1;

        int ans = lucas(n);
        System.out.println(ans);
    }
    static int lucas(int a){
        if(memo[a] == 0){ 
            memo[a] = lucas(a-1) + lucas(a-2);
            return memo[a];
        }else{
            return memo[a];
        }
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
        if(memo[a] == 0){ 
           ^
  symbol:   variable memo
  location: class Main
Main.java:16: error: cannot find symbol
            memo[a] = lucas(a-1) + lucas(a-2);
            ^
  symbol:   variable memo
  location: class Main
Main.java:17: error: cannot find symbol
            return memo[a];
                   ^
  symbol:   variable memo
  location: class Main
Main.java:19: error: cannot find symbol
            return memo[a];
                   ^
  symbol:   variable memo
  location: class Main
4 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'c' was not declared in this scope
   11 |         c = a + b;
      |         ^
a.cc:16:17: error: 'c' was not declared in this scope
   16 |         cout << c << endl;
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main() {
  int N;
  int L1 = 2;
  int L2 = 1;
  int answer;
  cin >> N;
  if(N = 1) {
    cout << 2 << endl;
  }
  if(N = 2) {
    cout << 1 << endl;
  }
  if(N > 2) {
  for(int i = 0;i < N - 2;i++) {
    L1 = L1 + L2;
      answer = L1;
  }
    cout << answer <<endl;
  }

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

#include<iostream>
using namespace std;

int main() {
  int N;
  int L1 = 2;
  int L2 = 1;
  int answer;
  cin >> N;
  if(N = 1) {
    cout << 2 << endl;
  }
  if(N = 2) {
    cout << 1 << endl;
  }
  if(N > 2) {
  for(int i = 0;i < N - 2;i++) {
    L1 = L1 + L2
      answer = L1;
  }
    cout << answer <<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: expected ';' before 'answer'
   18 |     L1 = L1 + L2
      |                 ^
      |                 ;
   19 |       answer = L1;
      |       ~~~~~~     
a.cc:22:4: error: expected '}' at end of input
   22 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main()
{
    int N;
    cin >> N;

    vector<int> vec(N);
    vec.at(0) = 1;
    vec.at(1) = 2;

    for (int i = 2; i < N; i++)
        vec.at(i) = vec.at(i - 1) + vec.at(i - 2);

    cout << vec(N) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: no match for call to '(std::vector<int>) (int&)'
   16 |     cout << vec(N) << endl;
      |             ~~~^~~
Language: Java

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


Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
std::string l;
int l[0]=2,l[1]=1;
if (int i>1){
  for (i=2,i<=N,i++){
  l[i]=l[i-1]+l[i-2];
  }
cout<<l[N];
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: conflicting declaration 'int l [0]'
    7 | int l[0]=2,l[1]=1;
      |     ^
a.cc:6:13: note: previous declaration as 'std::string l'
    6 | std::string l;
      |             ^
a.cc:7:12: error: conflicting declaration 'int l [1]'
    7 | int l[0]=2,l[1]=1;
      |            ^
a.cc:6:13: note: previous declaration as 'std::string l'
    6 | std::string l;
      |             ^
a.cc:8:10: error: expected initializer before '>' token
    8 | if (int i>1){
      |          ^
a.cc:8:10: error: expected ')' before '>' token
    8 | if (int i>1){
      |    ~     ^
      |          )
a.cc:9:20: error: expected ';' before ')' token
    9 |   for (i=2,i<=N,i++){
      |                    ^
      |                    ;
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
a.cc:12:12: error: expected ')' before '}' token
   12 | cout<<l[N];
      |            ^
      |            )
   13 | }
      | ~           
a.cc:9:7: note: to match this '('
    9 |   for (i=2,i<=N,i++){
      |       ^
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <stdio.h>

int main(){
    int64_t N;
    scanf("%lld",&N);
    int L[N];
    
    for (int i=0; i<=N; i++) {
        switch (i) {
            case 0:
                L[i] = 2;
                break;
            case 1:
                L[i] = 1;
                break;
            default:
                L[i] = L[i-1] +L[i-2];
                break;
        }
    }
    printf("%d\n", L[N]);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'int64_t'
    4 |     int64_t N;
      |     ^~~~~~~
main.c:2:1: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdint.h>
    2 |
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:28: error: conflicting declaration 'long long int b [86]'
    4 |   int a,b;cin>>a;long long b[86];
      |                            ^
a.cc:4:9: note: previous declaration as 'int b'
    4 |   int a,b;cin>>a;long long b[86];
      |         ^
a.cc:6:6: error: invalid types 'int[int]' for array subscript
    6 |     b[0]=2,b[1]=1;
      |      ^
a.cc:6:13: error: invalid types 'int[int]' for array subscript
    6 |     b[0]=2,b[1]=1;
      |             ^
a.cc:7:6: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |      ^
a.cc:7:11: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |           ^
a.cc:7:18: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |                  ^
a.cc:8:12: error: invalid types 'int[int]' for array subscript
    8 |     cout<<b[a];}}
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: conflicting declaration 'long int b [87]'
    4 |   int a,b;cin>>a;long b[87];
      |                       ^
a.cc:4:9: note: previous declaration as 'int b'
    4 |   int a,b;cin>>a;long b[87];
      |         ^
a.cc:6:6: error: invalid types 'int[int]' for array subscript
    6 |     b[0]=2,b[1]=1;
      |      ^
a.cc:6:13: error: invalid types 'int[int]' for array subscript
    6 |     b[0]=2,b[1]=1;
      |             ^
a.cc:7:6: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |      ^
a.cc:7:11: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |           ^
a.cc:7:18: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |                  ^
a.cc:8:12: error: invalid types 'int[int]' for array subscript
    8 |     cout<<b[a];}}
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:27: error: conflicting declaration 'long int b [87]'
    4 |   int a,b;cin>>a;long int b[87];
      |                           ^
a.cc:4:9: note: previous declaration as 'int b'
    4 |   int a,b;cin>>a;long int b[87];
      |         ^
a.cc:6:6: error: invalid types 'int[int]' for array subscript
    6 |     b[0]=2,b[1]=1;
      |      ^
a.cc:6:13: error: invalid types 'int[int]' for array subscript
    6 |     b[0]=2,b[1]=1;
      |             ^
a.cc:7:6: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |      ^
a.cc:7:11: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |           ^
a.cc:7:18: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |                  ^
a.cc:8:12: error: invalid types 'int[int]' for array subscript
    8 |     cout<<b[a];}}
      |            ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: invalid types 'int[int]' for array subscript
    4 |   int a,b;cin>>a;b[87];
      |                   ^
a.cc:6:6: error: invalid types 'int[int]' for array subscript
    6 |     b[0]=2,b[1]=1;
      |      ^
a.cc:6:13: error: invalid types 'int[int]' for array subscript
    6 |     b[0]=2,b[1]=1;
      |             ^
a.cc:7:6: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |      ^
a.cc:7:11: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |           ^
a.cc:7:18: error: invalid types 'int[int]' for array subscript
    7 |     b[i]=b[i-1]+b[i-2];
      |                  ^
a.cc:8:12: error: invalid types 'int[int]' for array subscript
    8 |     cout<<b[a];}}
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'b' was not declared in this scope
    4 |   int a;cin>>a;b[87];
      |                ^
Language: C++

#include <iostream>
#include <iomanip>
// std::cout << std::setprecision(2) << 3.141; // "3.1"
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;

static const int giga = pow(10,9);
// double pi = 3.141592653589793238463;

int main(void){
  int n;
  cin >> n;

  int<vector> 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;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: 'int' is not a template
   27 |   int<vector> l(n+1);
      |   ^~~
a.cc:28:4: error: invalid types 'int[int]' for array subscript
   28 |   l[0] = 2;
      |    ^
a.cc:29:4: error: invalid types 'int[int]' for array subscript
   29 |   l[1] = 1;
      |    ^
a.cc:32:6: error: invalid types 'int[int]' for array subscript
   32 |     l[i] = l[i - 1] + l[i - 2];
      |      ^
a.cc:32:13: error: invalid types 'int[int]' for array subscript
   32 |     l[i] = l[i - 1] + l[i - 2];
      |             ^
a.cc:32:24: error: invalid types 'int[int]' for array subscript
   32 |     l[i] = l[i - 1] + l[i - 2];
      |                        ^
a.cc:34:12: error: invalid types 'int[int]' for array subscript
   34 |   cout << l[n] << endl;
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main() {
  long long n[100];
  int n;
  int l[0] = 2, l[1] = 1;

  for (int i = 2; i < n; i++) {
    l[i] = l[l - 1] + l[l - 2];
  }
  cout << l[n] << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: conflicting declaration 'int n'
    7 |   int n;
      |       ^
a.cc:6:13: note: previous declaration as 'long long int n [100]'
    6 |   long long n[100];
      |             ^
a.cc:8:14: error: array must be initialized with a brace-enclosed initializer
    8 |   int l[0] = 2, l[1] = 1;
      |              ^
a.cc:8:17: error: conflicting declaration 'int l [1]'
    8 |   int l[0] = 2, l[1] = 1;
      |                 ^
a.cc:8:7: note: previous declaration as 'int l [0]'
    8 |   int l[0] = 2, l[1] = 1;
      |       ^
a.cc:10:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   for (int i = 2; i < n; i++) {
      |                   ~~^~~
a.cc:11:13: error: invalid types 'int [0][int*]' for array subscript
   11 |     l[i] = l[l - 1] + l[l - 2];
      |             ^
a.cc:11:24: error: invalid types 'int [0][int*]' for array subscript
   11 |     l[i] = l[l - 1] + l[l - 2];
      |                        ^
a.cc:13:12: error: invalid types 'int [0][long long int [100]]' for array subscript
   13 |   cout << l[n] << '\n';
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin() , v.end()
#define REP(i, x, n) for(int i = x; i < n; i++)


int main(){
    int n; cin >> n;
    ll L[87];
    L[0]=2ll, L[1]=1ll;
    rep(i, 2, n) L[i]=L[i-2]+L[i-1];
    cout << L[n];
}

Compiler output:
a.cc:16:16: error: macro "rep" passed 3 arguments, but takes just 2
   16 |     rep(i, 2, n) L[i]=L[i-2]+L[i-1];
      |                ^
a.cc:7:9: note: macro "rep" defined here
    7 | #define rep(i, n) REP(i, 0, n)
      |         ^~~
a.cc: In function 'int main()':
a.cc:16:5: error: 'rep' was not declared in this scope
   16 |     rep(i, 2, n) L[i]=L[i-2]+L[i-1];
      |     ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n;
  long ryuka[90] = {2, 1};
  cin >> n;
  for( int i = 2; i < n i++){
    ryuka[i] = ryuka[i - 1] + ryuka[i - 2];
  }
  cout << ryuka[n - 1] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'i'
    8 |   for( int i = 2; i < n i++){
      |                        ^~
      |                        ;
Language: C++

#incluce<iostream>
using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluce; did you mean #include?
    1 | #incluce<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |   int n;cin>>n;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incluce<iostream>
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<f[n]<<endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:15: error: 'endl' was not declared in this scope
    9 |   cout<<f[n]<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incluce<iostream>
Language: C++

#include<bits//stdc++.h>
using namespace std;
int main(){
    long long a[99]
    a[1]=1;
    a[2]=3;
    for(int i=0;i<90;i++){
        a[i]=a[i-1]+a[i-2];
    }
    int b;
    cin>>b;
    cout<<a[b]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'a'
    5 |     a[1]=1;
      |     ^
a.cc:6:5: error: 'a' was not declared in this scope
    6 |     a[2]=3;
      |     ^
Language: C++

#include<bits//stdc++.h>
using namespace std;
int main(){
    long long a[99]
    a[0]=1;
    a[1]=3;
    for(int i=0;i<90;i++){
        a[i]=a[i-1]+a[i-2];
    }
    int b;
    cin>>b;
    cout<<a[b]<<endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'a'
    5 |     a[0]=1;
      |     ^
a.cc:6:5: error: 'a' was not declared in this scope
    6 |     a[1]=3;
      |     ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(System.in);
		Int N = sc.nextInt();
		long L[] = new long[N+1];
		L[0] = 2;
		L[1] = 1;
		for(Int i = 2; i <= N; i++){
			L[i] = L[i-1] + L[i-2];
		}
		System.out.println(L[N]);
	}
}
	


Compiler output:
Main.java:6: error: cannot find symbol
		Int N = sc.nextInt();
		^
  symbol:   class Int
  location: class Main
Main.java:10: error: cannot find symbol
		for(Int i = 2; i <= N; i++){
		    ^
  symbol:   class Int
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(System.in);
		Int N = sc.next();
		long L[] = new long[N+1];
		L[0] = 2;
		L[1] = 1;
		for(Int i = 0; i<N; i++){
			L[N] = L[N-1] + L[N-2];
		}
		System.out.println(L[N]);
	}
}
	


Compiler output:
Main.java:6: error: cannot find symbol
		Int N = sc.next();
		^
  symbol:   class Int
  location: class Main
Main.java:10: error: cannot find symbol
		for(Int i = 0; i<N; i++){
		    ^
  symbol:   class Int
  location: class Main
2 errors
Language: C++

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

int main(){
int N;
  cin>>N;
  long long L[N+1];
vector<int>L(87);
  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: In function 'int main()':
a.cc:8:12: error: conflicting declaration 'std::vector<int> L'
    8 | vector<int>L(87);
      |            ^
a.cc:7:13: note: previous declaration as 'long long int L [(N + 1)]'
    7 |   long long L[N+1];
      |             ^
Language: C++

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

int main(){
int N;
  cin>>N;
  long long L[n+1];
vector<int>L(87);
  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: In function 'int main()':
a.cc:7:15: error: 'n' was not declared in this scope
    7 |   long long L[n+1];
      |               ^
Language: C++

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

int main(){
int N;
  cin>>N;
  long long l[n+1];
vector<int>L(87);
  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: In function 'int main()':
a.cc:7:15: error: 'n' was not declared in this scope
    7 |   long long l[n+1];
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int n;
  cin >> n;
  long long a[100];
  a[0] = 2; a[1] = 1;
  for(int i=0; i<n; i++){
    l[i] = l[i-1] + l[i-2];
  }
  cout << l[n-1] << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'l' was not declared in this scope
   10 |     l[i] = l[i-1] + l[i-2];
      |     ^
a.cc:12:11: error: 'l' was not declared in this scope
   12 |   cout << l[n-1] << endl;
      |           ^
Language: C++

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

long long memo[100] = {0}, n;

int main() {
  memo[0] = 2;
  memo[1] = 1;
  for(int i = 2; i < 100; ++i)
    memo[i] = memo[i - 1] + memo[i - 2];
  cin >> n;

  cout << memo[i] << endl;
  return 0;
}

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

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

int main() {
  int N;
  cin >> N;
  int A = 2; int B = 1;
  for(int i = 0; i < (N - 2); i++){
    if((i % 2) == 0){
      A += B;
    }else if((i % 2) == 1){
      B += A;
    }
  }
  if((N % 2) == 1){
    cout << A << endl;
  }else{
    cout << B << endl;
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including<bits/stdc++.h>
      |  ^~~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #including<bits/stdc++.h>
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << A << endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |     cout << A << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #including<bits/stdc++.h>
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << B << endl;
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:18: error: 'endl' was not declared in this scope
   18 |     cout << B << endl;
      |                  ^~~~
a.cc:18:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;
long long L[100];

int main(){
	cin >> 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] << endl;
}

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

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

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

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

int main (){
  int N, A, B, C;
  A = 2;
  B = 1;
  for(int i = 1, i < N - 2, i++){
    if((i % 2) == 0){
      A += B;
    }
    else{
      B += A
    }
  }
  if((N % 2) == 1){
    cout << A << endl;
  }
  else{
    cout << B << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before '<' token
    8 |   for(int i = 1, i < N - 2, i++){
      |                   ^~
      |                   ;
a.cc:8:20: error: expected primary-expression before '<' token
    8 |   for(int i = 1, i < N - 2, i++){
      |                    ^
a.cc:8:32: error: expected ';' before ')' token
    8 |   for(int i = 1, i < N - 2, i++){
      |                                ^
      |                                ;
a.cc:13:13: error: expected ';' before '}' token
   13 |       B += A
      |             ^
      |             ;
   14 |     }
      |     ~
Language: C++

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

int main() {
  int N;
  int memo = 0;
  int L_0 = 2, L_1 = 1;
  cin >> N;
  if(N == 1){
    cout << 1 << endl;
  }
  else{
    for(int i = 2; i <= N; i++){
      int L_i;
      L_i = L_i-2 + L_i-1;
      if(i == N){
        cout << L_N << endl;
      }
    }
  }
}
      
      

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: 'L_N' was not declared in this scope; did you mean 'L_i'?
   17 |         cout << L_N << endl;
      |                 ^~~
      |                 L_i
Language: C++

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

int main() {
  int N;
  int memo;
  cin >> N;
  if(N == 1){
    cout << 1 << endl;
  }
  else{
    for(int i = 0; i < N; i++){
      int L = 2, O = 1;
      memo = O;
      O += L;
      L = memo;
    }
    cout << O << endl;
  }
}
      
      
    

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

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

int main() {
  int N;
  int L_0 = 2,L_1 = 1;
  cin >> N;
  if(N == 1){
    cout << L_1 << endl;
  }
  else{
    for(int i = 1; i < N; i++){
      int L = L_0;
      L += L_i;
    }
    cout << L << endl;
  }
}
      
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'L_i' was not declared in this scope; did you mean 'L_1'?
   14 |       L += L_i;
      |            ^~~
      |            L_1
a.cc:16:13: error: 'L' was not declared in this scope
   16 |     cout << L << endl;
      |             ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

int main() {
	__int64 N, L0 = 2, L1 = 1, Ln;
	cin >> N;
	N = N - 1;
	for (int i = 0; i < N; i++) {
		Ln = L0 + L1;
		L0 = L1;
		L1 = Ln;

	}
	if (N == 0) {
		Ln = 1;
	}
	cout << Ln<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
    6 |         __int64 N, L0 = 2, L1 = 1, Ln;
      |         ^~~~~~~
      |         __ynf64
a.cc:7:16: error: 'N' was not declared in this scope
    7 |         cin >> N;
      |                ^
a.cc:10:17: error: 'Ln' was not declared in this scope; did you mean 'yn'?
   10 |                 Ln = L0 + L1;
      |                 ^~
      |                 yn
a.cc:10:22: error: 'L0' was not declared in this scope; did you mean 'y0'?
   10 |                 Ln = L0 + L1;
      |                      ^~
      |                      y0
a.cc:10:27: error: 'L1' was not declared in this scope; did you mean 'y1'?
   10 |                 Ln = L0 + L1;
      |                           ^~
      |                           y1
a.cc:16:17: error: 'Ln' was not declared in this scope; did you mean 'yn'?
   16 |                 Ln = 1;
      |                 ^~
      |                 yn
a.cc:18:17: error: 'Ln' was not declared in this scope; did you mean 'yn'?
   18 |         cout << Ln<<endl;
      |                 ^~
      |                 yn