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

#include<iostream>

using namespace std;

int main() {
  int N;
  cin >> N;
  if (N == 1) {
    cout << 2 << endl;
    return 0;
  }
  if (N == 2) {
    cout << 1 << endl;
    return 0;
  }

  int addArray = int[N];

  for (int i = 0; i < N; i++) {
    if (i == 0) {
      addArray[i] = 2;
      continue;
    }
    if (i == 1) {
      addArray[i] = 1;
      continue;
    }
    addArray[i] = addArray[i-2] + addArray[i-1];
  }
  
  cout << addArray[addArray.size() - 2] + addArray[addArray.size() - 1] << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: expected primary-expression before 'int'
   17 |   int addArray = int[N];
      |                  ^~~
a.cc:21:15: error: invalid types 'int[int]' for array subscript
   21 |       addArray[i] = 2;
      |               ^
a.cc:25:15: error: invalid types 'int[int]' for array subscript
   25 |       addArray[i] = 1;
      |               ^
a.cc:28:13: error: invalid types 'int[int]' for array subscript
   28 |     addArray[i] = addArray[i-2] + addArray[i-1];
      |             ^
a.cc:28:27: error: invalid types 'int[int]' for array subscript
   28 |     addArray[i] = addArray[i-2] + addArray[i-1];
      |                           ^
a.cc:28:43: error: invalid types 'int[int]' for array subscript
   28 |     addArray[i] = addArray[i-2] + addArray[i-1];
      |                                           ^
a.cc:31:29: error: request for member 'size' in 'addArray', which is of non-class type 'int'
   31 |   cout << addArray[addArray.size() - 2] + addArray[addArray.size() - 1] << endl;
      |                             ^~~~
a.cc:31:61: error: request for member 'size' in 'addArray', which is of non-class type 'int'
   31 |   cout << addArray[addArray.size() - 2] + addArray[addArray.size() - 1] << endl;
      |                                                             ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: 'verctor' was not declared in this scope
   22 |   verctor<ll>l(n);
      |   ^~~~~~~
a.cc:22:13: error: expected primary-expression before '>' token
   22 |   verctor<ll>l(n);
      |             ^
a.cc:22:14: error: 'l' was not declared in this scope
   22 |   verctor<ll>l(n);
      |              ^
Language: C++

#include<iostream>

using namespace std;

// 1の場合は    2
// 2の場合は    1
// 3の場合は    3
// 4の場合は    4
// 5の場合は    7
// 6の場合は   11
// 7の場合は   18
// 8の場合は   29
// 9の場合は   47
// 10の場合は  76
// つまり？
// total = Ni-2 + N-1
int main() {
  int N;
  cin >> N;
  if (N == 1) {
    cout << 2 << endl;
    return 0;
  }
  if (N == 2) {
    cout << 1 << endl;
    return 0;
  }

  int addArray = [N];

  for (int i = 0; i < N; i++) {
    if (i == 0) {
      addArray[i] = 3;
      continue;
    }
    if (i == 1) {
      addArray[i] = 1;
      continue;
    }
    addArray[i] = addArray[i-2] + addArray[i-1];
  }
  
  cout << addArray[addArray.size() - 2] + addArray[addArray.size() - 1] << endl;
  return 0;
}


Compiler output:
a.cc: In lambda function:
a.cc:29:21: error: expected '{' before ';' token
   29 |   int addArray = [N];
      |                     ^
a.cc: In function 'int main()':
a.cc:29:18: error: cannot convert 'main()::<lambda()>' to 'int' in initialization
   29 |   int addArray = [N];
      |                  ^~~
      |                  |
      |                  main()::<lambda()>
a.cc:33:15: error: invalid types 'int[int]' for array subscript
   33 |       addArray[i] = 3;
      |               ^
a.cc:37:15: error: invalid types 'int[int]' for array subscript
   37 |       addArray[i] = 1;
      |               ^
a.cc:40:13: error: invalid types 'int[int]' for array subscript
   40 |     addArray[i] = addArray[i-2] + addArray[i-1];
      |             ^
a.cc:40:27: error: invalid types 'int[int]' for array subscript
   40 |     addArray[i] = addArray[i-2] + addArray[i-1];
      |                           ^
a.cc:40:43: error: invalid types 'int[int]' for array subscript
   40 |     addArray[i] = addArray[i-2] + addArray[i-1];
      |                                           ^
a.cc:43:29: error: request for member 'size' in 'addArray', which is of non-class type 'int'
   43 |   cout << addArray[addArray.size() - 2] + addArray[addArray.size() - 1] << endl;
      |                             ^~~~
a.cc:43:61: error: request for member 'size' in 'addArray', which is of non-class type 'int'
   43 |   cout << addArray[addArray.size() - 2] + addArray[addArray.size() - 1] << endl;
      |                                                             ^~~~
Language: C++

#include<iostream>

using namespace std;

int main() {
  int N;
  cin >> N;
  if (N == 1) {
    cout << 2 << endl;
    return 0;
  }
  if (N == 2) {
    cout << 1 << endl;
    return 0;
  }

  int total = 0,
  int left = 0,
  int right = 0;

  for (int i = 0; i < N; i++) {
    if (i == 0) {
      left = 2;
      continue;
    }
    if (i == 1) {
      right = 1;
      continue;
    }
    if (i == 2) {
      total = left + right;
      continue;
    }
    if (i % 2 == 0) {
      right = total;
      total = total + left;
    } else {
      left = total;
      total = total + right;
    }
  }
  
  cout << total << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: expected unqualified-id before 'int'
   18 |   int left = 0,
      |   ^~~
a.cc:23:12: error: assignment of function 'std::ios_base& std::left(ios_base&)'
   23 |       left = 2;
      |       ~~~~~^~~
a.cc:27:13: error: assignment of function 'std::ios_base& std::right(ios_base&)'
   27 |       right = 1;
      |       ~~~~~~^~~
a.cc:31:20: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'std::ios_base&(std::ios_base&)' to binary 'operator+'
   31 |       total = left + right;
      |               ~~~~ ^ ~~~~~
      |               |      |
      |               |      std::ios_base&(std::ios_base&)
      |               std::ios_base&(std::ios_base&)
a.cc:35:13: error: assignment of function 'std::ios_base& std::right(ios_base&)'
   35 |       right = total;
      |       ~~~~~~^~~~~~~
a.cc:36:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   36 |       total = total + left;
      |               ~~~~~~^~~~~~
a.cc:36:21: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'int' [-fpermissive]
   36 |       total = total + left;
      |               ~~~~~~^~~~~~
      |                     |
      |                     std::ios_base& (*)(std::ios_base&)
a.cc:38:12: error: assignment of function 'std::ios_base& std::left(ios_base&)'
   38 |       left = total;
      |       ~~~~~^~~~~~~
a.cc:39:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   39 |       total = total + right;
      |               ~~~~~~^~~~~~~
a.cc:39:21: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'int' [-fpermissive]
   39 |       total = total + right;
      |               ~~~~~~^~~~~~~
      |                     |
      |                     std::ios_base& (*)(std::ios_base&)
Language: C++

#include<iostream>

using namespace std;

int main() {
  int N;
  cin >> N;
  int total = left = right = 0;
  for (int i = 0; i < N; i++) {
    if (i == 0) {
      left = 2;
      continue;
    }
    if (i == 1) {
      right = 1;
      continue;
    }
    if (i == 2) {
	  total = left + right;
      left = total;
    }
    if (i % 2 == 0) {
      total = total + right;
      right = total;
    } else {
      total = total + left;
      left = total;
    }
  }
  if (N == 1) {
    cout << 2 << endl;
  } else if (N == 2) {
    cout << 1 << endl;
  } else {
    cout << total << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: assignment of function 'std::ios_base& std::right(ios_base&)'
    8 |   int total = left = right = 0;
      |                      ~~~~~~^~~
a.cc:11:12: error: assignment of function 'std::ios_base& std::left(ios_base&)'
   11 |       left = 2;
      |       ~~~~~^~~
a.cc:15:13: error: assignment of function 'std::ios_base& std::right(ios_base&)'
   15 |       right = 1;
      |       ~~~~~~^~~
a.cc:19:24: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'std::ios_base&(std::ios_base&)' to binary 'operator+'
   19 |           total = left + right;
      |                   ~~~~ ^ ~~~~~
      |                   |      |
      |                   |      std::ios_base&(std::ios_base&)
      |                   std::ios_base&(std::ios_base&)
a.cc:20:12: error: assignment of function 'std::ios_base& std::left(ios_base&)'
   20 |       left = total;
      |       ~~~~~^~~~~~~
a.cc:23:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   23 |       total = total + right;
      |               ~~~~~~^~~~~~~
a.cc:23:21: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'int' [-fpermissive]
   23 |       total = total + right;
      |               ~~~~~~^~~~~~~
      |                     |
      |                     std::ios_base& (*)(std::ios_base&)
a.cc:24:13: error: assignment of function 'std::ios_base& std::right(ios_base&)'
   24 |       right = total;
      |       ~~~~~~^~~~~~~
a.cc:26:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   26 |       total = total + left;
      |               ~~~~~~^~~~~~
a.cc:26:21: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'int' [-fpermissive]
   26 |       total = total + left;
      |               ~~~~~~^~~~~~
      |                     |
      |                     std::ios_base& (*)(std::ios_base&)
a.cc:27:12: error: assignment of function 'std::ios_base& std::left(ios_base&)'
   27 |       left = total;
      |       ~~~~~^~~~~~~
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: expected ';' before '}' token
   19 |     total = total + add
      |                        ^
      |                        ;
   20 |   }
      |   ~
Language: C

#include <iostream>
#include <cmath>

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

    auto golden_ratio = (1 + sqrt(5)) / 2;
    auto result = std::pow(golden_ratio, N) + std::pow(-golden_ratio, -N);

    std::cout << static_cast<int64_t>(result) << std::endl;

    return 0;
}


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

#include <iostream>
#include <cmath.h>

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

    auto golden_ratio = (1 + sqrt(5)) / 2;
    auto result = std::pow(golden_ratio, N) + std::pow(-golden_ratio, -N);

    std::cout << static_cast<int64_t>(result);

    return 0;
}


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

#include <iostream>
#include <math.h>

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

    auto golden_ratio = (1 + sqrt(5)) / 2;
    auto result = std::pow(golden_ratio, N) + std::pow(-golden_ratio, -N);

    std::cout << static_cast<int64_t>(result);

    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;
  cin >> N;
  int64_t L1,L2,L3;
  L1=0;
  L2=1
  if(N=1){
    cout << 1 << endl;
  }else{
    for(int i=0;i<N-1;i++){
      L3=L2+L1;
      L1=L2;
      L2=L3;
    }
    cout << L3 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: expected ';' before 'if'
    9 |   L2=1
      |       ^
      |       ;
   10 |   if(N=1){
      |   ~~   
a.cc:12:4: error: 'else' without a previous 'if'
   12 |   }else{
      |    ^~~~
Language: C++

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

int N;
cin >> N;

int64_t L_b1,L_b2,L;

if (N == 0)
{
  L = 2;
}
else if (N ==1)
{
  L = 1;
}
else
{
  L_b1 = 1;
  L_b2 = 2;
  for (int i = 3; i<N; i++)
  {
    L = L_b2 + L_b1;
    L_b2 = L_b1;
    L_b1 = L;
  }
}
cout << L << endl;

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> N;
      | ^~~
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if (N == 0)
      | ^~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else if (N ==1)
      | ^~~~
a.cc:17:1: error: expected unqualified-id before 'else'
   17 | else
      | ^~~~
a.cc:28:1: error: 'cout' does not name a type
   28 | cout << L << endl;
      | ^~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
const long long MOD = 1e9+7;
#define rep(i,n) for(int i=0;i<n;++i)
typedef long long int ll;
typedef unsigned long long ull;
template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}
typedef pair<ll,ll> P;


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

}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected unqualified-id before '=' token
    8 |     long long = L[100];
      |               ^
a.cc:9:5: error: 'L' was not declared in this scope
    9 |     L[0] = 2; L[1] = 1;
      |     ^
a.cc:13:15: error: 'i' was not declared in this scope
   13 |     cout << L[i] << endl;
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected unqualified-id before '=' token
    8 |     ll = L[100];
      |        ^
a.cc:9:5: error: 'L' was not declared in this scope
    9 |     L[0] = 2; L[1] = 1;
      |     ^
a.cc:13:15: error: 'i' was not declared in this scope
   13 |     cout << L[i] << endl;
      |               ^
Language: C++

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

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

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

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

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


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

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

int main() {
  vector<int> l(87);
  l(0) = 2;
  l(1) = 1;
  
  for(int i=2; i<=86; i++){
    l(i) = l(i-1) + l(i-2);
  }
  
  int n;
  cin >> n;
  
  cout << l(n) << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: no match for call to '(std::vector<int>) (int)'
    7 |   l(0) = 2;
      |   ~^~~
a.cc:8:4: error: no match for call to '(std::vector<int>) (int)'
    8 |   l(1) = 1;
      |   ~^~~
a.cc:11:6: error: no match for call to '(std::vector<int>) (int&)'
   11 |     l(i) = l(i-1) + l(i-2);
      |     ~^~~
a.cc:11:13: error: no match for call to '(std::vector<int>) (int)'
   11 |     l(i) = l(i-1) + l(i-2);
      |            ~^~~~~
a.cc:11:22: error: no match for call to '(std::vector<int>) (int)'
   11 |     l(i) = l(i-1) + l(i-2);
      |                     ~^~~~~
a.cc:17:12: error: no match for call to '(std::vector<int>) (int&)'
   17 |   cout << l(n) << endl;
      |           ~^~~
Language: C

#include <iostream>

using namespace std;

int main(){
  int64_t l1=2, l2=1, l, n;
  
  cin>>n;
  
  for(int i=0;i<=n;i++){
    if(i==0){
    	l=l1;
    }
    else if(i==1){
    	l=l2;
    }
    else{
  		l=l1+l2;
   	 	l1=l2;
    	l2=l;
    }
    //cout<<i<<endl<<l<<endl;
  }  
  cout<<l<<endl;
  
}

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(){
  int64_t l1=2, l2=1, l, n;
  
  cin>>n;
  
  for(int i=0;i<=n;i++){
    if(i==0){
    	l=l1;
    }
    else if(i==1){
    	l=l2;
    }
    else{
  		l=l1+l2;
   	 	l1=l2;
    	l2=l;
    }
    //cout<<i<<endl<<l<<endl;
  }  
  cout<<l<<endl;
  
}

Compiler output:
main.c: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;
  int a = 2, int b = 1;
  while (N > 1) {
    int tmp = b;
    b = a + b;
    a = tmp;
    --N;
  }
  cout << b << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected unqualified-id before 'int'
    6 |   int a = 2, int b = 1;
      |              ^~~
a.cc:8:15: error: 'b' was not declared in this scope
    8 |     int tmp = b;
      |               ^
a.cc:13:11: error: 'b' was not declared in this scope
   13 |   cout << b << endl;
      |           ^
Language: C++

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

int main() {
  int N; cin >> N;
  int a = 2, int b = 1;
  while (N > 1) {
    int tmp = b;
    b = a + b;
    a = tmp;
    --N;
  }
  cout << b << endl;
  return 0;
}

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 main() {
  int64_t Ln, Lb;
  Lb=2;
  Ln=1;
  int N;
  cin >> N;
  
  for(int i=0;i<N;i++){
    int 64_t a;
    a=Ln+Lb;
    Lb=Ln;
    Ln=a;
  }
  
  cout << Lb << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected unqualified-id before numeric constant
   11 |     int 64_t a;
      |         ^~~~
a.cc:12:5: error: 'a' was not declared in this scope
   12 |     a=Ln+Lb;
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t L0, L1;
  Lb=2;
  Ln=1;
  int N;
  cin >> N;
  
  for(int i=0;i<N;i++){
    int 64_t a;
    a=Ln+Lb;
    Lb=Ln;
    Ln=a;
  }
  
  cout << Lb << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'Lb' was not declared in this scope; did you mean 'L1'?
    5 |   Lb=2;
      |   ^~
      |   L1
a.cc:6:3: error: 'Ln' was not declared in this scope; did you mean 'L1'?
    6 |   Ln=1;
      |   ^~
      |   L1
a.cc:11:9: error: expected unqualified-id before numeric constant
   11 |     int 64_t a;
      |         ^~~~
a.cc:12:5: error: 'a' was not declared in this scope
   12 |     a=Ln+Lb;
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'int_64t' was not declared in this scope; did you mean 'int64_t'?
    6 |   vector<int_64t> lu(N);
      |          ^~~~~~~
      |          int64_t
a.cc:6:17: error: template argument 1 is invalid
    6 |   vector<int_64t> lu(N);
      |                 ^
a.cc:6:17: error: template argument 2 is invalid
a.cc:7:6: error: request for member 'at' in 'lu', which is of non-class type 'int'
    7 |   lu.at(0)=2;
      |      ^~
a.cc:8:6: error: request for member 'at' in 'lu', which is of non-class type 'int'
    8 |   lu.at(1)=1;
      |      ^~
a.cc:10:8: error: request for member 'at' in 'lu', which is of non-class type 'int'
   10 |     lu.at(i)=lu.at(i-1)+lu.at(i-2);
      |        ^~
a.cc:10:17: error: request for member 'at' in 'lu', which is of non-class type 'int'
   10 |     lu.at(i)=lu.at(i-1)+lu.at(i-2);
      |                 ^~
a.cc:10:28: error: request for member 'at' in 'lu', which is of non-class type 'int'
   10 |     lu.at(i)=lu.at(i-1)+lu.at(i-2);
      |                            ^~
a.cc:12:12: error: request for member 'at' in 'lu', which is of non-class type 'int'
   12 |   cout<<lu.at(N)<<endl;
      |            ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'int_64t' was not declared in this scope; did you mean 'int64_t'?
    6 |   vector<int_64t> lu<N>;
      |          ^~~~~~~
      |          int64_t
a.cc:6:17: error: template argument 1 is invalid
    6 |   vector<int_64t> lu<N>;
      |                 ^
a.cc:6:17: error: template argument 2 is invalid
a.cc:6:21: error: expected initializer before '<' token
    6 |   vector<int_64t> lu<N>;
      |                     ^
a.cc:7:3: error: 'lu' was not declared in this scope
    7 |   lu.at(0)=2;
      |   ^~
Language: C++

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

Compiler output:
a.cc: In function 'int64_t lucas(int)':
a.cc:11:33: error: expected ';' before '}' token
   11 |     return lucas(N-1)+lucas(N-2)
      |                                 ^
      |                                 ;
   12 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int64_t lucas(int)':
a.cc:11:33: error: expected ';' before '}' token
   11 |     return lucas(N-1)+lucas(N-2)
      |                                 ^
      |                                 ;
   12 |   }
      |   ~                              
a.cc: In function 'int main()':
a.cc:16:10: error: expected primary-expression before ';' token
   16 |   cin>>N+;
      |          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;
map<ll,ll> mp;

ll luca(ll n) {
  if (n == 0)
    return 2L;
  else if (n == 1)
    return 1L;
  auto iter = mp.find(n);
  if (iter != end(mp))
    return iter->second;
  else {
    ll ans = luca(n - 1)+luca(n - 2);
    mp[n] = ans;
  }
  return ans;
}

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


Compiler output:
a.cc: In function 'll luca(ll)':
a.cc:19:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |   return ans;
      |          ^~~
      |          abs
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;

vector<int> vec(87, 0);
 
int lucas(int n){
  if (n == 0) {
    vec.at(0) = 2;
    return vec.at(0);
  }
  else if (n == 1){
    vec.at(1) = 1;
    return vec.at(1);
  }
  else if (vec.at(n) != 0) {
    return vec.at(n);
  }
  else {
    vec.at(n) = lucas(p, n-1) + lucas(p, n-2);
    return vec.at(n);
  }
}
 
int main(){
  int N ;  
  cin >> N;
  cout << lucas(N) << endl;
}


Compiler output:
a.cc: In function 'int lucas(int)':
a.cc:19:23: error: 'p' was not declared in this scope
   19 |     vec.at(n) = lucas(p, n-1) + lucas(p, n-2);
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
 
int lucas(vector<int> &p, int n){
  if (n == 0) {
    p.at(0) = 2;
    return p.at(0);
  }
  else if (n == 1){
    p.at(1) = 1;
    return p.at(1);
  }
  else if (p.at(n) != 0) {
    return p.at(n);
  }
  else {
    p.at(n) = lucas(p, n-1) + lucas(p, n-2);
    return p.at(n);
  }
}
 
int main(){
  int N ;  
  cin >> N;
  vector<int> vec(N, 0);
  cout << lucas(N) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:17: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'int'
   27 |   cout << lucas(N) << endl;
      |                 ^
a.cc:5:24: note: in passing argument 1 of 'int lucas(std::vector<int>&, int)'
    5 | int lucas(vector<int> &p, int n){
      |           ~~~~~~~~~~~~~^
Language: C++

#include <bits/stdc++.h>
using namespace std;
vector<int> vec(n+1, 0); 

int lucas(int n){
  if (n == 0) {
    vec.at(0) = 2;
    return vec.at(0);
  }
  else if (n == 1){
    vec.at(1) = 1;
    return vec.at(1);
  }
  else if (vec.at(n) != 0) {
    return vec.at(n);
  }
  else {
    vec.at(n) = lucas(n-1) + lucas(n-2);
    return vec.at(n);
  }
}
 
int main(){
  int N ;
  cin >> N;
  cout << lucas(N) << endl;
}

Compiler output:
a.cc:3:17: error: 'n' was not declared in this scope; did you mean 'yn'?
    3 | vector<int> vec(n+1, 0);
      |                 ^
      |                 yn
Language: C++

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

Compiler output:
a.cc: In function 'int lucas(int)':
a.cc:8:18: error: expected ';' before 'return'
    8 |     vec.at(0) = 2
      |                  ^
      |                  ;
    9 |     return 2;
      |     ~~~~~~        
a.cc:11:11: error: expected '(' before '{' token
   11 |   else if {
      |           ^
      |           (
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else if (vec.at(n) == 0) vec.at(n) = lucas(n-1) + lucas(n-2);
      |   ^~~~
a.cc:17:1: warning: control reaches end of non-void function [-Wreturn-type]
   17 | }
      | ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int lucas(int)':
a.cc:8:12: error: 'num' was not declared in this scope; did you mean 'enum'?
    8 |     return num;
      |            ^~~
      |            enum
Language: C++

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


Compiler output:
a.cc:3:19: error: expected unqualified-id before numeric constant
    3 | typedef long long 11;
      |                   ^~
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 11 L[87];
      | ^~
a.cc: In function 'int main()':
a.cc:8:3: error: 'L' was not declared in this scope
    8 |   L[0]=2LL;
      |   ^
Language: C++

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


Compiler output:
a.cc:3:19: error: expected unqualified-id before numeric constant
    3 | typedef long long 11;
      |                   ^~
a.cc:4:1: error: 'll' does not name a type
    4 | ll L[87];
      | ^~
a.cc: In function 'int main()':
a.cc:8:3: error: 'L' was not declared in this scope
    8 |   L[0]=2LL;
      |   ^
Language: C++

#include<bits/stdc++>
using namespace std;
typedef long long 11;
ll L[87];
int n;
int main(){
cin >> n;
  L[0]=2LL;
  L[1]=1LL;
  for(int i=2;i<=n;i++)
    L[n]=L[n-1]+L[n-2];
  cout << L[n] << endl;
}

Compiler output:
a.cc:1:9: 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 main(){
  int n;
  
  cin >> n;
  vector<uint64_t> ryuka(n); 
  ryuka.at(0)=2LL;
    ryuka.at(1)=1LL;
  for(int i=2;i<n;i++){
    ryuka.at(n-1)=ryuka(n-2)+ryuka(n-3);
  }


  cout << ryuka.at(n-1) << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: no match for call to '(std::vector<long unsigned int>) (int)'
   11 |     ryuka.at(n-1)=ryuka(n-2)+ryuka(n-3);
      |                   ~~~~~^~~~~
a.cc:11:35: error: no match for call to '(std::vector<long unsigned int>) (int)'
   11 |     ryuka.at(n-1)=ryuka(n-2)+ryuka(n-3);
      |                              ~~~~~^~~~~
Language: C++

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


  cout << ryuka.at(n-1) << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: no match for call to '(std::vector<long unsigned int>) (int)'
   11 |     ryuka.at(n-1)=ryuka(n-2)+ryuka(n-3);
      |                   ~~~~~^~~~~
a.cc:11:35: error: no match for call to '(std::vector<long unsigned int>) (int)'
   11 |     ryuka.at(n-1)=ryuka(n-2)+ryuka(n-3);
      |                              ~~~~~^~~~~
Language: C++

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

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

int main(){
  int n;
  cin >> n;
  int_64t ans = f(n);
  
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'int_64t' was not declared in this scope; did you mean 'int64_t'?
   19 |   int_64t ans = f(n);
      |   ^~~~~~~
      |   int64_t
a.cc:21:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

v#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int n;
    cin >> n;
    vector<int64_t> lucas = {2, 1};
    int64_t count = 1;


    for (int i = 0; i < 86; i++) {
        if(n == 1) {
            cout << count;
            break;
        }
        
        lucas.push_back(lucas[i + 1] + lucas[i]);
        count++;

        if(count == n) {
            cout << lucas[i + 2];
            break;
        }
    }
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n;
      |     ^~~
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<int64_t> lucas = {2, 1};
      |     ^~~~~~
a.cc:7:12: error: 'int64_t' was not declared in this scope
    7 |     vector<int64_t> lucas = {2, 1};
      |            ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | v#include <bits/stdc++.h>
a.cc:7:21: error: 'lucas' was not declared in this scope
    7 |     vector<int64_t> lucas = {2, 1};
      |                     ^~~~~
a.cc:8:12: error: expected ';' before 'count'
    8 |     int64_t count = 1;
      |            ^~~~~~
      |            ;
a.cc:13:13: error: 'cout' was not declared in this scope
   13 |             cout << count;
      |             ^~~~
a.cc:13:21: error: 'count' was not declared in this scope
   13 |             cout << count;
      |                     ^~~~~
a.cc:18:9: error: 'count' was not declared in this scope
   18 |         count++;
      |         ^~~~~
a.cc:21:13: error: 'cout' was not declared in this scope
   21 |             cout << lucas[i + 2];
      |             ^~~~
Language: C++

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

int f(int a,int b,int n){
  if(n==2){
    return a+b;
  }
  x=f(a,b,n-1)+f(a,b,n-2);
  
  return x;
}

int main() {
  int N;
  cin>>N;
  if(N==1){
    cout<<1<<endl;
  }
  else{
    ans=f(2,1,N);
    cout<<ans<<endl;
  }
}


Compiler output:
a.cc: In function 'int f(int, int, int)':
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x=f(a,b,n-1)+f(a,b,n-2);
      |   ^
a.cc: In function 'int main()':
a.cc:20:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |     ans=f(2,1,N);
      |     ^~~
      |     abs
Language: C++

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

int f(int a,b,n){
  if(n==2){
    return a+b;
  }
  x=f(a,b,n-1)+f(a,b,n-2);
  
  return x;
}

int main() {
  int N;
  cin>>N;
  if(N==1){
    cout<<1<<endl;
  }
  else{
    ans=f(2,1,N);
    cout<<ans<<endl;
  }
}


Compiler output:
a.cc:4:13: error: 'b' has not been declared
    4 | int f(int a,b,n){
      |             ^
a.cc:4:15: error: 'n' has not been declared
    4 | int f(int a,b,n){
      |               ^
a.cc: In function 'int f(int, int, int)':
a.cc:5:6: error: 'n' was not declared in this scope
    5 |   if(n==2){
      |      ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 |     return a+b;
      |              ^
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x=f(a,b,n-1)+f(a,b,n-2);
      |   ^
a.cc:8:9: error: 'b' was not declared in this scope
    8 |   x=f(a,b,n-1)+f(a,b,n-2);
      |         ^
a.cc:8:11: error: 'n' was not declared in this scope
    8 |   x=f(a,b,n-1)+f(a,b,n-2);
      |           ^
a.cc: In function 'int main()':
a.cc:20:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |     ans=f(2,1,N);
      |     ^~~
      |     abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long L1=2, L2=1, L_new = L1 + L2, temp;
  int N;
  
  cin >> N;
  
  if(N==1) cout << L2 << endl;
  
  else{
    while(N!=1){
      temp = L_new;
      L_new = L1 + L2;
      L1 = L2
      L2 = temp;
      N--;
    }
    cout << L_new << endl;
  }
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected ';' before 'L2'
   15 |       L1 = L2
      |              ^
      |              ;
   16 |       L2 = temp;
      |       ~~
Language: C++

#include <iostream>

using namespace std;

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

  vector<int64_t> lucas(N);

  if (N==0){
    lucas = {2};
  }else{
    lucas = {2, 1};
  }

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

  cout << lucas[N] << endl;

  return 0;
}


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

using namespace std;

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

  vector<long long> lucas(N);

  if (N==0){
    lucas = {2};
  }else{
    lucas = {2, 1};
  }

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

  cout << lucas[N] << endl;
  //printf(%d, lucas[-1]);

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<long long> lucas(N);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'long'
    7 |   vector<long long> lucas(N);
      |          ^~~~
a.cc:10:5: error: 'lucas' was not declared in this scope
   10 |     lucas = {2};
      |     ^~~~~
a.cc:12:5: error: 'lucas' was not declared in this scope
   12 |     lucas = {2, 1};
      |     ^~~~~
a.cc:16:5: error: 'lucas' was not declared in this scope
   16 |     lucas.push_back(lucas[i-1] + lucas[i-2]);
      |     ^~~~~
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << lucas[N] << endl;
      |   ^~~~
a.cc:19:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:11: error: 'lucas' was not declared in this scope
   19 |   cout << lucas[N] << endl;
      |           ^~~~~
a.cc:19:23: error: 'endl' was not declared in this scope
   19 |   cout << lucas[N] << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

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

  vector<int64_t> lucas(N);

  if (N==0){
    lucas = {2};
  }else{
    lucas = {2, 1};
  }

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

  cout << lucas[N] << endl;
  //printf(%d, lucas[-1]);

  return 0;
}


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<long long> lucas(N);

  if (N==0){
    lucas = {2};
  }else{
    lucas = {2, 1};
  }

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

  cout << lucas[N] << endl;
  //printf(%d, lucas[-1]);

  return 0;
}


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<long long> lucas(N);

  if (N==0){
    lucas = {2};
  }else{
    lucas = {2, 1};
  }

  for(int i=2; i<N+1; i++){
    lucas.push_back(lucas[i-1] + lucas[i-2]);
    cout << lucas[i] << endl;
  }

  //printf(%d, lucas[-1]);

  return 0;
}


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> luca(N+1);
  
  luca.at(0)=2;
  luca.at(1)=1;
  
  for(int i=2; i<N+1; i++){
    luca.at(i)=luca(i-1)+luca(i-2);
  }
  cout << luca.at(N) << endl;
  
}


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

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

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

int main(){
    int N;
    cin >> N ;
    printf("%d", L(N));
}

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<uint64_t> L = {2,1};
  for(int i = 2; i<N;i++){
    L.at(i).push_back(L.at(i-2)+L.at(i-1));
  }
  cout << L.at(N) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: request for member 'push_back' in 'L.std::vector<long unsigned int>::at(((std::vector<long unsigned int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long unsigned int>, long unsigned int>::value_type' {aka 'long unsigned int'}
    9 |     L.at(i).push_back(L.at(i-2)+L.at(i-1));
      |             ^~~~~~~~~
Language: C++

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

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


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

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

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

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

int main(){
    int n;
    cin>>n;
    
    vector<long long> l(n+1);
    l[0]=2,l[1]=1;

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

    cout<<l[n]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>n;
      |     ^~~
a.cc:5:5: error: 'vector' was not declared in this scope
    5 |     vector<long long> l(n+1);
      |     ^~~~~~
a.cc:5:12: error: expected primary-expression before 'long'
    5 |     vector<long long> l(n+1);
      |            ^~~~
a.cc:6:5: error: 'l' was not declared in this scope
    6 |     l[0]=2,l[1]=1;
      |     ^
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<l[n]<<endl;
      |     ^~~~
a.cc:12:17: error: 'endl' was not declared in this scope
   12 |     cout<<l[n]<<endl;
      |                 ^~~~
Language: C++

int main() {
  int N;
  cin >> N;
  vector<unsigned long long > data(N+1);

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


}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<unsigned long long > data(N+1);
      |   ^~~~~~
a.cc:4:10: error: expected primary-expression before 'unsigned'
    4 |   vector<unsigned long long > data(N+1);
      |          ^~~~~~~~
a.cc:6:5: error: 'data' was not declared in this scope
    6 |     data[0]=2;
      |     ^~~~
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << data[N]<<endl;
      |   ^~~~
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |   cout << data[N]<<endl;
      |                    ^~~~
Language: C++

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

vector<long long> memo(86,-1);
memo.at(0)=2;
memo.at(1)=1;
long long lyuka(int i){

if(memo.at(i)!=-1){
  return memo.at(i);
}

memo.at(i)=lyuka(i-1)+lyuka(i-2);

return memo.at(i);


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


Compiler output:
a.cc:5:1: error: 'memo' does not name a type
    5 | memo.at(0)=2;
      | ^~~~
a.cc:6:1: error: 'memo' does not name a type
    6 | memo.at(1)=1;
      | ^~~~
Language: C++

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

vector<int64_t>memo(86,-1);

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


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

if(memo.at(i)!=-1){
  return memo.at(i);
}

return memo.at(i)=lyuka(memo,i-1)+lyuka(memo,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:20:25: error: cannot convert 'std::vector<long int>' to 'int'
   20 | return memo.at(i)=lyuka(memo,i-1)+lyuka(memo,i-2);
      |                         ^~~~
      |                         |
      |                         std::vector<long int>
a.cc:6:19: note:   initializing argument 1 of 'int64_t lyuka(int)'
    6 | int64_t lyuka(int i){
      |               ~~~~^
a.cc:20:41: error: cannot convert 'std::vector<long int>' to 'int'
   20 | return memo.at(i)=lyuka(memo,i-1)+lyuka(memo,i-2);
      |                                         ^~~~
      |                                         |
      |                                         std::vector<long int>
a.cc:6:19: note:   initializing argument 1 of 'int64_t lyuka(int)'
    6 | int64_t lyuka(int i){
      |               ~~~~^
Language: C++

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



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


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

if(memo.at(i)!=-1){
  return memo.at(i);
}

return memo.at(i)=lyuka(i-1)+lyuka(i-2);


}
  
int main() {
 
int N;
cin>>N;
 vector<int64_t>memo(N,-1);
int ans=lyuka(N);
 cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int64_t lyuka(int)':
a.cc:16:4: error: 'memo' was not declared in this scope
   16 | if(memo.at(i)!=-1){
      |    ^~~~
a.cc:20:8: error: 'memo' was not declared in this scope
   20 | return memo.at(i)=lyuka(i-1)+lyuka(i-2);
      |        ^~~~
Language: C++

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



int64_t lyuka(vector<int64_t> memo,int i){
if(i==1){
    return 1;


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

if(memo.at(i)==-1){
  return memo.at(i);
}

return memo.at(i)=lyuka(i-1)+lyuka(i-2);


}
  
int main() {
 
int N;
cin>>N;
 vector<int64_t>memo(N,-1);
int ans=lyuka(memo,N);
 cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int64_t lyuka(std::vector<long int>, int)':
a.cc:20:26: error: could not convert '(i - 1)' from 'int' to 'std::vector<long int>'
   20 | return memo.at(i)=lyuka(i-1)+lyuka(i-2);
      |                         ~^~
      |                          |
      |                          int
a.cc:20:37: error: could not convert '(i - 2)' from 'int' to 'std::vector<long int>'
   20 | return memo.at(i)=lyuka(i-1)+lyuka(i-2);
      |                                    ~^~
      |                                     |
      |                                     int