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

#include"bits/stdc++.h"
#include<stdint.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
Language: C++

#include"bits/stdc++.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:5:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
    5 |         __int64 N, L0 = 2, L1 = 1, Ln;
      |         ^~~~~~~
      |         __ynf64
a.cc:6:16: error: 'N' was not declared in this scope
    6 |         cin >> N;
      |                ^
a.cc:9:17: error: 'Ln' was not declared in this scope; did you mean 'yn'?
    9 |                 Ln = L0 + L1;
      |                 ^~
      |                 yn
a.cc:9:22: error: 'L0' was not declared in this scope; did you mean 'y0'?
    9 |                 Ln = L0 + L1;
      |                      ^~
      |                      y0
a.cc:9:27: error: 'L1' was not declared in this scope; did you mean 'y1'?
    9 |                 Ln = L0 + L1;
      |                           ^~
      |                           y1
a.cc:15:17: error: 'Ln' was not declared in this scope; did you mean 'yn'?
   15 |                 Ln = 1;
      |                 ^~
      |                 yn
a.cc:17:17: error: 'Ln' was not declared in this scope; did you mean 'yn'?
   17 |         cout << Ln<<endl;
      |                 ^~
      |                 yn
Language: C++

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

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

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

#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;
    longlong L[N+1];
    L[0] = 2;
    L[1] = 1;
    if (N == 1){
        cout << L[N] << endl;
        return 0;
    }
    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:7:5: error: 'longlong' was not declared in this scope
    7 |     longlong L[N+1];
      |     ^~~~~~~~
a.cc:8:5: error: 'L' was not declared in this scope
    8 |     L[0] = 2;
      |     ^
Language: C++

#include <iostream>

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.back();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'vector' was not declared in this scope
    9 |         vector<int> L(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 | 
a.cc:9:16: error: expected primary-expression before 'int'
    9 |         vector<int> L(N);
      |                ^~~
a.cc:10:9: error: 'L' was not declared in this scope
   10 |         L.at(0) = 2, L.at(1) = 1;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: conflicting declaration 'int N [0]'
    5 |   int N[0] = 2;
      |       ^
a.cc:4:7: note: previous declaration as 'int N [90]'
    4 |   int N[90];
      |       ^
a.cc:6:7: error: conflicting declaration 'int N [1]'
    6 |   int N[1] = 1;
      |       ^
a.cc:4:7: note: previous declaration as 'int N [90]'
    4 |   int N[90];
      |       ^
Language: C++

#include <algorithm>
#include <cassert>
// #include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
// #include <random>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>

/*
unsigned seed1 = std::chrono::system_clock::now().time_since_epoch().count();
mt19937 g1.seed(seed1);
*/
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<pii, pii> ppiipii;
typedef pair<int, ppiipii> pippiipii;
typedef pair<int, pii> pipii;
typedef pair<pii, int> ppiii;
typedef pair<int, ppiii> pippiii;
typedef pair<int, ll> pill;
typedef pair<int, double> pid;
typedef pair<string, string> pss;
// note to self, the below two triggers someone
typedef pair<ll, ll> pll;
typedef pair<ll, int> plli;
typedef long double ld;

ll dp[90];

int main() {
  dp[0] = 2;
  dp[1] = 1;
  int n;
  scanf("%d", &n);
  for(int i = 2; i <= n; i++) {
    dp[i] = dp[i-1] + dp[i-2];
  }
  printf("%lld\n", dp[i]);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:53:23: error: 'i' was not declared in this scope
   53 |   printf("%lld\n", dp[i]);
      |                       ^
Language: C++

#include<stdio.h>
int main(){
long long int a[86];
int i,n;
a[0]=2;
a[1]=1
  scanf("%d",&n);
  if(n<=1)printf("%d",a[n]);
  else{
   for(i=2;i<=n;i++){
   a[i]=a[i-1]+a[i-2];
   }
    printf("%d",a[n]);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'scanf'
    6 | a[1]=1
      |       ^
      |       ;
    7 |   scanf("%d",&n);
      |   ~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vecter' was not declared in this scope
    7 |   vecter<int> L(100);
      |   ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vecter<int> L(100);
      |          ^~~
a.cc:8:3: error: 'L' was not declared in this scope
    8 |   L.at(0)=2;
      |   ^
Language: C

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
	int n;
	long long s;
	cin>>n;
	double a,x1,x2,y;
	a=sqrt(5);
	x1=(1+a)/2;
	x2=(1-a)/2;
	s=pow(x1,n)+pow(x2,n);
	if(n==1)
	cout<<"2";
	if(n==2)
	cout<<"1";
	if(n!=1&&n!=2)
	cout<<s;
	return 0;
}

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

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

int main() {
    int N, i, L_[i], L_[1] = 1, L_[0] = 2, L_[3] = 3;

    for (i = 4; i < N + 1; i++){
        L_[i] = L_[i-1] + L_[i-2];
    }
    cout << L_[i] << endl;        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: conflicting declaration 'int L_ [1]'
    5 |     int N, i, L_[i], L_[1] = 1, L_[0] = 2, L_[3] = 3;
      |                      ^~
a.cc:5:15: note: previous declaration as 'int L_ [i]'
    5 |     int N, i, L_[i], L_[1] = 1, L_[0] = 2, L_[3] = 3;
      |               ^~
a.cc:5:33: error: conflicting declaration 'int L_ [0]'
    5 |     int N, i, L_[i], L_[1] = 1, L_[0] = 2, L_[3] = 3;
      |                                 ^~
a.cc:5:15: note: previous declaration as 'int L_ [i]'
    5 |     int N, i, L_[i], L_[1] = 1, L_[0] = 2, L_[3] = 3;
      |               ^~
a.cc:5:44: error: conflicting declaration 'int L_ [3]'
    5 |     int N, i, L_[i], L_[1] = 1, L_[0] = 2, L_[3] = 3;
      |                                            ^~
a.cc:5:15: note: previous declaration as 'int L_ [i]'
    5 |     int N, i, L_[i], L_[1] = 1, L_[0] = 2, L_[3] = 3;
      |               ^~
Language: C

#include <stdio.h>

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

int main(void)
{
  int N;
  scanf("%d", &N);
  printf("%lld\n", luca(N));
  
  return 0;
}

Compiler output:
main.c: In function 'luca':
main.c:6:15: error: 'n' undeclared (first use in this function)
    6 |   return luca(n - 1) + luca(n - 2);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

int main(void)
{
  int N;
  scanf("%d", &N);
  printf("lld\n", luca(N));
  
  return 0;
}

Compiler output:
main.c: In function 'luca':
main.c:6:15: error: 'n' undeclared (first use in this function)
    6 |   return luca(n - 1) + luca(n - 2);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
    int N
    int L[86]={0};

    cin >> N;
    L[0]=2;
    L[1]=1;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'int'
    6 |     int L[86]={0};
      |     ^~~
a.cc:8:12: error: 'N' was not declared in this scope
    8 |     cin >> N;
      |            ^
a.cc:9:5: error: 'L' was not declared in this scope
    9 |     L[0]=2;
      |     ^
Language: C++

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

int main() {
    int N
    long L[86]={0};

    cin >> N;
    L[0]=2;
    L[1]=1;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'long'
    6 |     long L[86]={0};
      |     ^~~~
a.cc:8:12: error: 'N' was not declared in this scope
    8 |     cin >> N;
      |            ^
a.cc:9:5: error: 'L' was not declared in this scope
    9 |     L[0]=2;
      |     ^
Language: C

#include <stdio.h>

int main(void){
  int n;

  scanf("%d", &n);
  
  long long L[n-1];

  L[0] = 2;
  L[1] = 1;

  for(i=2;i<n;i++) L[i]=L[i-1]+l[i-2];
  printf("%lld", L[n-1]);
}
  


Compiler output:
main.c: In function 'main':
main.c:13:7: error: 'i' undeclared (first use in this function)
   13 |   for(i=2;i<n;i++) L[i]=L[i-1]+l[i-2];
      |       ^
main.c:13:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:32: error: 'l' undeclared (first use in this function)
   13 |   for(i=2;i<n;i++) L[i]=L[i-1]+l[i-2];
      |                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  ll N, a = 2, b = 1;
  cin >> N;
  for (int i = 0; i < N / 2; i++) {
    a += b;
    b += a;
  }
  if (N % 2 == 0) {
    cout << a << endl;
  }
  else {
    cout << b << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll N, a = 2, b = 1;
      |   ^~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
a.cc:8:5: error: 'a' was not declared in this scope
    8 |     a += b;
      |     ^
a.cc:8:10: error: 'b' was not declared in this scope
    8 |     a += b;
      |          ^
a.cc:12:13: error: 'a' was not declared in this scope
   12 |     cout << a << endl;
      |             ^
a.cc:15:13: error: 'b' was not declared in this scope
   15 |     cout << b << endl;
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected '}' at end of input
   13 |         cout<<c<<endl;
      |                       ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: expected ';' before '==' token
   16 |     for (int i==2; i < N; i++){
      |               ^~
      |               ;
a.cc:16:15: error: expected primary-expression before '==' token
   16 |     for (int i==2; i < N; i++){
      |               ^~
a.cc:16:25: error: expected ')' before ';' token
   16 |     for (int i==2; i < N; i++){
      |         ~               ^
      |                         )
a.cc:16:27: error: 'i' was not declared in this scope
   16 |     for (int i==2; i < N; i++){
      |                           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: expected ';' before '==' token
   15 |     for (int i==2; i < N; i++){
      |               ^~
      |               ;
a.cc:15:15: error: expected primary-expression before '==' token
   15 |     for (int i==2; i < N; i++){
      |               ^~
a.cc:15:25: error: expected ')' before ';' token
   15 |     for (int i==2; i < N; i++){
      |         ~               ^
      |                         )
a.cc:15:27: error: 'i' was not declared in this scope
   15 |     for (int i==2; i < N; i++){
      |                           ^
Language: C++

#include <bits/stdc++>
using namespace std
  
  int main() {
int N, A, B, C;
  A = 2;
  B = 1;
  i = 0
    while(i < N){
      C = A + B ;
      cout << C ;
    }
  cout << endl;
}

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

#include <bits/stdc++>
using namespace std
  
  int main() {
int N, A, B, C;
  A = 2;
  B = 1;
  i = 0
    while(i < N){
      cout << C = A + B << endl;
      
    }
}

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

#include <bits/stdc++>
using namespace std
  
  int main() {
int N, A, B, C;
  A = 2;
  B = 1;
  i = 0
    while(i < N){
      C = A + B;
      
    }
}
  

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

#include <bits/stdc++>
using namespace std
  
  int main() {
int N, A, B, C;
  A = 2;
  B = 1;
  i = 0
    while(i < N){
      i = A + B;
    }
}
  

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: expected ';' before '}' token
    9 |         if (n==0){cout<<2; return 0}
      |                                    ^
      |                                    ;
a.cc:10:41: error: expected ';' before '}' token
   10 |         else if (n==1){cout<<1; return 0}
      |                                         ^
      |                                         ;
Language: C++

#include<iostream>
using namespace std;
int f[200],n;
int main()
{
	cin >> n;
	f[0]=2;
	f[1]=1;
	for (int 3 =1; i<= n; i ++)
	{
		f[i]=f[i-1]+f[i-2];
	}
	cout<<f[n];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected unqualified-id before numeric constant
    9 |         for (int 3 =1; i<= n; i ++)
      |                  ^
a.cc:9:17: error: expected ';' before numeric constant
    9 |         for (int 3 =1; i<= n; i ++)
      |                 ^~
      |                 ;
a.cc:9:18: error: lvalue required as left operand of assignment
    9 |         for (int 3 =1; i<= n; i ++)
      |                  ^
a.cc:9:24: error: 'i' was not declared in this scope
    9 |         for (int 3 =1; i<= n; i ++)
      |                        ^
a.cc:9:29: error: expected ')' before ';' token
    9 |         for (int 3 =1; i<= n; i ++)
      |             ~               ^
      |                             )
a.cc:9:31: error: 'i' was not declared in this scope
    9 |         for (int 3 =1; i<= n; i ++)
      |                               ^
Language: C++

#include<iosteam>
using namespace std;
int f[200],n;
int main()
{
    cin >> n;
    f[0]=2;
    f[1]=1;
    for (int 3 =1;i<= n;i ++)
    {
        f[i]=f[i-1]+f[i-2];
    }
    cout<<f[n];
}

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

#include<iosteam>
using namespace std;
int f[200],n;
int main()
{
    cin >> n;
    f[1]=0;
    f[2]=1;
    for (int 3 =1;i<= n;i ++)
    {
        f[i]=f[i-1]+f[i-2];
    }
    cout<<f[n];
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: redeclaration of 'int A'
    5 |   int N,A(0),A(1);
      |              ^
a.cc:5:9: note: 'int A' previously declared here
    5 |   int N,A(0),A(1);
      |         ^
a.cc:7:4: error: 'A' cannot be used as a function
    7 |   A(0) = 2;
      |   ~^~~
a.cc:8:4: error: 'A' cannot be used as a function
    8 |   A(1) = 1;
      |   ~^~~
a.cc:10:14: error: redeclaration of 'int A'
   10 |     int A(i),A(i-1),A(i-2);
      |              ^
a.cc:10:9: note: 'int A' previously declared here
   10 |     int A(i),A(i-1),A(i-2);
      |         ^
a.cc:10:21: error: redeclaration of 'int A'
   10 |     int A(i),A(i-1),A(i-2);
      |                     ^
a.cc:10:9: note: 'int A' previously declared here
   10 |     int A(i),A(i-1),A(i-2);
      |         ^
a.cc:11:6: error: 'A' cannot be used as a function
   11 |     A(i)=A(i-1)+A(i-2);
      |     ~^~~
a.cc:11:11: error: 'A' cannot be used as a function
   11 |     A(i)=A(i-1)+A(i-2);
      |          ~^~~~~
a.cc:11:18: error: 'A' cannot be used as a function
   11 |     A(i)=A(i-1)+A(i-2);
      |                 ~^~~~~
a.cc:13:12: error: 'A' cannot be used as a function
   13 |   cout << A(N-1);
      |           ~^~~~~
Language: C++

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

int main() {
  int p=2, n=1, f, i_max;
  cin >> i_max;
  if (i_max == 0) {cout << 2;return;}
  if (i_max == 1) {cout << 1;return;}
  for (int i=2;i<i_max;i++) {
    f = p + n;
    p = n;
    n = f;
  }
  cout << n;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: return-statement with no value, in function returning 'int' [-fpermissive]
    7 |   if (i_max == 0) {cout << 2;return;}
      |                              ^~~~~~
a.cc:8:30: error: return-statement with no value, in function returning 'int' [-fpermissive]
    8 |   if (i_max == 1) {cout << 1;return;}
      |                              ^~~~~~
Language: C++

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

int main() {
  int N,i,L[<87>];cin >> N;
  L[0] = 2;L[1] = 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:5:13: error: expected primary-expression before '<' token
    5 |   int N,i,L[<87>];cin >> N;
      |             ^
a.cc:5:17: error: expected primary-expression before ']' token
    5 |   int N,i,L[<87>];cin >> N;
      |                 ^
a.cc:6:3: error: 'L' was not declared in this scope
    6 |   L[0] = 2;L[1] = 1;
      |   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   13 |     return 0；
      |            ^~~
a.cc:13:15: error: expected ';' before '}' token
   13 |     return 0；
      |               ^
      |               ;
   14 | }
      | ~
Language: C++

#include <cstdio>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <queue>
#include <iomanip>
#include <vector>
#include <string>
using namespace std;
const int N=100005;
long long f[N];
int main ()
{
	int n;
	scanf("%d",&n);
	f[0]=2,f[1]=1;
	for(int i=2;i<=n;i++)
	    f[i]=f[i-1]+f[i-2];
	printf("%lld\n",f[n]);
	return 0;
}
#include <cstdio>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <queue>
#include <iomanip>
#include <vector>
#include <string>
using namespace std;
const int N=100005;
long long f[N];
int main ()
{
	int n;
	scanf("%d",&n);
	f[0]=2,f[1]=1;
	for(int i=2;i<=n;i++)
	    f[i]=f[i-1]+f[i-2];
	printf("%lld\n",f[n]);
	return 0;
}


Compiler output:
a.cc:35:11: error: redefinition of 'const int N'
   35 | const int N=100005;
      |           ^
a.cc:12:11: note: 'const int N' previously defined here
   12 | const int N=100005;
      |           ^
a.cc:36:11: error: redefinition of 'long long int f [100005]'
   36 | long long f[N];
      |           ^
a.cc:13:11: note: 'long long int f [100005]' previously declared here
   13 | long long f[N];
      |           ^
a.cc:37:5: error: redefinition of 'int main()'
   37 | int main ()
      |     ^~~~
a.cc:14:5: note: 'int main()' previously defined here
   14 | int main ()
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'f'
    8 |     f[0]=2
      |           ^
      |           ;
    9 |     f[1]=1;
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected '}' at end of input
   12 |     cout<<f[n]<<endl;
      |                      ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n, l0, l1;
  cin >> n, ans;
  la = 2;
  lb = 1;
  for (int i = 0; i < n; i++) {
    ans = la + lb;
    la = ans;
  }
  cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   cin >> n, ans;
      |             ^~~
      |             abs
a.cc:7:3: error: 'la' was not declared in this scope; did you mean 'l1'?
    7 |   la = 2;
      |   ^~
      |   l1
a.cc:8:3: error: 'lb' was not declared in this scope; did you mean 'l1'?
    8 |   lb = 1;
      |   ^~
      |   l1
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 ans = 0;
int before = 1;
int before2 = 2;
  for(int i = 2;i <= N;i++){
	  ans = before + before2;
	  before2 = before;
	  before = ans;
  }
  if(N==0)System.out.println("2");
  else if(N==1)System.out.println("1")
  else System.out.println(ans);
}}

Compiler output:
Main.java:15: error: ';' expected
  else if(N==1)System.out.println("1")
                                      ^
1 error
Language: Java

import java.util.*;

public class ABC089A {
	static long memo[] = new long[90];

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		System.out.println(lucas(N));
	}

	private static long lucas(int i) {
		if (i == 0) return 2;
		else if (i == 1) return 1;
		else return memo[i] = (memo[i] != 0 ? memo[i] : lucas(i-1) + lucas(i-2));
	}
}

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

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

int main() {
	int N;
	cin >> N;
	int64_t L[2] = {2, 1}; // 1個目の方に偶数を、2個目の方に奇数を入れていくよ
	for (int i = 2;i <= N;i ++) {
		L[i % 2] = L[0] + L[1]; // 漸化式通りの計算を行うよ
	}
	cout << L[N % 2];
	return 0;
}
/*
31536000のコメント解説欄
ここテンプレで用意してるから、A問題とかだとこの先空欄の危険あり

とりあえず、10^18<=2^60より小さいと保証されているときは64bitの整数型を用いようね
自分はint64_t派だけど別にlong long intで良いと思うよ(C99なんて古いバージョン使ってるなら別)

次。見れば分かるようにリュカ数は漸化式で定義されているね
この形は必ずメモ化再帰や動的計画法を用いることができるよ
つまり、L3、L4と順にfor文とかで回しながら値を求めれば良いの

今回のソースコードのように、n項前までしか参照しない時はn個の要素を持つ配列だけでやりくりすることもできるよ
*/

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

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string.h>
typedef long long ll;
#define MAX(x, y)	(((x) > (y))? (x) : (y))
#define MIN(x, y)	(((x) < (y))? (x) : (y))
#define ABS(x)		(((x) < 0)? (-1*(x)) : (x))
#define REPI(x,y)	for (int i=(x);i<(y);i++)
#define REPJ(x,y)	for (int j=(x);j<(y);j++)
#define MEMCLR(X)	memset((X),0,sizeof((X)))

using namespace std;
typedef pair<int, int> Point;
typedef vector<vector<Point>> Graph;

int i,j,N;
int dp[100];

int main() {
	
	dp[0] = 2;
	dp[1] = 1
	REPI(2,87) {
		dp[i] = dp[i-1] + dp[i-2];
	}
	
	cin >> N;	
	cout << dp[N];
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected ';' before 'for'
   24 |         dp[1] = 1
      |                  ^
      |                  ;
a.cc:10:49: error: expected ';' before ')' token
   10 | #define REPI(x,y)       for (int i=(x);i<(y);i++)
      |                                                 ^
a.cc:25:9: note: in expansion of macro 'REPI'
   25 |         REPI(2,87) {
      |         ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string.h>
typedef long long ll;
#define MAX(x, y)	(((x) > (y))? (x) : (y))
#define MIN(x, y)	(((x) < (y))? (x) : (y))
#define ABS(x)		(((x) < 0)? (-1*(x)) : (x))
#define REPI(x,y)	for (int i=(x);i<(y);i++)
#define REPJ(x,y)	for (int j=(x);j<(y);j++)
#define MEMCLR(X)	memset((X),0,sizeof((X)))

using namespace std;
typedef pair<int, int> Point;
typedef vector<vector<Point>> Graph;

int i,j,N;
dp[100];

int main() {
	
	dp[0] = 2;
	dp[1] = 1
	REPI(2,87) {
		dp[i] = dp[i-1] + dp[i-2];
	}
	
	cin >> N;	
	cout << dp[N];
	
	return 0;
}


Compiler output:
a.cc:19:1: error: 'dp' does not name a type
   19 | dp[100];
      | ^~
a.cc: In function 'int main()':
a.cc:23:9: error: 'dp' was not declared in this scope
   23 |         dp[0] = 2;
      |         ^~
a.cc:10:49: error: expected ';' before ')' token
   10 | #define REPI(x,y)       for (int i=(x);i<(y);i++)
      |                                                 ^
a.cc:25:9: note: in expansion of macro 'REPI'
   25 |         REPI(2,87) {
      |         ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string.h>
typedef long long ll;
#define MAX(x, y)	(((x) > (y))? (x) : (y))
#define MIN(x, y)	(((x) < (y))? (x) : (y))
#define ABS(x)		(((x) < 0)? (-1*(x)) : (x))
#define REPI(x,y)	for (int i=(x);i<(y);i++)
#define REPJ(x,y)	for (int j=(x);j<(y);j++)
#define MEMCLR(X)	memset((X),0,sizeof((X)))

using namespace std;
typedef pair<int, int> Point;
typedef vector<vector<Point>> Graph;

int i,j,N;
string s;

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

int main() {
	
	cin >> N;
	cout << rec(N);
	
	return 0;
}


Compiler output:
a.cc:21:11: error: 'n' was not declared in this scope
   21 | int rec ( n ) {
      |           ^
a.cc: In function 'int main()':
a.cc:30:20: error: 'rec' cannot be used as a function
   30 |         cout << rec(N);
      |                 ~~~^~~
Language: Java

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


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from long to int
        a=new long[N];
                   ^
Main.java:12: error: incompatible types: possible lossy conversion from long to int
            a[i]=a[i-1]+a[i-2];
              ^
Main.java:12: error: incompatible types: possible lossy conversion from long to int
            a[i]=a[i-1]+a[i-2];
                    ^
Main.java:12: error: incompatible types: possible lossy conversion from long to int
            a[i]=a[i-1]+a[i-2];
                           ^
Main.java:14: error: incompatible types: possible lossy conversion from long to int
                System.out.println(a[i]+a[i-1]);
                                     ^
Main.java:14: error: incompatible types: possible lossy conversion from long to int
                System.out.println(a[i]+a[i-1]);
                                           ^
6 errors
Language: Java

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


    }
}


Compiler output:
Main.java:14: error: package Sytem does not exist
                Sytem.out.println(a[i]);
                     ^
1 error
Language: C++

#include<iostream>
#include<algorithm>
 
using namespace std;
typedef long long Int;
#define INF (1LL<<60)

Int N;
Int res[900];


Int solve(int x){
	res[x] = res[x-1] + res[x-2];
	x+=1;
	if (x-1==N) return res[x-1];
    else return solve(x);
}

int main(){
	cin.tie(0);
    ios::sync_with_stdio(false);

	cin >> N;
	res[0]=2;
	res[1]=1;
	for (i=2;i<=N;i++)res[i]=res[i-1]+res[i-2];
	cout<<res[N]<<endl;
	return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

using int64 = long long;

int main()
{
  int64 dp[100];
  dp[0] = 2;
  dp[1] = 1;
  for(int i = 2; i < 100; i++) {
    dp[i] = dp[i - 1] + dp[i - 2];
  }
  int N;
  cin >> N;
  cuot << dp[N] << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: 'cuot' was not declared in this scope
   17 |   cuot << dp[N] << endl;
      |   ^~~~
Language: C++


#include <cstdlib>

using namespace std;

int N;
unsigned long long int L[87];


unsigned long long int calc(int x) 
{
	return L[x] ? L[x] : L[x] = calc(x - 1) + calc(x - 2);
}

void solve()
{
	L[0] = 2;
	L[1] = 1;
	cout << calc(N) << endl;
}


int main()
{
	cin >> N;
	solve();
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << calc(N) << endl;
      |         ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <cstdlib>
  +++ |+#include <iostream>
    3 | 
a.cc:19:28: error: 'endl' was not declared in this scope
   19 |         cout << calc(N) << endl;
      |                            ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <cstdlib>
  +++ |+#include <ostream>
    3 | 
a.cc: In function 'int main()':
a.cc:25:9: error: 'cin' was not declared in this scope
   25 |         cin >> N;
      |         ^~~
a.cc:25:9: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

# include <bits/stdc++.h>

struct Matrix  {
	long long a [2] [2] ;
	Matrix ( )  {  memset ( a, 0, sizeof a ) ;	}
	inline int* operator [] ( const int& u )  {
		return a [u] ;
	}
	inline Matrix operator * ( Matrix b )  const  {
		Matrix c ;
		for ( int i = 0 ; i < 2 ; ++ i )
			for ( int k = 0 ; k < 2 ; ++ k )
				if ( a [i] [k] )  {
					for ( int j = 0 ; j < 2 ; ++ j )
						c [i] [j] += a [i] [k] * b [k] [j] ;
				}
		return c ;
	}
	void reset ( )  {
		a [0] [0] = a [1] [1] = 1 ;
	}
	void set ( )  {
		a [0] [0] = 2, a [0] [1] = 1 ;
	}
} base, a, t ;

inline Matrix mpow ( Matrix a, int x )  {
	Matrix rt = base ;
	for ( ; x ; x >>= 1, a = a * a )
		if ( x & 1 )  {
			rt = rt * a ;
		}
	return rt ;
}

int main ( )  {
	a.set ( ) ;
	base.reset ( ) ;
	t [0] [0] = 0, t [0] [1] = 1, t [1] [0] = 1, t [1] [1] = 1 ;
	int n ;
	scanf ( "%d", & n ) ;
	return ! printf ( "%lld\n", ( a * mpow ( t, n ) ) [0] [0] ) ;
}


Compiler output:
a.cc: In member function 'int* Matrix::operator[](const int&)':
a.cc:7:28: error: cannot convert 'long long int*' to 'int*' in return
    7 |                 return a [u] ;
      |                        ~~~~^
      |                            |
      |                            long long int*
Language: C++

# include <bits/stdc++.h>

struct Matrix  {
	long long a [2] [2] ;
	Matrix ( )  {  memset ( a, 0, sizeof a ) ;	}
	inline int* operator [] ( const int& u )  {
		return a [u] ;
	}
	inline Matrix operator * ( Matrix b )  const  {
		Matrix c ;
		for ( int i = 0 ; i < 2 ; ++ i )
			for ( int k = 0 ; k < 2 ; ++ k )
				if ( a [i] [k] )  {
					for ( int j = 0 ; j < 2 ; ++ j )
						c [i] [j] += a [i] [k] * b [k] [j] ;
				}


Compiler output:
a.cc:16:34: error: expected '}' at end of input
   16 |                                 }
      |                                  ^
a.cc:3:16: note: to match this '{'
    3 | struct Matrix  {
      |                ^
a.cc: In member function 'int* Matrix::operator[](const int&)':
a.cc:7:28: error: cannot convert 'long long int*' to 'int*' in return
    7 |                 return a [u] ;
      |                        ~~~~^
      |                            |
      |                            long long int*
a.cc: In member function 'Matrix Matrix::operator*(Matrix) const':
a.cc:16:34: error: expected '}' at end of input
   16 |                                 }
      |                                  ^
a.cc:9:55: note: to match this '{'
    9 |         inline Matrix operator * ( Matrix b )  const  {
      |                                                       ^
a.cc:16:34: warning: no return statement in function returning non-void [-Wreturn-type]
   16 |                                 }
      |                                  ^
a.cc: At global scope:
a.cc:16:34: error: expected unqualified-id at end of input
Language: C

#include "stdio.h"
int main()
{
	int N;
	scanf("%d", &N);
	printf("%lld\n", lucas(N));
	return 0;
}

long long lucas(int i) {
	if(i==0) return 2LL; if(i==1) return 1LL;
	long long a = 2, b = 1, c = 3;
	for(int j = 2; i <= i; j++) {
		c = c + b;
		b = a + b;
		a = c - b;
	}
	return c;
}

Compiler output:
main.c: In function 'main':
main.c:6:26: error: implicit declaration of function 'lucas' [-Wimplicit-function-declaration]
    6 |         printf("%lld\n", lucas(N));
      |                          ^~~~~
main.c: At top level:
main.c:10:11: error: conflicting types for 'lucas'; have 'long long int(int)'
   10 | long long lucas(int i) {
      |           ^~~~~
main.c:6:26: note: previous implicit declaration of 'lucas' with type 'int()'
    6 |         printf("%lld\n", lucas(N));
      |                          ^~~~~
Language: C

#include <stdio.h>
int lucas(int);

int main(){
  int input;
  scanf("%d", &input)
  printf("%d", lucas(input));
  return 0;
}

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

Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected ';' before 'printf'
    6 |   scanf("%d", &input)
      |                      ^
      |                      ;
    7 |   printf("%d", lucas(input));
      |   ~~~~~~
Language: C

#include <stdio.h>

int main(){
 int N, n, i;
 unsigned long a[3];
 a[0] = 2;
 a[1] = 1;

 scanf("%d",&N);
 for(i=0; i<N-1;i++){
  n = i % 3;
  a[(n+2)%3] = a[n] + a[(n+1)%3];
  //printf("%3d:%ld\n",i+3,a[(n+2)%3]);
 }
 if(N==1){
  printf("1");
 }else if(){
  printf("2");
 }else{
  printf("%ld",a[(n+2)%3]);
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:11: error: expected expression before ')' token
   17 |  }else if(){
      |           ^
Language: Java

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;

public class Test extends Thread {
	static Scanner sc=new Scanner(System.in);

	public static void main(String[] args) throws Exception {
		int k=sc.nextInt();
		if(k==0) System.out.println(2);
		if(k==1) System.out.println(2);
		int a=2,b=1;
		
		for(int i=2;i<=k;i++){
			int tmp=a+b;
			a=b;
			b=tmp;
		}
		System.out.println(b);
	}

	
}

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

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;

public class Test extends Thread {
	static Scanner sc=new Scanner(System.in);

	public static void main(String[] args) throws Exception {
		int k=sc.nextInt();
		if(k==0) System.out.println(2);
		if(k==1) System.out.println(2);
		int a=2,b=1;
		
		for(int i=2;i<=k;i++){
			int tmp=a+b;
			a=b;
			b=tmp;
		}
		System.out.println(b);
	}

	
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.HashSet;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.Set;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.concurrent.BlockingQueue;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.concurrent.LinkedBlockingDeque;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: expected unqualified-id before 'public'
    7 | public class Test extends Thread {
      | ^~~~~~
Language: C++

#include <iostream>
#define int long long

signed main() {
	int n;
	int l[114];
	
	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;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> n;
      |         ^~~
      |         std::cin
In file included 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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << l[n] << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         cout << l[n] << endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int N;
  cin >> N;
  if(N==1)
    {
      cout<<1;
      return 0;
    }
  else
    {
      int *A[N+1];
      A[0]=2
      for(i==0;i++;i<N+1)
	{
	  if(i==0)
	    {
	      A[i+1]=A[i]+2
	    }

	  else
	    {
	      A[i+1]=A[i]+A[i-1]
	    }
	}
      cout<<A[N];
      return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   15 |       A[0]=2
      |            ^
      |            |
      |            int
a.cc:15:13: error: expected ';' before 'for'
   15 |       A[0]=2
      |             ^
      |             ;
   16 |       for(i==0;i++;i<N+1)
      |       ~~~    
a.cc:16:16: error: 'i' was not declared in this scope
   16 |       for(i==0;i++;i<N+1)
      |                ^
Language: C

#include <stdio.h>
int main(void) {
  int n;
  scanf("%d",&n);
  int a = 2;
  int b = 1;
  for(int i = 0,i < n-2;i++){
    int nxt = a + b;
    a = b;
    b = nxt;
  }
  printf("%d",b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 |   for(int i = 0,i < n-2;i++){
      |                   ^
main.c:7:28: error: expected ';' before ')' token
    7 |   for(int i = 0,i < n-2;i++){
      |                            ^
      |                            ;
Language: C

#include <stdio.h>

int N;
long int x;

int main()
{

	long int Li = 0;
	long int Li1 = 1;
	long int Li2 = 2;
	
	

	scanf_s("%d", &N);

	if (N==1)
		printf("%d", 1);

	for (int i = 2; i <= N;i++)
	{

		if (N <= 86) {
			Li = Li1 + Li2;
			x = Li1;
			Li1 = Li;
			Li2 = x;
		}
	}

	printf("%ld", Li);

	getchar(); getchar();
	return 0;

}


Compiler output:
main.c: In function 'main':
main.c:15:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   15 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>

int main(){
  int n,a,b,ans;
  scanf("%d",&n);
  
  a=2;
  b=1;
  for(i=0;i<n-1;i++){
    ans=a+b;
    a=b;
    b=ans;
  }

  if(n==1){
    printf("%d\n",1);
  }else{
    printf("%d\n",ans);
  }
}

Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'i' undeclared (first use in this function)
    9 |   for(i=0;i<n-1;i++){
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio>

int main(){
  int n;
  scanf("%d",&n);
  int L[n+1];
  L[0]=2;
  L[1]=1;
  for(int i=2;i<n+1;i++){
    L[i]=L[i-1]+L[i-2];
  }
  printf("%d",L[n]);
}

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

#include <cstdio>
int main(){
    int n;
    scanf("%d", &n);
    if (n == 0){printf("2\n"); return 0;}
    if (n == 1){printf("1\n"); return 0;}
    long long t1 = 2, t2 = 1, temp;
    for (int i = 2; i <= n; i++){
        temp = t1 + t2, t1 = t2, t2 = temp;
    }
    printf("%lld\n", temp);
    return 0;
}


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

import java.util.Scanner;

public class LucasNumber {
	public static long calcLucasNumber(int n) {
		if (n <= 1) {
			switch (n) {
			case 0:
				return 2;
			case 1:
				return 1;
			}
		} else if (n >= 2) {
			long lucasNumber[] = { 2, 1, 0 };
			for (int i = 2; i <= n; i++) {
				lucasNumber[2] = lucasNumber[0] + lucasNumber[1];
				lucasNumber[0] = lucasNumber[1];
				lucasNumber[1] = lucasNumber[2];
			}
			return lucasNumber[2];
		}
		return -1;
	}
}

class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int number = scan.nextInt();
		long lucasNumber=LucasNumber.calcLucasNumber(number);
		if(lucasNumber!=1) {
			System.out.println(lucasNumber);
		} else {
			System.out.println("Invalid value N");
		}
	}
}

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

#include<cstdio>
#include<cmath>
typedef long long ll;
int main() {
	int n,i;
	ll L[90];
	scanf("%d",&n);
	L[0] = 2;
	L[1] = 1;
	for(i = 2;i <= n; i++)
	{
		L[i] = L[i -1] + L[i - 2];
	}
	printf("%lld",L[i]);
return 0;
}
#include<cstdio>
#include<cmath>
typedef long long ll;
int main() {
	int n,i;
	ll L[90];
	scanf("%d",&n);
	L[0] = 2;
	L[1] = 1;
	for(i = 2;i <= n; i++)
	{
		L[i] = L[i -1] + L[i - 2];
	}
	printf("%lld",L[i]);
return 0;
}

Compiler output:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

#include<cstdio>
int LL(long long ans);
int main() {
	int n; 
	long long i,ans,x;
	scanf("%d",&n);
	for(i = 0; i<= n; i++)
	{
	x = LL(ans);
	printf("%lld",x);
	return 0;
	}
int LL(long long ans)
{
	if(i == 0)
	{
	ans = i + 2;
	return ans;
	}
	if(i == 1)
	{
	ans = i;
	return ans;
	}
	if(i >= 2)
	{
	ans = LL(i - 1) + LL(i - 2);
	return ans;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: a function-definition is not allowed here before '{' token
   14 | {
      | ^
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<string>
using namespace std;
long getLucasNum(int n);
int num;
long long L[87];
int main() {
	scanf_s("%d", &num);
	L[0] = 2LL; 
	L[1] = 1LL;
	for (int i = 2; i <= 86; i++) {
		L[i] = L[i - 1] + L[i - 2];
	}
	printf("%lld", L[num]);
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%d", &num);
      |         ^~~~~~~
      |         scanf