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

//#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const long long INF= 1e+18+1;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll> >vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
const ll MOD=1000000007LL;
string abc="abcdefghijklmnopqrstuvwxyz";
string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main(){
  vl f(100);
  f[0]=2;f[1]=1;
  ll n;cin>>c;
  for(ll i=2;i<=n;i++)f[i]=f[i-1]+f[i-2];
  cout<<f[n]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'c' was not declared in this scope
   18 |   ll n;cin>>c;
      |             ^
Language: C++

int main(){
    
    int64_t N,A[110]={};
    cin>>N;
    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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'int64_t' was not declared in this scope
    3 |     int64_t N,A[110]={};
      |     ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | int main(){
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>N;
      |     ^~~
a.cc:4:10: error: 'N' was not declared in this scope
    4 |     cin>>N;
      |          ^
a.cc:5:5: error: 'A' was not declared in this scope
    5 |     A[0]=2;
      |     ^
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<A[N]<<endl;
      |     ^~~~
a.cc:12:17: error: 'endl' was not declared in this scope
   12 |     cout<<A[N]<<endl;
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '<' token
    9 |         for(int i=2,i<100;i++)lucas[i]=lucas[i-1]+lucas[i-2];
      |                      ^
      |                      ;
a.cc:9:22: error: expected primary-expression before '<' token
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'i' was not declared in this scope
    9 |         for(i=2,i<100;i++)lucas[i]=lucas[i-1]+lucas[i-2];
      |             ^
a.cc:9:26: error: expected ';' before ')' token
    9 |         for(i=2,i<100;i++)lucas[i]=lucas[i-1]+lucas[i-2];
      |                          ^
      |                          ;
Language: C++

#include <iostream>
using namespace std;

int main() {
	int n;
	long long lucas[100]={2,1};
	cin>>n;
	
	if(n>=3)lucas[n-1]=lucas[n-2]+lucas[n-3];
	cout<<lucas[n-1]<,endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected primary-expression before ',' token
   10 |         cout<<lucas[n-1]<,endl;
      |                          ^
Language: C++

n = int(input())
lucas = [2,1]
for i in range(2,n+1):
    luca = lucas[i-2] + lucas[i-1]
    lucas.append(luca)
print(lucas[n])

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int_64t f (int_64t i,vector<int_64t> &v) {
  if (i == 0) {
    v[i] = 2;
    return v[i];
  }
  else if (i == 1) {
    v[i] = 1;
    return v[i];
  }
  else if (v[i-1] != 0 && v[i-2] != 0) {
    v[i] = v[i-1]+v[i-2];
    return v[i];
  }
  else {
    v[i] = f(i-1,v)+f(i-2,v);
    return f(i-1,v)+f(i-2,v);
  }
}
int main () {
  int_64t a;
  cin >> a;
  vector<int_64t> v(a,0);
  cout << f(a,v) << endl;
}

Compiler output:
a.cc:3:1: error: 'int_64t' does not name a type; did you mean 'int64_t'?
    3 | int_64t f (int_64t i,vector<int_64t> &v) {
      | ^~~~~~~
      | int64_t
a.cc: In function 'int main()':
a.cc:22:3: error: 'int_64t' was not declared in this scope; did you mean 'int64_t'?
   22 |   int_64t a;
      |   ^~~~~~~
      |   int64_t
a.cc:23:10: error: 'a' was not declared in this scope
   23 |   cin >> a;
      |          ^
a.cc:24:17: error: template argument 2 is invalid
   24 |   vector<int_64t> v(a,0);
      |                 ^
a.cc:24:24: error: expression list treated as compound expression in initializer [-fpermissive]
   24 |   vector<int_64t> v(a,0);
      |                        ^
a.cc:25:11: error: 'f' was not declared in this scope
   25 |   cout << f(a,v) << endl;
      |           ^
Language: C++

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

Compiler output:
a.cc:3:1: error: ISO C++ forbids declaration of 'f' with no type [-fpermissive]
    3 | f (int i) {
      | ^
a.cc:14:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   14 | main () {
      | ^~~~
Language: C++

#include <bits/std++.h>
#include <iostream>

using namespace std;
int main() {
  int N;
  cin >> N;
  int L = 2;
  for (int i = 0; i < N; i++) {
    if (i == 1) {
      L = 1;
    } else  {
    }
  }
  cout << L << endl;

}

int calcL(int FirstValue, int SecondValue) {

  int FirstResult, SecondResult;
  FirstResult = CalcResult(FirstValue);
  SecondResult = CalcResult(SecondResult);
  
  return FirstResult+SecondResult;
}

int CalcResult(int CheckValue) {
  int result;
  if (CheckValue == 0) {
    result = zero();
  } else if (CheckValue = 1) {
    result = first();
  } else {
    result = CalcResult(CheckValue - 1);
  }
  return result;
}

int first() {
  return 1;
}

int zero() {
  return 2;
}


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

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



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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: expected ';' before 'L'
   17 |   printf L(f[N]);
      |         ^~
      |         ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: invalid conversion from 'long long int' to 'const char*' [-fpermissive]
   16 |   printf (f[N]);
      |           ~~~^
      |              |
      |              long 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/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/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 <bits/stdc++.h>
using namespace std;

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

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

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

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

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


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


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

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


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

    vector<int_64> ryuka(N);

    ryuka[0] = 2; ryuka[1] = 1;

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

    cout << ryuka[N] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'int_64' was not declared in this scope; did you mean 'rintf64'?
   10 |     vector<int_64> ryuka(N);
      |            ^~~~~~
      |            rintf64
a.cc:10:18: error: template argument 1 is invalid
   10 |     vector<int_64> ryuka(N);
      |                  ^
a.cc:10:18: error: template argument 2 is invalid
a.cc:12:10: error: invalid types 'int[int]' for array subscript
   12 |     ryuka[0] = 2; ryuka[1] = 1;
      |          ^
a.cc:12:24: error: invalid types 'int[int]' for array subscript
   12 |     ryuka[0] = 2; ryuka[1] = 1;
      |                        ^
a.cc:15:19: error: request for member 'push_back' in 'ryuka', which is of non-class type 'int'
   15 |             ryuka.push_back(ryuka[i - 1] + ryuka[i - 2]);
      |                   ^~~~~~~~~
a.cc:15:34: error: invalid types 'int[int]' for array subscript
   15 |             ryuka.push_back(ryuka[i - 1] + ryuka[i - 2]);
      |                                  ^
a.cc:15:49: error: invalid types 'int[int]' for array subscript
   15 |             ryuka.push_back(ryuka[i - 1] + ryuka[i - 2]);
      |                                                 ^
a.cc:19:18: error: invalid types 'int[int]' for array subscript
   19 |     cout << ryuka[N] << endl;
      |                  ^
Language: C++

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

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

    vector<long> ryuka;

    ryuka[0] = 2; ryuka[1] = 1;

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

    cout << ryuka[N] << endl;
}



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

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

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

    vector<long> ryuka(N);

    ryuka[0] = 2; ryuka[1] = 1;


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

    cout << ryuka[N] << endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     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 | #inlcude<bits/stdc++.h>
a.cc:9:5: error: 'vector' was not declared in this scope
    9 |     vector<long> ryuka(N);
      |     ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #inlcude<bits/stdc++.h>
a.cc:9:12: error: expected primary-expression before 'long'
    9 |     vector<long> ryuka(N);
      |            ^~~~
a.cc:11:5: error: 'ryuka' was not declared in this scope
   11 |     ryuka[0] = 2; ryuka[1] = 1;
      |     ^~~~~
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << ryuka[N] << endl;
      |     ^~~~
a.cc:20:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:25: error: 'endl' was not declared in this scope
   20 |     cout << ryuka[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 | #inlcude<bits/stdc++.h>
Language: C++

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

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

    vector<long> ryuka = {2,1};


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

    cout << ryuka[N] << endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     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 | #inlcude<bits/stdc++.h>
a.cc:9:5: error: 'vector' was not declared in this scope
    9 |     vector<long> ryuka = {2,1};
      |     ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #inlcude<bits/stdc++.h>
a.cc:9:12: error: expected primary-expression before 'long'
    9 |     vector<long> ryuka = {2,1};
      |            ^~~~
a.cc:14:13: error: 'ryuka' was not declared in this scope
   14 |             ryuka.push_back(ryuka[i - 1] + ryuka[i - 2]);
      |             ^~~~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << ryuka[N] << endl;
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:13: error: 'ryuka' was not declared in this scope
   18 |     cout << ryuka[N] << endl;
      |             ^~~~~
a.cc:18:25: error: 'endl' was not declared in this scope
   18 |     cout << ryuka[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 | #inlcude<bits/stdc++.h>
Language: C++

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

    std::vector<int> ryuka = {2,1};


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

    std::cout << ryuka[N] << endl;
}



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

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

int L (int N){
  if(N==0){
    return 2;
  }
  if(N==1){
    return 1;
  }
  int64_t s=L(N);
  L(N) = L(N-1)+L(N-2);
  return s;
}
    
  
int main(){
  int N;
  scanf("%d",&N);

  
  printf("%lld\n",L(N));
}
 



Compiler output:
a.cc: In function 'int L(int)':
a.cc:12:4: error: lvalue required as left operand of assignment
   12 |   L(N) = L(N-1)+L(N-2);
      |   ~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
 
  if (N == 1) {
    cout << 2;
  }
  
  else if (N == 2) {
    cout << 1;
  }
    
  else {
    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);
    }
  cout << L.at(N - 1)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:22: error: expected ';' before '}' token
   22 |   cout << L.at(N - 1)
      |                      ^
      |                      ;
   23 | }
      | ~                     
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
 
  if (N == 1) {
    cout << 2;
  }
  
  else if (N == 2) {
    cout << 1;
  )
    
  else {
    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);
    }
  cout << L.at(N - 1)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected primary-expression before ')' token
   13 |   )
      |   ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:11:20: note: to match this '{'
   11 |   else if (N == 2) {
      |                    ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

<?php

    fscanf(STDIN,"%d",$N);
        $before1 = 2;
        $before_result = 1;
        $l_now=0;
        for($i=1;$i<$N;$i++){
            $l_now = $before1+$before_result;
            $before1 = $before_result;
            $before_result = $l_now;
        }
    
        

        echo $l_now."\n";


Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:4:9: error: '$before1' does not name a type
    4 |         $before1 = 2;
      |         ^~~~~~~~
a.cc:5:9: error: '$before_result' does not name a type
    5 |         $before_result = 1;
      |         ^~~~~~~~~~~~~~
a.cc:6:9: error: '$l_now' does not name a type
    6 |         $l_now=0;
      |         ^~~~~~
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for($i=1;$i<$N;$i++){
      |         ^~~
a.cc:7:18: error: '$i' does not name a type
    7 |         for($i=1;$i<$N;$i++){
      |                  ^~
a.cc:7:24: error: '$i' does not name a type
    7 |         for($i=1;$i<$N;$i++){
      |                        ^~
a.cc:15:9: error: 'echo' does not name a type
   15 |         echo $l_now."\n";
      |         ^~~~
Language: C++

<?php

    fscanf(STDIN,"%d",$N);
        $before1 = 2;
        $before_result = 1;
        $l_now=0;
        for($i=2;$i<$N;$i++){
            $l_now += $before1+$before_result;
            $before1 = $before_result;
            $before_result = $l_now;
            echo "$l_now";
        }
    
        

        echo $l_now."\n";


Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:4:9: error: '$before1' does not name a type
    4 |         $before1 = 2;
      |         ^~~~~~~~
a.cc:5:9: error: '$before_result' does not name a type
    5 |         $before_result = 1;
      |         ^~~~~~~~~~~~~~
a.cc:6:9: error: '$l_now' does not name a type
    6 |         $l_now=0;
      |         ^~~~~~
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for($i=2;$i<$N;$i++){
      |         ^~~
a.cc:7:18: error: '$i' does not name a type
    7 |         for($i=2;$i<$N;$i++){
      |                  ^~
a.cc:7:24: error: '$i' does not name a type
    7 |         for($i=2;$i<$N;$i++){
      |                        ^~
a.cc:16:9: error: 'echo' does not name a type
   16 |         echo $l_now."\n";
      |         ^~~~
Language: C++

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

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


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

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

int main() {
  int N;
  cin >> N;
  
  vector<int_64t> luca(N + 1);
  luca.at(0) = 2;
  luca.at(1) = 1;
  rep(i, N - 1) {
    luca.at(i + 2) = luca.at(i) + luca.at(i + 1);
  }
  cout << luca.at(N) << endl;
}

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

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



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


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

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



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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:33: error: expected ';' before '}' token
   17 |     a.at(i)==a.at(i-2)+a.at(i-1)
      |                                 ^
      |                                 ;
   18 |    }
      |    ~
Language: C++

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



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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:33: error: expected ';' before '}' token
   17 |     a.at(i)==a.at(i-2)+a.at(i-1)
      |                                 ^
      |                                 ;
   18 |    }
      |    ~
Language: C++

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



int main() {
 int n;
  cin>>n;
 victor<int64_t> a(n);
  a[0]=2;
  a[1]=1;
  if(n<=2){
    cout<<a[n-1]<<endl;
  }
  else{
   for (int i = 2; i < n; i++) {
    a.at(i)==a.at(i-2)+a.at(i-1)
   }
    cout<<a[n-1]<<endl;
  }
}
  


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

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



int main() {
 int n;
  cin>>n;
 victor<int long long> a(n);
  a[0]=2;
  a[1]=1;
  if(n<=2){
    cout<<a[n-1]<<endl;
  }
  else{
   for (int i = 2; i < n; i++) {
    a.at(i)==a.at(i-2)+a.at(i-1)
   }
    cout<<a[n-1]<<endl;
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'victor' was not declared in this scope
    9 |  victor<int long long> a(n);
      |  ^~~~~~
a.cc:9:9: error: expected primary-expression before 'int'
    9 |  victor<int long long> a(n);
      |         ^~~
a.cc:10:3: error: 'a' was not declared in this scope
   10 |   a[0]=2;
      |   ^
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 cin >> n;
  cout << lucas(n);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected initializer before '>>' token
   11 |   int cin >> n;
      |           ^~
a.cc:12:17: error: 'n' was not declared in this scope; did you mean 'yn'?
   12 |   cout << lucas(n);
      |                 ^
      |                 yn
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 () {
  cin >> n;
  cout << lucas(n);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'n' was not declared in this scope; did you mean 'yn'?
   11 |   cin >> n;
      |          ^
      |          yn
Language: C++

include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    vector<long>a(86);
    a[0]=2;
    a[1]=1;
    for(int i=2;i<86;i++){
        a[i] = a[i-1]+a[i-2];
    }   
    printf("%ld\n",a[n-1]);
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>n;
      |     ^~~
a.cc:6:5: error: 'vector' was not declared in this scope
    6 |     vector<long>a(86);
      |     ^~~~~~
a.cc:6:12: error: expected primary-expression before 'long'
    6 |     vector<long>a(86);
      |            ^~~~
a.cc:7:5: error: 'a' was not declared in this scope
    7 |     a[0]=2;
      |     ^
a.cc:12:5: error: 'printf' was not declared in this scope
   12 |     printf("%ld\n",a[n-1]);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <bits/stdc++.h>
Language: C++

int64_t

Compiler output:
a.cc:1:1: error: 'int64_t' does not name a type
    1 | int64_t
      | ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | int64_t
Language: C++

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


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

  cout << luca[n-1] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before 'for'
    9 |   luca[0]=2; luca[1]=10
      |                        ^
      |                        ;
   10 |   for(int i=2;i<N;++i){
      |   ~~~                   
a.cc:10:15: error: 'i' was not declared in this scope
   10 |   for(int i=2;i<N;++i){
      |               ^
a.cc:14:16: error: 'n' was not declared in this scope
   14 |   cout << luca[n-1] << endl;
      |                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: array must be initialized with a brace-enclosed initializer
   11 |    long long L[i]=L[i-1] + L[i-2];
      |                   ~~~~~~~^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: array must be initialized with a brace-enclosed initializer
   11 |    long long L[i]=L[i-1] + L[i-2];
      |                   ~~~~~~~^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected primary-expression before 'long'
   13 |   cout << long long L[N] << endl;
      |           ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before 'LL'
   11 |     L[i]LL=L[i-1] + L[i-2];
      |         ^~
      |         ;
a.cc:11:8: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   11 |     L[i]LL=L[i-1] + L[i-2];
      |        ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1128:7: note: declared here
 1128 |       operator[](size_type __n) _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before 'LL'
   11 |     L[i]LL=L[i-1]LL + L[i-2]LL;
      |         ^~
      |         ;
a.cc:11:8: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   11 |     L[i]LL=L[i-1]LL + L[i-2]LL;
      |        ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1128:7: note: declared here
 1128 |       operator[](size_type __n) _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected ';' before 'LL'
   13 |   cout << L[N]LL << endl;
      |               ^~
      |               ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before 'LL'
   11 |     L[i]LL=L[i-1]LL + L[i-2]LL;
      |         ^~
      |         ;
a.cc:11:8: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   11 |     L[i]LL=L[i-1]LL + L[i-2]LL;
      |        ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1128:7: note: declared here
 1128 |       operator[](size_type __n) _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
a.cc:13:15: error: expected ';' before 'LL'
   13 |   cout << L[N]LL << endl;
      |               ^~
      |               ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |     L[i]LL=L[i-1]LL + L[i-2]LL;
      |       ^
a.cc:12:15: error: expected ';' before 'LL'
   12 |   cout << L[N]LL << endl
      |               ^~
      |               ;
Language: C++

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

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vect' was not declared in this scope
    8 |   vect<int64_t> two;
      |   ^~~~
a.cc:8:15: error: expected primary-expression before '>' token
    8 |   vect<int64_t> two;
      |               ^
a.cc:8:17: error: 'two' was not declared in this scope
    8 |   vect<int64_t> two;
      |                 ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vect' was not declared in this scope
    8 |   vect<int64_t> Lasttwo;
      |   ^~~~
a.cc:8:15: error: expected primary-expression before '>' token
    8 |   vect<int64_t> Lasttwo;
      |               ^
a.cc:8:17: error: 'Lasttwo' was not declared in this scope
    8 |   vect<int64_t> Lasttwo;
      |                 ^~~~~~~
Language: C++

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

int main(){
  int64_t Lucas;
  int N;
  cin >> N;
  vect<int64_t> Lasttwo;
  Lasttwo={2,1};
  for(int i=2;i<N+1;i++){
    Lucas=Lasttwo.at(0)+Lasttwo.at(1);
    Lasttwo.at(0)=Lasttwo.at(1);
    Lasttwo.at(1)=Lucas;
  }
  cout << Lucas << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vect' was not declared in this scope
    8 |   vect<int64_t> Lasttwo;
      |   ^~~~
a.cc:8:15: error: expected primary-expression before '>' token
    8 |   vect<int64_t> Lasttwo;
      |               ^
a.cc:8:17: error: 'Lasttwo' was not declared in this scope
    8 |   vect<int64_t> Lasttwo;
      |                 ^~~~~~~
Language: C++

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

int main(){
  int64_t Lucas;
  int N;
  cin >> N;
  vect<int64_t> Lasttwo;
  Lasttwo={2,1};
  for(int i=2,i<N+1,i++){
    Lucas=Lasttwo.at(0)+Lasttwo.at(1);
    Lasttwo.at(0)=Lasttwo.at(1);
    Lasttwo.at(1)=Lucas;
  }
  cout << Lucas << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vect' was not declared in this scope
    8 |   vect<int64_t> Lasttwo;
      |   ^~~~
a.cc:8:15: error: expected primary-expression before '>' token
    8 |   vect<int64_t> Lasttwo;
      |               ^
a.cc:8:17: error: 'Lasttwo' was not declared in this scope
    8 |   vect<int64_t> Lasttwo;
      |                 ^~~~~~~
a.cc:10:16: error: expected ';' before '<' token
   10 |   for(int i=2,i<N+1,i++){
      |                ^
      |                ;
a.cc:10:16: error: expected primary-expression before '<' token
a.cc:10:24: error: expected ';' before ')' token
   10 |   for(int i=2,i<N+1,i++){
      |                        ^
      |                        ;
Language: C++

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

int main(){
  int64_t Lucas;
  int N;
  cin >> N;
  for(int i=2,i<N+1,i++){
  vect<int> Lasttwo(2);
    if(i==2){
      Lasttwo.at(0)=2;
      Lasttwo.at(1)=1;
    }  
    Lucas=Lasttwo.at(0)+Lasttwo.at(1);
    Lasttwo.at(0)=Lasttwo.at(1);
    Lasttwo.at(1)=Lucas;
  }
  cout << Lucas << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before '<' token
    8 |   for(int i=2,i<N+1,i++){
      |                ^
      |                ;
a.cc:8:16: error: expected primary-expression before '<' token
a.cc:8:24: error: expected ';' before ')' token
    8 |   for(int i=2,i<N+1,i++){
      |                        ^
      |                        ;
a.cc:9:3: error: 'vect' was not declared in this scope
    9 |   vect<int> Lasttwo(2);
      |   ^~~~
a.cc:9:8: error: expected primary-expression before 'int'
    9 |   vect<int> Lasttwo(2);
      |        ^~~
a.cc:11:7: error: 'Lasttwo' was not declared in this scope
   11 |       Lasttwo.at(0)=2;
      |       ^~~~~~~
a.cc:14:11: error: 'Lasttwo' was not declared in this scope
   14 |     Lucas=Lasttwo.at(0)+Lasttwo.at(1);
      |           ^~~~~~~
Language: C++

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

int main(){
  int64_t Lucas;
  int N;
  cin >> N;
  vect<int> Lasttwo(2);
  for(int i=2,i<N+1,i++){
    if(i==2){
      Lasttwo.at(0)=2;
      Lasttwo.at(1)=1;
    }  
    Lucas=Lasttwo.at(0)+Lasttwo.at(1);
    Lasttwo.at(0)=Lasttwo.at(1);
    Lasttwo.at(1)=Lucas;
  }
  cout << Lucas << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vect' was not declared in this scope
    8 |   vect<int> Lasttwo(2);
      |   ^~~~
a.cc:8:8: error: expected primary-expression before 'int'
    8 |   vect<int> Lasttwo(2);
      |        ^~~
a.cc:9:16: error: expected ';' before '<' token
    9 |   for(int i=2,i<N+1,i++){
      |                ^
      |                ;
a.cc:9:16: error: expected primary-expression before '<' token
a.cc:9:24: error: expected ';' before ')' token
    9 |   for(int i=2,i<N+1,i++){
      |                        ^
      |                        ;
a.cc:11:7: error: 'Lasttwo' was not declared in this scope
   11 |       Lasttwo.at(0)=2;
      |       ^~~~~~~
a.cc:14:11: error: 'Lasttwo' was not declared in this scope
   14 |     Lucas=Lasttwo.at(0)+Lasttwo.at(1);
      |           ^~~~~~~
Language: C++

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

int main(){
  int64_t Lucas;
  int N;
  cin >> N;
  vect<int> Lucas(2);
  for(int i=2,i<N+1,i++){
    if(i==2){
      Lucas.at(0)=2;
      Lucas.at(1)=1;
    }  
    Lucas=Lucas.at(0)+Lucas.at(1);
    Lucas.at(0)=Lucas.at(1);
    Lucas.at(1)=Lucas;
  }
  cout << Lucas << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'vect' was not declared in this scope
    9 |   vect<int> Lucas(2);
      |   ^~~~
a.cc:9:8: error: expected primary-expression before 'int'
    9 |   vect<int> Lucas(2);
      |        ^~~
a.cc:10:16: error: expected ';' before '<' token
   10 |   for(int i=2,i<N+1,i++){
      |                ^
      |                ;
a.cc:10:16: error: expected primary-expression before '<' token
a.cc:10:24: error: expected ';' before ')' token
   10 |   for(int i=2,i<N+1,i++){
      |                        ^
      |                        ;
a.cc:12:13: error: request for member 'at' in 'Lucas', which is of non-class type 'int64_t' {aka 'long int'}
   12 |       Lucas.at(0)=2;
      |             ^~
a.cc:13:13: error: request for member 'at' in 'Lucas', which is of non-class type 'int64_t' {aka 'long int'}
   13 |       Lucas.at(1)=1;
      |             ^~
a.cc:15:17: error: request for member 'at' in 'Lucas', which is of non-class type 'int64_t' {aka 'long int'}
   15 |     Lucas=Lucas.at(0)+Lucas.at(1);
      |                 ^~
a.cc:15:29: error: request for member 'at' in 'Lucas', which is of non-class type 'int64_t' {aka 'long int'}
   15 |     Lucas=Lucas.at(0)+Lucas.at(1);
      |                             ^~
a.cc:16:11: error: request for member 'at' in 'Lucas', which is of non-class type 'int64_t' {aka 'long int'}
   16 |     Lucas.at(0)=Lucas.at(1);
      |           ^~
a.cc:16:23: error: request for member 'at' in 'Lucas', which is of non-class type 'int64_t' {aka 'long int'}
   16 |     Lucas.at(0)=Lucas.at(1);
      |                       ^~
a.cc:17:11: error: request for member 'at' in 'Lucas', which is of non-class type 'int64_t' {aka 'long int'}
   17 |     Lucas.at(1)=Lucas;
      |           ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long N,L_2,L_1,Li;
  
  cin>>N;
  L_2=2;
  L_1=1;
  if (N==1)cout<<1<<endl;
  else{
    for(int i=2;i<=N;++i){
      Li=L_2+L_1;
      L_2=L_1;
      L_1=Li;

    }
    cout<<Li<<endl;
  }

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

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

int main() {
    int n;
    cin >> n;
    int l0 = 2, l1 = 1;
    int64_t li, li1, li2;
    for (int i=0; i<n+1; i++) {
        if (i=0) {
            li = l0;
        }
        else if (i=1) {
            li1 = li;
            li = l1;
        }
        else {
            li2 = li1;
            li1 = li;
            li = li1 + li2;
        }
    cout << liLL << endl;
}

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

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

int main() {
    int n;
    cin >> n;
    int l0 = 2, l1 = 1;
    int64_t li, li1, li2;
    for (int i=0; i<n+1; i++) {
        if (i=0) {
            1i = l0;
        }
        else if (i=1) {
            li1 = li;
            li = l1;
        }
        else {
            li2 = li1;
            li1 = li;
            li = li1 + li2;
        }
    cout << li << endl;
}

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

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

int main() {
    int n;
    cin >> n;
    int l0 = 2, l1 = 1, li, li1, li2;
    for (int i=0; i<n+1; i++) {
        if (i=0) 1i = l0;
        else if (i=1) {
            li1 = li;
            li = l1;
        }
        else {
            li2 = li1;
            li1 = li;
            li = li1 + li2;
        }
    cout << li << endl;
}

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

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

void main(){
  int n,a=2,b=1;
  cin>>n;
  int64_t ans=0;
  if(n==0){
    cout<<a<<endl;
    return; 
  }
  if(n==1){
    cout<<b<<endl;
    return;
  }
  for(int i=2;i<n;i++){
    ans=a+b;
    a=b;
    b=ans;
  }
  cout<<ans<<endl;
  return;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |     return;
      |     ^~~~~~
a.cc:14:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |     return;
      |     ^~~~~~
a.cc:22:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |   return;
      |   ^~~~~~
Language: C++

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

int main() {
  scanf("%ld", &N);
  
  int L0 = 2, L1 = 1;
  int i = 1;
  while(i<N){
    if(i%2 == 1){
      L0 = L0 + L1;
    }else{
      L1 = L0 + L1;
    }
  }
}


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

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

int64_t Lucas(int64_t n) {
  // ベースケース
  if (n == 0) {
    return 2;  
  }
    if (n == 1) {
    return 1;  
  }
  // 再帰ステップ
  int64_t s = Lucas(n - 1) + Lucas(n - 2) ;  // 0 ~ (n-1) の総和
  return s ;  // 0 ~ n の総和
  
}
  
  cout << Lucas(n) << endl;
  
}

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

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

int64_t Lucas(int64_t n) {
  // ベースケース
  if (n == 0) {
    return 2;  
  }
    if (n == 1) {
    return 1;  
  }
  // 再帰ステップ
  int64_t s = Lucas(n - 1) + Lucas(n - 2) ;  // 0 ~ (n-1) の総和
  return s ;  // 0 ~ n の総和
}
  
  cout << Lucas(n) << endl;
  
}

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

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

int main(){
  	long long a=2,b=1,c=0;
  int N;
  cin >> N;
  int count = 2;
  if(N == 1){
  cout << "1" << endl;
  return;
  }
    while(count <= N){
    c = a+b;
    a = b;
    b = c;
    count++;  
    }
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |   return;
      |   ^~~~~~