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

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

int64_t lyuka(int &i){
if(i==1){
    return 1;


}
if(i==0){
    return 2;
}



return lyuka(i-1)+lyuka(i-2);;


}
  
int main() {
 
int N;
cin>>N;
int ans=lyuka(N);
 cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int64_t lyuka(int&)':
a.cc:16:15: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
   16 | return lyuka(i-1)+lyuka(i-2);;
      |              ~^~
a.cc:4:20: note:   initializing argument 1 of 'int64_t lyuka(int&)'
    4 | int64_t lyuka(int &i){
      |               ~~~~~^
a.cc:16:26: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
   16 | return lyuka(i-1)+lyuka(i-2);;
      |                         ~^~
a.cc:4:20: note:   initializing argument 1 of 'int64_t lyuka(int&)'
    4 | int64_t lyuka(int &i){
      |               ~~~~~^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long
 
int main() {
  int n;
  cin >> n;
  //初期値, 3変数の設定
  ll Li2 = 2;
  ll Li1 = 1;
  ll Li;
  
  for (int i = 2; i <= n; i++) {
    //Liの計算
    Li = Li1 + Li2;
    //次ステップの為に値を更新
    Li2 = Li1;
    Li1 = Li;
  }
  cout << Li1 << endl;
}

Compiler output:
a.cc:5:4: error: expected ';' before 'main'
    5 | int main() {
      |    ^~~~~
      |    ;
Language: C++

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

int main() {
  int n;
  cin >> n;
  //初期値, 3変数の設定
  int Li-2 = 2;
  int Li-1 = 1;
  int Li;
  
  for (int i = 2; j <= n; j++) {
    //Liの計算
    Li = Li-1 + Li-2;
    //次ステップの為に値を更新
    Li-2 = Li-1;
    Li-1 = Li;
  }
  cout << Li << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before '-' token
    8 |   int Li-2 = 2;
      |         ^
a.cc:9:9: error: expected initializer before '-' token
    9 |   int Li-1 = 1;
      |         ^
a.cc:12:19: error: 'j' was not declared in this scope
   12 |   for (int i = 2; j <= n; j++) {
      |                   ^
a.cc:16:7: error: lvalue required as left operand of assignment
   16 |     Li-2 = Li-1;
      |     ~~^~
a.cc:17:7: error: lvalue required as left operand of assignment
   17 |     Li-1 = Li;
      |     ~~^~
Language: C++

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

int512_t L(int N){
  if(N==0){
    return 2;
  }
  else if (N==1){
    return 1;
  }
  else {
    return L(N-1)+L(N-2);
  }
}

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


Compiler output:
a.cc:4:1: error: 'int512_t' does not name a type; did you mean 'int32_t'?
    4 | int512_t L(int N){
      | ^~~~~~~~
      | int32_t
a.cc: In function 'int main()':
a.cc:18:9: error: 'L' was not declared in this scope
   18 |   cout<<L(N)<<endl;
      |         ^
Language: C++

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

int long long L(int N){
  if(N==1){
    return 2;
  }
  else if (N==2){
    return 1;
  }
  else {
    return L(N-1)+L(N-2);
  }

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


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: lvalue required as left operand of assignment
   14 |   if(N = 1 || N = 2){
      |          ~~^~~~
a.cc:18:7: error: 'i' was not declared in this scope
   18 |   for(i = 0; i < N-1; i++){
      |       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: request for member 'at' in 'l', which is of non-class type 'long long int [100]'
   12 |   cout<<l.at(n)<<endl;
      |           ^~
Language: C++

#include<iostream>
#include<vector>
#include<cmath>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int

struct Union{
  vector<ll> par;
  Union(ll a){
  par=vector<ll>(a,-1);
  }
  ll find(ll a){
    if(par[a]<0){
      return a;
    }
    else{
      return par[a]=find(par[a]);
    }
  }
  bool same(ll a,ll b){
    return (find(a)==find(b));
  }
  ll size(ll a){
    return -par[find(a)];
  }
  void unite(ll a,ll b){
    ll c=find(a),d=find(b);
    if(c==d)
      return;
    if(size(c)<size(d)){
      swap(c,d);
    }
    par[c]+=par[d];
    par[d]=c;
  }
};
ll Nagaemon1;
void swap(ll i,ll j){
  Nagaemon1=i;
  i=j;
  j=Nagaemon1;
}
int main(){
  ll n;
  cin >> n;
  ll a[100];
  a[0]=2;
  a[1]=1;
  for(i=2;i<100;i++){
    a[i]=a[i-1]+a[i-2];
  }
  cout << a[n];
}

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

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<long long> luca(N+1);
      |   ^~~~~~
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:10: error: expected primary-expression before 'long'
    7 |   vector<long long> luca(N+1);
      |          ^~~~
a.cc:8:3: error: 'luca' was not declared in this scope
    8 |   luca[0]=2; lica[1]=1;
      |   ^~~~
a.cc:8:14: error: 'lica' was not declared in this scope
    8 |   luca[0]=2; lica[1]=1;
      |              ^~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<ll> luca(N+1);
      |   ^~~~~~
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:10: error: 'll' was not declared in this scope
    7 |   vector<ll> luca(N+1);
      |          ^~
a.cc:7:14: error: 'luca' was not declared in this scope
    7 |   vector<ll> luca(N+1);
      |              ^~~~
a.cc:8:14: error: 'lica' was not declared in this scope
    8 |   luca[0]=2; lica[1]=1;
      |              ^~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int N; 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:6:3: error: 'vector' was not declared in this scope
    6 |   vector<ll> luca(N+1);
      |   ^~~~~~
a.cc:6:10: error: 'll' was not declared in this scope
    6 |   vector<ll> luca(N+1);
      |          ^~
a.cc:6:14: error: 'luca' was not declared in this scope
    6 |   vector<ll> luca(N+1);
      |              ^~~~
a.cc:7:14: error: 'lica' was not declared in this scope
    7 |   luca[0]=2; lica[1]=1;
      |              ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout<<luca[N]<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout<<luca[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 <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for(int i = (s); i < (int)(n); i++)


int main(){
    int n; cin >> n;
    vctor<int64_t> l(87);
    l.at(0) = 2LL;
    l.at(1) = 1LL;
    rep2(i, 2, n + 1)l.at(i) = l.at(i-2) + l.at(i-1);
    cout << l.at(n) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'vctor' was not declared in this scope
    9 |     vctor<int64_t> l(87);
      |     ^~~~~
a.cc:9:18: error: expected primary-expression before '>' token
    9 |     vctor<int64_t> l(87);
      |                  ^
a.cc:9:20: error: 'l' was not declared in this scope
    9 |     vctor<int64_t> l(87);
      |                    ^
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'uint64_5' was not declared in this scope; did you mean 'uint64_t'?
    8 |   vector<uint64_5> L(87);
      |          ^~~~~~~~
      |          uint64_t
a.cc:8:18: error: template argument 1 is invalid
    8 |   vector<uint64_5> L(87);
      |                  ^
a.cc:8:18: error: template argument 2 is invalid
a.cc:9:5: error: request for member 'at' in 'L', which is of non-class type 'int'
    9 |   L.at(0)=2;
      |     ^~
a.cc:10:5: error: request for member 'at' in 'L', which is of non-class type 'int'
   10 |   L.at(1)=1;
      |     ^~
a.cc:12:7: error: request for member 'at' in 'L', which is of non-class type 'int'
   12 |     L.at(i) = L.at(i-1)+L.at(i-2);
      |       ^~
a.cc:12:17: error: request for member 'at' in 'L', which is of non-class type 'int'
   12 |     L.at(i) = L.at(i-1)+L.at(i-2);
      |                 ^~
a.cc:12:27: error: request for member 'at' in 'L', which is of non-class type 'int'
   12 |     L.at(i) = L.at(i-1)+L.at(i-2);
      |                           ^~
a.cc:14:11: error: request for member 'at' in 'L', which is of non-class type 'int'
   14 |   cout<<L.at(k)<<endl;
      |           ^~
Language: C++

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

uint64_t luka(int k){
  if(k==0) {return (unit64_t) 2;}
  else if(k==1) {return (unit64_t) 1;}
  else return luka(k-1)+luka(k-2);

}

int main(){
  int k;
  cin>> k;
  cout<<luka(k)<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'uint64_t luka(int)':
a.cc:5:21: error: 'unit64_t' was not declared in this scope; did you mean 'uint64_t'?
    5 |   if(k==0) {return (unit64_t) 2;}
      |                     ^~~~~~~~
      |                     uint64_t
a.cc:5:30: error: expected ';' before numeric constant
    5 |   if(k==0) {return (unit64_t) 2;}
      |                              ^~
      |                              ;
a.cc:6:26: error: 'unit64_t' was not declared in this scope; did you mean 'uint64_t'?
    6 |   else if(k==1) {return (unit64_t) 1;}
      |                          ^~~~~~~~
      |                          uint64_t
a.cc:6:35: error: expected ';' before numeric constant
    6 |   else if(k==1) {return (unit64_t) 1;}
      |                                   ^~
      |                                   ;
Language: C++

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

uint64_t luka(uint64_t k){
  if(k==0) return 2;
  else if(k=10) return 1;
  else return luka(k-1)+luka(k-2);

}

int main(){
  cin>> k;
  cout<<luka(k)<<endl;
  return 0;
}

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

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

uint64_t luka(uint64_t k){
  if(k==0) return 2;
  else if(k=10) return 1;
  else return luka(k-1)+luka(k-2)

}

int main(){
  cin>> k;
  cout<<luka(k)<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'uint64_t luka(uint64_t)':
a.cc:7:34: error: expected ';' before '}' token
    7 |   else return luka(k-1)+luka(k-2)
      |                                  ^
      |                                  ;
    8 | 
    9 | }
      | ~                                 
a.cc: In function 'int main()':
a.cc:12:9: error: 'k' was not declared in this scope
   12 |   cin>> k;
      |         ^
Language: C

#include <stdio.h>
int main(void)
{
    int N,l[87],i;
    scanf("%d",&N);
    l[0]=2;
    l[1]=1;
    for(i=2;i<=87;i++)
        l[i]=l[i-2]+l[i-1];
    printf("%d\n"l[N]);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ')' before 'l'
   10 |     printf("%d\n"l[N]);
      |           ~      ^
      |                  )
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected '}' before 'else'
   15 |   else {
      |   ^~~~
a.cc:13:17: note: to match this '{'
   13 |   else if (N==1){
      |                 ^
a.cc:22:4: error: expected '}' at end of input
   22 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

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

main(){long N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf("%d",L);}

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){long N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf("%d",L);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:1:28: error: 'cin' is not a member of 'std'
    1 | main(){long N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf("%d",L);}
      |                            ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | main(){long N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf("%d",L);}
a.cc:1:56: error: 'printf' was not declared in this scope
    1 | main(){long N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf("%d",L);}
      |                                                        ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main(){long N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf("%d",L);}
Language: C++

#include<iostream>
main(){long N,l=2,L=1;scanf(N);while(--N)l=(L+=l)-l;printf(L);}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){long N,l=2,L=1;scanf(N);while(--N)l=(L+=l)-l;printf(L);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:29: error: invalid conversion from 'long int' to 'const char*' [-fpermissive]
    2 | main(){long N,l=2,L=1;scanf(N);while(--N)l=(L+=l)-l;printf(L);}
      |                             ^
      |                             |
      |                             long int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:2:60: error: invalid conversion from 'long int' to 'const char*' [-fpermissive]
    2 | main(){long N,l=2,L=1;scanf(N);while(--N)l=(L+=l)-l;printf(L);}
      |                                                            ^
      |                                                            |
      |                                                            long int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>
main(){ll N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf(L);}
													

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){ll N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf(L);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:8: error: 'll' was not declared in this scope
    2 | main(){ll N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf(L);}
      |        ^~
a.cc:2:31: error: 'N' was not declared in this scope
    2 | main(){ll N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf(L);}
      |                               ^
a.cc:2:43: error: 'l' was not declared in this scope
    2 | main(){ll N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf(L);}
      |                                           ^
a.cc:2:46: error: 'L' was not declared in this scope
    2 | main(){ll N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf(L);}
      |                                              ^
a.cc:2:61: error: 'L' was not declared in this scope
    2 | main(){ll N,l=2,L=1;std::cin>>N;while(--N)l=(L+=l)-l;printf(L);}
      |                                                             ^
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: storage size of 'L' isn't known
    8 |   int64_t L[];
      |           ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> L;
  L.at(0) = 2:
  L.at(1) = 1;
  int sum = 0;
  for (int i = 0; i < N; i++) {
    sum = sum + L.at(i) + L.at(i + 1);
    L.push_back(sum);
  }
  cout << sum << endl;
    
}


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

#include <stdio.h>

int main()
{
	int N;
	scanf("%d", &N);
	
	long long L[87] = {2, 1};
	for (i = 2; i <= N; i++) L[i] = L[i-1] + L[i-2];
	printf("%lld\n", L[N]);
	fflush(stdout);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: 'i' undeclared (first use in this function)
    9 |         for (i = 2; i <= N; i++) L[i] = L[i-1] + L[i-2];
      |              ^
main.c:9:14: 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;
  cin >> N;
  long long x,y,z;
  x=2;
  y=1;
  
  if(N==1);
  cout << x << endl;
  
  else if(N ==2); 
  cout << y << endl;
  else {
    for(int i =0; i <N-2; i++){
      z= x+y;
      x=y;
      y=z;
    }
    cout << z << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if(N ==2);
      |   ^~~~
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  long long x,y,z;
  x=2;
  y=1;
  if(N==1);cout << x << endl;
  else if(N ==2); cout << y << endl;
  else {
    for(int i =0; i <N-2; i++){
      z= x+y;
      x=y;
      y=z;
    }
    cout << z << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if(N ==2); cout << y << endl;
      |   ^~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  long long x,y,z;
  x=2;
  y=1;
  if (N==1);cout << x << endl;
  else if(N ==2); cout << y << endl;
  else {
    for(int i =0; i <N-2; i++){
      z= x+y;
      x=y;
      y=z;
    }
    cout << z << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if(N ==2); cout << y << endl;
      |   ^~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  long long x,y,z;
  x=2;
  y=1;
  if (N=1);cout << x << endl;
  else if(N =2); cout << y << endl;
  else {
    for(int i =0; i <N-2; i++){
      z= x+y;
      x=y;
      y=z;
    }
    cout << z << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if(N =2); cout << y << endl;
      |   ^~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll x,y,z;
      |   ^~
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x=2;
      |   ^
a.cc:8:3: error: 'y' was not declared in this scope
    8 |   y=1;
      |   ^
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if(N =2); cout << y << endl;
      |   ^~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
a.cc:13:7: error: 'z' was not declared in this scope
   13 |       z= x+y;
      |       ^
a.cc:17:13: error: 'z' was not declared in this scope
   17 |     cout << z << endl;
      |             ^
Language: C++

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

int main() {
  int N; scanf("%d", &d);
  vector<int64_t> a(N);
  a[0]=2; a[1]=1;
  for (int i=2; i<=N; i++) a[i]=a[i-1]+a[i-2];
  printf("%ld", a[N]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: 'd' was not declared in this scope
    5 |   int N; scanf("%d", &d);
      |                       ^
Language: C++

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


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

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

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

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

int main() {
  int N,lucas;
  array<int64_t, 86> S = {};
  
  cin >> N;
  
  for(int i=0;i<N;i++){
    if(i==0)
      S[0]=1;
    if(i==1)
      s[1]=2;
    
    S[i+2]=S[i+1]+S[i];
  }
  
  
  
  cout << S[N] << endl;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected unqualified-id before '(' token
   11 |     S.at(i)=S.(i-1)+S.at(i-2);
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'uint_64' was not declared in this scope; did you mean 'rintf64'?
    8 |   vector<uint_64> v;
      |          ^~~~~~~
      |          rintf64
a.cc:8:17: error: template argument 1 is invalid
    8 |   vector<uint_64> v;
      |                 ^
a.cc:8:17: error: template argument 2 is invalid
a.cc:9:5: error: request for member 'at' in 'v', which is of non-class type 'int'
    9 |   v.at(0) =2;
      |     ^~
a.cc:10:5: error: request for member 'at' in 'v', which is of non-class type 'int'
   10 |   v.at(1)=1;
      |     ^~
a.cc:12:7: error: request for member 'at' in 'v', which is of non-class type 'int'
   12 |     v.at(i)= v.at(i-1)+v.at(i-2);
      |       ^~
a.cc:12:16: error: request for member 'at' in 'v', which is of non-class type 'int'
   12 |     v.at(i)= v.at(i-1)+v.at(i-2);
      |                ^~
a.cc:12:26: error: request for member 'at' in 'v', which is of non-class type 'int'
   12 |     v.at(i)= v.at(i-1)+v.at(i-2);
      |                          ^~
a.cc:15:13: error: request for member 'at' in 'v', which is of non-class type 'int'
   15 |   cout << v.at(n) << endl;
      |             ^~
Language: C++

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

int64_t Lucas_Number(int);  
 
int main(){
  int N;
  cin >> N;
  cout << Lucus_Number(N) << endl;
}
 
int64_t Lucas_Number(int N){
  vector<int64_t> 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);
  }
  
  return L.at(N);
}

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

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

int64_t Lucas_Number(int)  

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

int64_t Lucas_Number(int N){
  vector<int64_t> 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);
  }
  
  return L.at(N);
}

Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main(){
      | ^~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int64_t luca(int)':
a.cc:13:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main(){
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main(){
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:13:11: error: a function-definition is not allowed here before '{' token
   13 | int main(){
      |           ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:20: note: to match this '{'
    4 | int64_t luca(int N){
      |                    ^
a.cc:19:2: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      |  ^
Language: C++

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

int main() {
  int64_t N;
  cin >> N;
  if(M==1)
  {
    cout << 1;
  	return 0;
  }
  int64_t Ln=0;
  int64_t Ln_1=1;
  int64_t Ln_2=2;
  for (int i=0; i<M-1; i++)
  {
    if(i!=0)
    {
    Ln_2=Ln_1;
    Ln_1=Ln;
    }
    Ln=Ln_1+Ln_2;
  }
  cout << Ln <<endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'M' was not declared in this scope
    7 |   if(M==1)
      |      ^
a.cc:15:19: error: 'M' was not declared in this scope
   15 |   for (int i=0; i<M-1; i++)
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int64_t lucas(int &x){
    if(x==0) return 2;
    if(x==1) return 1;
   return lucas(x-1)+lucas(x-2);
  }

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


Compiler output:
a.cc: In function 'int64_t lucas(int&)':
a.cc:6:18: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    6 |    return lucas(x-1)+lucas(x-2);
      |                 ~^~
a.cc:3:22: note:   initializing argument 1 of 'int64_t lucas(int&)'
    3 |   int64_t lucas(int &x){
      |                 ~~~~~^
a.cc:6:29: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    6 |    return lucas(x-1)+lucas(x-2);
      |                            ~^~
a.cc:3:22: note:   initializing argument 1 of 'int64_t lucas(int&)'
    3 |   int64_t lucas(int &x){
      |                 ~~~~~^
Language: C++

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


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


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

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

#define ll long long

int main() {
  int N;
  cin >> N;
  
  vector<ll> lucas(N+2, 0);
  lucas[0] = 1;
  lucas[1] = 2;
  for (int i = 0; i < N; i++) {
    lucas[i+2] = lucas[i+1] + lucas[i];
  }
  
  cout << lucas[N] << endl;
      
}

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

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

#define ll long long

int main() {
  int N;
  cin >> N;
  
  vector<ll> lucas(N, 0);
  lucas[0] = 1;
  lucas[1] = 2;
  for (int i = 0; i < N; i++) {
    lucas[i+2] = lucas[i+1] + lucas[i];
  }
  
  cout << lucas[N] << endl;
      
}

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

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

int main() {
  vector<int64_t> Lucas(90)
  int N;
  cin >> N;
  
  Lucas.at(0)=2LL;
  Lucas.at(1)=1LL;
  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:6:3: error: expected ',' or ';' before 'int'
    6 |   int N;
      |   ^~~
a.cc:7:10: error: 'N' was not declared in this scope
    7 |   cin >> N;
      |          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected ']' before '}' token
   14 |   cout << v[N-1} << endl;
      |                ^
      |                ]
a.cc:14:16: error: expected ';' before '}' token
   14 |   cout << v[N-1} << endl;
      |                ^
      |                ;
a.cc: At global scope:
a.cc:14:18: error: expected unqualified-id before '<<' token
   14 |   cout << v[N-1} << endl;
      |                  ^~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'for'
    9 |   v.at(1)=1
      |            ^
      |            ;
   10 |   for(long i=2; i<N; i++)
      |   ~~~       
a.cc:10:17: error: 'i' was not declared in this scope
   10 |   for(long i=2; i<N; i++)
      |                 ^
a.cc:12:27: error: expected '}' at end of input
   12 |   cout << v.at(N) << endl;
      |                           ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#include<stdio.h>

int main(){
  
  int N;
  scanf("%d",&N);
  unsigned long long L[N];
  L[0] = 0;
  L[1] = 1;

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

  printf("%d",+[N]);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:16: error: expected expression before '[' token
   15 |   printf("%d",+[N]);
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: no match for call to '(std::vector<long int>) (int&)'
   12 |     num(i) = num.at(i-1) + num.at(i-2);
      |     ~~~^~~
Language: C++

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

int64_t Lucas(N) {
  if (N == 1)
    return 2;
  else if (N == 2)
    return 1;
  else
    return Lucas(N-1) + Lucas(N-2);
}


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


Compiler output:
a.cc:4:15: error: 'N' was not declared in this scope
    4 | int64_t Lucas(N) {
      |               ^
a.cc: In function 'int main()':
a.cc:17:16: error: 'Lucas' cannot be used as a function
   17 |   cout << Lucas(N) << endl;
      |           ~~~~~^~~
Language: C++

//52行目から編集
#include <iostream>
#include <limits.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <cassert>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rrep(i,n) for(int i=n-1;i>=0;i--)
#define all(x) (x).begin(),(x).end()
#define mp make_pair
#define pb push_back
#define eb emplace_back

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vector<int> > vvi;
typedef vector<vector<ll> > vvl;
typedef pair<int,int> pi;
typedef pair<ll,ll> pl;

template<class T> bool chmin(T& a,T b){if(a > b){a = b;return true;}else return false;}
template<class T> bool chmax(T& a,T b){if(a < b){a = b;return true;}else return false;}
///////////////////////////////////////////////////////////

long long lucas[] = {2,1,3,4,7,11,18,29,47,76,123,199,322,521,843,1364,2207,3571,5778,9349,15127,24476,39603,64079,103682,167761,271443,439204,710647,1149851,1860498,3010349,4870847,7881196,12752043,20633239,33385282,54018521,87403803,141422324,228826127,370248451,599074578,969323029,1568397607,2537720636,4106118243,6643838879,10749957122,17393796001,28143753123,45537549124,73681302247,119218851371,192900153618,312119004989,505019158607,817138163596,1322157322203,2139295485799,3461452808002,5600748293801,9062201101803,14662949395604,23725150497407,38388099893011,62113250390418,100501350283429,162614600673847,263115950957276,425730551631123,688846502588399,1114577054219522,1803423556807921,2918000611027443,4721424167835364,7639424778862807,12360848946698171,20000273725560978,32361122672259149,52361396397820127,84722519070079276,137083915467899403,221806434537978679,358890350005878082,580696784543856761,939587134549734843}

int main(void){
	int n;cin >> n;
	cout << lucas[n-1] << '\n';
}

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

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

int main(){
  int N;
  long long ans;
  long long array[86];
  array[0] = 2;
  array[1] = 1;
  cin >> N;
  for(int i = 0 ; i< N; i++){
  	if(i == 0 || i == 1) continue;
    ans += array[i - 1] + array[i - 2]
    array[i] = ans;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:39: error: expected ';' before 'array'
   13 |     ans += array[i - 1] + array[i - 2]
      |                                       ^
      |                                       ;
   14 |     array[i] = ans;
      |     ~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'n' was not declared in this scope
   11 |   for(int i = 2;i<=n;i++)L.at(i) = L.at(i-1) + L.at(i-2) ;
      |                    ^
a.cc:12:16: error: 'n' was not declared in this scope
   12 |   cout << L.at(n) << endl;
      |                ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  unsigned int l_a = 2;
  unsigned int l_b = 1;
  unsigned int l_n;
  
  for (int i = 0; i < N-1; i++) {
    l_n = l_a + l_b;
    l_a = l_b;
    l_b = l_n;
  }
}
  
  cout << l_n << endl;


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

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

int main() {
  int N;
  cin >> N;
  unsigned int l_a = 2;
  unsigned int l_b = 1;
  unsigned int l_n;
  
  for (int i = 0; i < N-1; i++) {
    l_n = l_a + l_b;
    l_a = l_b;
    l_b = l_n;
}
  
  cout << l_n << endl;


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected unqualified-id before '=' token
   13 |   int64_t = N;
      |           ^
a.cc:14:10: error: 'N' was not declared in this scope
   14 |   cin >> N;
      |          ^
Language: C++

int Lucas(int n){
  if(n==1) return 1;
  else if(n==2) return 3;
  else return Lucas(n-2)+Lucas(n-1);
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'scanf' was not declared in this scope
    9 |   scanf("%d",&n);
      |   ^~~~~
a.cc:11:3: error: 'printf' was not declared in this scope
   11 |   printf("%d",Lucas(n));
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int Lucas(int n){
Language: C++

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

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

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

Compiler output:
a.cc: In function 'long long int lucas(int&)':
a.cc:7:18: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    7 |   return lucas (n-1) + lucas (n-2);
      |                 ~^~
a.cc:4:23: note:   initializing argument 1 of 'long long int lucas(int&)'
    4 | long long lucas (int &n) {
      |                  ~~~~~^
a.cc:7:32: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    7 |   return lucas (n-1) + lucas (n-2);
      |                               ~^~
a.cc:4:23: note:   initializing argument 1 of 'long long int lucas(int&)'
    4 | long long lucas (int &n) {
      |                  ~~~~~^
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long L[i00];

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


Compiler output:
a.cc:3:13: error: 'i00' was not declared in this scope
    3 | long long L[i00];
      |             ^~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'L' was not declared in this scope
    8 |   L[0]=2;
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long L[i];

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

Compiler output:
a.cc:3:13: error: 'i' was not declared in this scope
    3 | long long L[i];
      |             ^
a.cc: In function 'int main()':
a.cc:8:3: error: 'L' was not declared in this scope
    8 |   L[0]=2;
      |   ^
Language: C++

#include<iostream>
#include<algorithm>
#include<climits>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define scan(arg) cin>>arg
#define prin(arg) cout<<arg<<"\n"
#define prin2(arg1,arg2) cout<<arg1<<" "<<arg2<<"\n"
using namespace std;
typedef long long ll;
const int NMAX=1<<17;

using namespace std;

int main(){
int N;
cin >> N;
int64_t luc[90];
luc.at(0) = 2;
luc.at(1) = 1;
for (int i = 2; i < N; i++)
{
    luc.at(i) = luc.at(i-1) + luc.at(i-2);
}



cout << luc(N) << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: request for member 'at' in 'luc', which is of non-class type 'int64_t [90]' {aka 'long int [90]'}
   19 | luc.at(0) = 2;
      |     ^~
a.cc:20:5: error: request for member 'at' in 'luc', which is of non-class type 'int64_t [90]' {aka 'long int [90]'}
   20 | luc.at(1) = 1;
      |     ^~
a.cc:23:9: error: request for member 'at' in 'luc', which is of non-class type 'int64_t [90]' {aka 'long int [90]'}
   23 |     luc.at(i) = luc.at(i-1) + luc.at(i-2);
      |         ^~
a.cc:23:21: error: request for member 'at' in 'luc', which is of non-class type 'int64_t [90]' {aka 'long int [90]'}
   23 |     luc.at(i) = luc.at(i-1) + luc.at(i-2);
      |                     ^~
a.cc:23:35: error: request for member 'at' in 'luc', which is of non-class type 'int64_t [90]' {aka 'long int [90]'}
   23 |     luc.at(i) = luc.at(i-1) + luc.at(i-2);
      |                                   ^~
a.cc:28:12: error: 'luc' cannot be used as a function
   28 | cout << luc(N) << endl;
      |         ~~~^~~
Language: Java

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

public class Main {
	
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		InputReader in = new InputReader(System.in);
		int n = in.readInt();  
		long arr[] = new long[87]; 
		arr[0] = 2; 
		arr[1] = 1;
		for(int i = 2; i<=n; i++) {
			arr[i] = arr[i-2] + arr[i-1]; 
		}
		System.out.println(arr[n]);
	}
}

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

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

int main() {
  int N;
  cin>>N;
  if(N==0)cout<<2;
  else if(N==1)cout<<1;
  else{
    int L0,L1,L2;
    L1=2;L2=1;
    for(int i=1;i<N;i++;){
      L0=L1;
      L1=L2;
      L2=L0+L1;
    }
    cout<<L2;
  }
}


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

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

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