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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected initializer before 'n'
    5 |   unsigned int64_t n=0,a=2,b=1,ans=0;
      |                    ^
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> n;
      |          ^
      |          yn
a.cc:8:20: error: expected initializer before 'tmp'
    8 |   unsigned int64_t tmp=0;
      |                    ^~~
a.cc:10:24: error: expected ';' before 'i'
   10 |   for (unsigned int64_t i=2; i<=n; i++) {
      |                        ^~
      |                        ;
a.cc:10:25: error: 'i' was not declared in this scope
   10 |   for (unsigned int64_t i=2; i<=n; i++) {
      |                         ^
a.cc:10:34: error: expected ')' before ';' token
   10 |   for (unsigned int64_t i=2; i<=n; i++) {
      |       ~                          ^
      |                                  )
a.cc:10:36: error: 'i' was not declared in this scope
   10 |   for (unsigned int64_t i=2; i<=n; i++) {
      |                                    ^
a.cc:16:11: error: 'b' was not declared in this scope
   16 |   cout << b << endl;
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: invalid operands of types 'int8_t' {aka 'signed char'} and '<unresolved overloaded function type>' to binary 'operator<<'
   19 |     cout<c<<endl;
      |          ~^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'i' was not declared in this scope
   13 |       for(i=0;i<N;i++){
      |           ^
Language: C++

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

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

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

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

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

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

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

Compiler output:
a.cc:4:10: error: expected unqualified-id before 'int'
    4 | long int(int n){
      |          ^~~
a.cc:4:10: error: expected ')' before 'int'
    4 | long int(int n){
      |         ~^~~
      |          )
a.cc: In function 'int main()':
a.cc:19:11: error: 'n' was not declared in this scope
   19 |   cout<<L(n)<<endl;
      |           ^
a.cc:19:9: error: 'L' was not declared in this scope
   19 |   cout<<L(n)<<endl;
      |         ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int64_t>L(N+1);
   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);
  }
  plintf("%ld\n",&L.at(N));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'plintf' was not declared in this scope; did you mean 'printf'?
   13 |   plintf("%ld\n",&L.at(N));
      |   ^~~~~~
      |   printf
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before ':' token
   10 |       L.at(i)=2:
      |                ^
      |                ;
Language: C++

#include <bits/stdc++.h>

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

  printf("%d\n",L.at(N-1));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> L(N);
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
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:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> L(N);
      |          ^~~
a.cc:7:3: error: 'L' was not declared in this scope
    7 |   L.at(0)=2;
      |   ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: expected ';' before 'L'
   14 |   cout L(N);
      |       ^~
      |       ;
a.cc: In function 'int64_t L(int)':
a.cc:10:1: warning: control reaches end of non-void function [-Wreturn-type]
   10 | }
      | ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout L(N);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: In function 'int64_t L(int)':
a.cc:10:1: warning: control reaches end of non-void function [-Wreturn-type]
   10 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   pritnf("%d",b[i]);
      |   ^~~~~~
      |   printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:7: error: array size missing in 'b'
    5 |   int b[];
      |       ^
main.c:16:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   pritnf("%d",b[i]);
      |   ^~~~~~
      |   printf
main.c: At top level:
main.c:21:5: error: redefinition of 'main'
   21 | int main(void)
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void)
      |     ^~~~
main.c: In function 'main':
main.c:24:7: error: array size missing in 'b'
   24 |   int b[];
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: array size missing in 'b'
    5 |   int b[];
      |       ^
main.c:16:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   pritnf("%d",b[i]);
      |   ^~~~~~
      |   printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'L' [-Wimplicit-function-declaration]
    9 |   L(0)=1;
      |   ^
main.c:9:7: error: lvalue required as left operand of assignment
    9 |   L(0)=1;
      |       ^
main.c:10:7: error: lvalue required as left operand of assignment
   10 |   L(1)=2;
      |       ^
main.c:12:19: error: expected ';' before ')' token
   12 |   for(i=2,i<=a;i++){
      |                   ^
      |                   ;
main.c:13:9: error: lvalue required as left operand of assignment
   13 |     L(i)=L(i-2)+L(i-1);
      |         ^
Language: C++

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

int main()
{
  int a,i;
  int64_t L[87]={0};
  L[0]=2;
  L[1]=1;
  
  cin >> a;
  for(i=2;i<a;i++)
  {
    L[i]=L[i-1]+L[i-2];
  }
  cout << L[a];
  
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: expected ';' before '}' token
   18 |   return 0
      |           ^
      |           ;
   19 | }
      | ~
Language: C++

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

int main()
{
  int a,i;
  int64_t L[87]={};
  L[0]=2;
  L[1]=1;
  
  cin >> a;
  for(i=2;i<a;i++)
  {
    L[i]=L[i-1]+L[i-2];
  }
  cout << L[a];
  
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: expected ';' before '}' token
   18 |   return 0
      |           ^
      |           ;
   19 | }
      | ~
Language: C++

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

int main()
{
  int a,i;
  int_64_t L[87]={};
  L[0]=2;
  L[1]=1;
  
  cin >> a;
  for(i=2;i<a;i++)
  {
    L[i]=L[i-1]+L[i-2];
  }
  cout << L[a];
  
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'int_64_t' was not declared in this scope; did you mean 'int64_t'?
    7 |   int_64_t L[87]={};
      |   ^~~~~~~~
      |   int64_t
a.cc:8:3: error: 'L' was not declared in this scope
    8 |   L[0]=2;
      |   ^
a.cc:18:11: error: expected ';' before '}' token
   18 |   return 0
      |           ^
      |           ;
   19 | }
      | ~
Language: C++

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

int main()
{
  int a,i;
  int_64_t L[87]={};
  L[0]=2;
  L[1]=1;
  
  cin >> a;
  for(i=2;i<a;i++)
  {
    L[i]=L[i-1]+L[i-2];
  }
  cout << L[a];
  
  return 0
}

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int64_t> L(86);
  L.at(0) = 2LL;
  L.at(1) = 1LL;
  for (int i = 2; i <= N; i++) {
    L.at(i) = L.at(i - 1) + L.at(i - 2);
  }
  prinff("%lld", L.at(N));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'prinff' was not declared in this scope; did you mean 'printf'?
   13 |   prinff("%lld", L.at(N));
      |   ^~~~~~
      |   printf
Language: C++

using namespace std;


int N;


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

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

}

Compiler output:
a.cc:7:1: error: 'int64_t' does not name a type
    7 | int64_t L(int n){
      | ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | using namespace std;
a.cc: In function 'int main()':
a.cc:20:5: error: 'cin' was not declared in this scope
   20 |     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:21:9: error: 'cout' was not declared in this scope
   21 |         cout << L(N) << endl;
      |         ^~~~
a.cc:21:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:17: error: 'L' was not declared in this scope
   21 |         cout << L(N) << endl;
      |                 ^
a.cc:21:25: error: 'endl' was not declared in this scope
   21 |         cout << L(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/std++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<int64_t> vec(N);
  vec.at(0) = 2;
  vec.at(1) = 1;
  for (int 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: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;
  long long L[N];
  cin >> N;
  L[0] = 2;
  L[1] = 1;
  for (int i = 2; i <= N; i++) {
    L(i) = L(i-1) + L(i-2);
  }
  cout << L[N] << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'L' cannot be used as a function
   11 |     L(i) = L(i-1) + L(i-2);
      |     ~^~~
a.cc:11:13: error: 'L' cannot be used as a function
   11 |     L(i) = L(i-1) + L(i-2);
      |            ~^~~~~
a.cc:11:22: error: 'L' cannot be used as a function
   11 |     L(i) = L(i-1) + L(i-2);
      |                     ~^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before ')' token
   10 |   for (int i = 2; i <= N, i++) {
      |                              ^
      |                              ;
a.cc:11:6: error: 'L' cannot be used as a function
   11 |     L(i) = L(i-1) + L(i-2);
      |     ~^~~
a.cc:11:13: error: 'L' cannot be used as a function
   11 |     L(i) = L(i-1) + L(i-2);
      |            ~^~~~~
a.cc:11:22: error: 'L' cannot be used as a function
   11 |     L(i) = L(i-1) + L(i-2);
      |                     ~^~~~~
Language: C++

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

int main() { 
    // declaring base values 
    // for positions 0 and 1 
  int a = 2; 
  int b = 1;
  int64_t c;
  int N;
  if (N == 0) {
    cout << a << endl;
  }
  if (N == 1) {
    cout << b << endl;
  }
    
  
    // generating number 
  if (N >= 2) {
    for (int i = 2; i <= n; i++) { 
      c = a + b; 
      a = b; 
      b = c; 
    } 
    cout << c << endl;
  } 
} 

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

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

int lucas(int n) { 
    // declaring base values 
    // for positions 0 and 1 
  int a = 2; 
  int b = 1;
  int64_t c;
  int N;
  if (N == 0) {
    cout << a << endl;
  }
  if (N == 1) {
    cout << b << endl;
  }
    
  
    // generating number 
  if (N >= 2) {
    for (int i = 2; i <= n; i++) { 
      c = a + b; 
      a = b; 
      b = c; 
    } 
    cout << c << endl;
  } 
} 

Compiler output:
a.cc: In function 'int lucas(int)':
a.cc:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
   28 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

# include <bits/stdc++.h>
using namespace std;
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: In function 'int main()':
a.cc:8:10: error: expected ';' before 'LL'
    8 |   L [0]=2 LL , L [1]=1 LL ;
      |          ^~~
      |          ;
a.cc:10:11: warning: unknown escape sequence: '\040'
   10 |   printf ("% lld \ n " , L [ N ]);
      |           ^~~~~~~~~~~~
Language: C++

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

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

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

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

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

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

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

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

int64_t sum(int x) {
    
  sum(0) = 2;
  sum(1) = 1;
  
  if (x == 2) {
    int s = sum(0) + sum(1);
    return s;
  }
  
  int64_t s = sum(x-1) + sum(x-2);
  return s;
  
}
int main() {
  int x;
  cin >> x;
  printf("x=%lld",sum(x));
}

Compiler output:
a.cc: In function 'int64_t sum(int)':
a.cc:6:6: error: lvalue required as left operand of assignment
    6 |   sum(0) = 2;
      |   ~~~^~~
a.cc:7:6: error: lvalue required as left operand of assignment
    7 |   sum(1) = 1;
      |   ~~~^~~
Language: C++

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

int64_t sum(int64_t x) {
    
  sum(0) = 2;
  sum(1) = 1;
  
  if (x == 2) {
    int s = sum(0) + sum(1);
    return s;
  }
  
  int64_t s = sum(x-1) + sum(x-2);
  return s;
  
}
int main() {
  cin >> x;
  printf("x=%lld",sum(x));
}

Compiler output:
a.cc: In function 'int64_t sum(int64_t)':
a.cc:6:6: error: lvalue required as left operand of assignment
    6 |   sum(0) = 2;
      |   ~~~^~~
a.cc:7:6: error: lvalue required as left operand of assignment
    7 |   sum(1) = 1;
      |   ~~~^~~
a.cc: In function 'int main()':
a.cc:19:10: error: 'x' was not declared in this scope
   19 |   cin >> x;
      |          ^
Language: C++

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

int64_t sum(int x) {
    
  sum(0) = 2;
  sum(1) = 1;
  
  if (x == 2) {
    int s = sum(0) + sum(1);
    return s;
  }
  
  int64_t s = sum(x-1) + sum(x-2);
  return s;
  
}
int main() {
  int x;
  cin >> x;
  count << sum(x) << endl;
}

Compiler output:
a.cc: In function 'int64_t sum(int)':
a.cc:6:6: error: lvalue required as left operand of assignment
    6 |   sum(0) = 2;
      |   ~~~^~~
a.cc:7:6: error: lvalue required as left operand of assignment
    7 |   sum(1) = 1;
      |   ~~~^~~
a.cc: In function 'int main()':
a.cc:21:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int64_t' {aka 'long int'} to binary 'operator<<'
   21 |   count << sum(x) << endl;
      |   ~~~~~~^~~~~~~~~
Language: C++

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

int64_t sum(int x) {
    
  int64_t sum(0) = 2;
  int64_t sum(1) = 1;
  
  if (x == 2) {
    int s = sum(0) + sum(1);
    return s;
  }
  
  int64_t s = sum(x-1) + sum(x-2);
  return s;
  
}
int main() {
  int x;
  cin >> x;
  count << sum(x) << endl;
}

Compiler output:
a.cc: In function 'int64_t sum(int)':
a.cc:6:18: error: expected ',' or ';' before '=' token
    6 |   int64_t sum(0) = 2;
      |                  ^
a.cc:7:11: error: redeclaration of 'int64_t sum'
    7 |   int64_t sum(1) = 1;
      |           ^~~
a.cc:6:11: note: 'int64_t sum' previously declared here
    6 |   int64_t sum(0) = 2;
      |           ^~~
a.cc:10:16: error: 'sum' cannot be used as a function
   10 |     int s = sum(0) + sum(1);
      |             ~~~^~~
a.cc:10:25: error: 'sum' cannot be used as a function
   10 |     int s = sum(0) + sum(1);
      |                      ~~~^~~
a.cc:14:18: error: 'sum' cannot be used as a function
   14 |   int64_t s = sum(x-1) + sum(x-2);
      |               ~~~^~~~~
a.cc:14:29: error: 'sum' cannot be used as a function
   14 |   int64_t s = sum(x-1) + sum(x-2);
      |                          ~~~^~~~~
a.cc: In function 'int main()':
a.cc:21:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int64_t' {aka 'long int'} to binary 'operator<<'
   21 |   count << sum(x) << endl;
      |   ~~~~~~^~~~~~~~~
Language: C++

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

int64_t sum(int x) {
    
  int sum(0) = 2;
  int sum(1) = 1;
  
  if (x == 2) {
    int s = sum(0) + sum(1);
    return s;
  }
  
  int64_t s = sum(x-1) + sum(x-2);
  return s;
  
}
int main() {
  int x;
  cin >> x;
  count << sum(x) << endl;
}

Compiler output:
a.cc: In function 'int64_t sum(int)':
a.cc:6:14: error: expected ',' or ';' before '=' token
    6 |   int sum(0) = 2;
      |              ^
a.cc:7:7: error: redeclaration of 'int sum'
    7 |   int sum(1) = 1;
      |       ^~~
a.cc:6:7: note: 'int sum' previously declared here
    6 |   int sum(0) = 2;
      |       ^~~
a.cc:10:16: error: 'sum' cannot be used as a function
   10 |     int s = sum(0) + sum(1);
      |             ~~~^~~
a.cc:10:25: error: 'sum' cannot be used as a function
   10 |     int s = sum(0) + sum(1);
      |                      ~~~^~~
a.cc:14:18: error: 'sum' cannot be used as a function
   14 |   int64_t s = sum(x-1) + sum(x-2);
      |               ~~~^~~~~
a.cc:14:29: error: 'sum' cannot be used as a function
   14 |   int64_t s = sum(x-1) + sum(x-2);
      |                          ~~~^~~~~
a.cc: In function 'int main()':
a.cc:21:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int64_t' {aka 'long int'} to binary 'operator<<'
   21 |   count << sum(x) << endl;
      |   ~~~~~~^~~~~~~~~
Language: C++

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

int64_t sum(int x) {
  if (x == 2) {
    int sum(0) = 2;
    int sum(1) = 1;
    int s = sum(0) + sum(1);
    return s;
  }
  
  int64_t s = sum(x-1) + sum(x-2);
  return s;
  
}
int main() {
  int x;
  cin >> x;
  count << sum(x) << endl;
}

Compiler output:
a.cc: In function 'int64_t sum(int)':
a.cc:6:16: error: expected ',' or ';' before '=' token
    6 |     int sum(0) = 2;
      |                ^
a.cc:7:9: error: redeclaration of 'int sum'
    7 |     int sum(1) = 1;
      |         ^~~
a.cc:6:9: note: 'int sum' previously declared here
    6 |     int sum(0) = 2;
      |         ^~~
a.cc:8:16: error: 'sum' cannot be used as a function
    8 |     int s = sum(0) + sum(1);
      |             ~~~^~~
a.cc:8:25: error: 'sum' cannot be used as a function
    8 |     int s = sum(0) + sum(1);
      |                      ~~~^~~
a.cc: In function 'int main()':
a.cc:19:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int64_t' {aka 'long int'} to binary 'operator<<'
   19 |   count << sum(x) << endl;
      |   ~~~~~~^~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

long long ll;
int n;
long long ll[87];

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


Compiler output:
a.cc:7:11: error: conflicting declaration 'long long int ll [87]'
    7 | long long ll[87];
      |           ^~
a.cc:5:11: note: previous declaration as 'long long int ll'
    5 | long long ll;
      |           ^~
a.cc: In function 'int main()':
a.cc:11:22: error: array must be initialized with a brace-enclosed initializer
   11 |     long long L[0] = 2LL;
      |                      ^~~
a.cc:12:15: error: conflicting declaration 'long long int L [1]'
   12 |     long long L[1] = 1LL;
      |               ^
a.cc:11:15: note: previous declaration as 'long long int L [0]'
   11 |     long long L[0] = 2LL;
      |               ^
Language: C++

#include <iostream>

using namespace std;

long long ll;
int n;
long long ll[87];

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

Compiler output:
a.cc:7:11: error: conflicting declaration 'long long int ll [87]'
    7 | long long ll[87];
      |           ^~
a.cc:5:11: note: previous declaration as 'long long int ll'
    5 | long long ll;
      |           ^~
a.cc: In function 'int main()':
a.cc:11:5: error: 'L' was not declared in this scope
   11 |     L[0] = 2LL;
      |     ^
Language: C++

#include <iostream>

using namespace std;

long long ll;
int n;
long long ll L[87];

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

Compiler output:
a.cc:7:14: error: expected initializer before 'L'
    7 | long long ll L[87];
      |              ^
a.cc: In function 'int main()':
a.cc:11:5: error: 'L' was not declared in this scope
   11 |     L[0] = 2LL;
      |     ^
Language: C++

#include <iostream>

using namespace std;

long long ll;
int n;
ll L[87];

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

Compiler output:
a.cc:7:1: error: 'll' does not name a type
    7 | ll L[87];
      | ^~
a.cc: In function 'int main()':
a.cc:11:5: error: 'L' was not declared in this scope
   11 |     L[0] = 2LL;
      |     ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

  return 0;
}


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

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

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

int main(){
cin>>N;
int64_t a=L(N);
  cout<<fixed<<setprecision(64);
  cout<<a<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'N' was not declared in this scope
   11 | cin>>N;
      |      ^
a.cc: In function 'int64_t L(int)':
a.cc:8:1: warning: control reaches end of non-void function [-Wreturn-type]
    8 | }
      | ^
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'for'
    9 |   L[1]=1
      |         ^
      |         ;
   10 |   for(i=2;i<n;i++){
      |   ~~~    
a.cc:10:11: error: 'i' was not declared in this scope
   10 |   for(i=2;i<n;i++){
      |           ^
Language: C++

#include<iostream>

int luca(int num){
  int l2=2, l1=1;
  int l=l1;
  while (num-1>0) {
    int temp = l2;
    l2 = l1;
    l1 = l;
    l = l2 + temp;
    N--;
  }
  return l;
}

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

Compiler output:
a.cc: In function 'int luca(int)':
a.cc:11:5: error: 'N' was not declared in this scope
   11 |     N--;
      |     ^
Language: C++

#include<iostream>

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

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

Compiler output:
a.cc:3:1: error: 'def' does not name a type
    3 | def luca(int num){
      | ^~~
a.cc: In function 'int main()':
a.cc:19:16: error: 'luca' was not declared in this scope
   19 |   std::cout << luca(N) << std::endl;
      |                ^~~~
Language: C++

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

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

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

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

int main(){
  vector <long long> L(87);
  int N;
  
  cout << fixed << setprecision(18);
  L.at(0)=2;
  L.at(1)=1;
   cin >> N;
  
  for(int i=2; i<L.size(N); i++){
    L.at(i)=L.at(i-1)+L.at(i-2);
  }
  
  cout << L.at(i) << endl;
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector <long long> L(87);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <cstdint>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:6:11: error: expected primary-expression before 'long'
    6 |   vector <long long> L(87);
      |           ^~~~
a.cc:9:20: error: 'setprecision' was not declared in this scope
    9 |   cout << fixed << setprecision(18);
      |                    ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cstdint>
  +++ |+#include <iomanip>
    3 | using namespace std;
a.cc:10:3: error: 'L' was not declared in this scope
   10 |   L.at(0)=2;
      |   ^
a.cc:18:16: error: 'i' was not declared in this scope
   18 |   cout << L.at(i) << endl;
      |                ^
Language: C++

#include <iostram>
#include <cstdint>
using namespace std;

int main(){
  vector <long long> L(87);
  int N;
  
  cout << fixed << setprecision(18);
  L.at(0)=2;
  L.at(1)=1;
   cin >> N;
  
  for(int i=2; i<L.size(N); i++){
    L.at(i)=L.at(i-1)+L.at(i-2);
  }
  
  cout << L.at(i) << endl;
  
return 0;
}


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

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower

using namespace std;

int main(){
  vector <int64_t> L(87);
  int N,i;
  
  cout << fixed << setprecision(18);
  L.at(0)=2;
  L.at(1)=1;
   cin >> N;
  
  for(i=2; i<N; i++){
    L.at(i)=L.at(i-1)+L.at(i-2);
  }
  
  cout << L.at(i) << endl;
  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:20: error: 'setprecision' was not declared in this scope
   25 |   cout << fixed << setprecision(18);
      |                    ^~~~~~~~~~~~
a.cc:18:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
   17 | #include <cctype> // isupper, islower, isdigit, toupper, tolower
  +++ |+#include <iomanip>
   18 |
Language: C++

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

int main(){
  vector <int64_t> L(87);
  int N;
  
  cout << fixed << setprecision(18);
  L.at(0)=2;
  L.at(1)=1;
   cin >> N;
  
  for(int i=2; i<N; i++){
    L.at(i)=L.at(i-1)+L.at(i-2);
  }
  
  cout << L.at(i) << endl;
  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector <int64_t> L(87);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <cstdint>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:6:18: error: expected primary-expression before '>' token
    6 |   vector <int64_t> L(87);
      |                  ^
a.cc:6:20: error: 'L' was not declared in this scope
    6 |   vector <int64_t> L(87);
      |                    ^
a.cc:9:20: error: 'setprecision' was not declared in this scope
    9 |   cout << fixed << setprecision(18);
      |                    ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cstdint>
  +++ |+#include <iomanip>
    3 | using namespace std;
a.cc:18:16: error: 'i' was not declared in this scope
   18 |   cout << L.at(i) << endl;
      |                ^
Language: C++

#include <iostram>
#include <cstdint>
using namespace std;

int main(){
  vector <int64_t> L(87);
  int N;
  
  cout << fixed << setprecision(18);
  L.at(0)=2;
  L.at(1)=1;
   cin >> N;
  
  for(int i=2; i<N; i++){
    L.at(i)=L.at(i-1)+L.at(i-2);
  }
  
  cout << L.at(i) << endl;
  
return 0;
}

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

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
int main() {
	/*int n, m, k, p[201], g[201];
	cin >> n >> m;

	for (int i = 0; i < 201; i++) {
		p[i] = i;
		g[i] = i;

	}

	for (int i = 0; i < m; i++) {
		cin >> k;
		if (k == 0) {
			for (int j = 1; j <= 2 * n; j++) {
				if (j % 2 != 0) {
					p[j] = g[j - j / 2];
				}
				else if (j % 2 == 0) {
					p[j] = g[n + j / 2];
				}
			}
		}
		else if (k != 0) {
			for (int l = 1; l <= 2 * n - k; l++) {
				p[l] = g[k + l];
			}
			for (int z = 1; z <= k; z++) {
				p[2*n-k + z] = g[z];
			}
		}
		for (int q = 1; q <=2 * n; q++) {
			g[q] = p[q];
		}

	}

	for (int i = 1; i <= 2 * n; i++) {
		cout << p[i] << endl;
	}*/

	int N;
	cin >> N;

	long long L[87];

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:58:17: error: 'setprecision' was not declared in this scope
   58 |         cout << setprecision(18) << L[N] << endl;
      |                 ^~~~~~~~~~~~
a.cc:4:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include<vector>
  +++ |+#include <iomanip>
    4 | #include<string>
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  cin >> N;
  int64_t a = 2;
  int64_t  b = 1;
  for(int i = 1;i < N; i++){
    int64_t c = a + b;
    a = b;
    b = c;
  }
  printf("%d",c);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'N' was not declared in this scope
    4 |   cin >> N;
      |          ^
a.cc:12:15: error: 'c' was not declared in this scope
   12 |   printf("%d",c);
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t a = 2;
  int64_t  b = 1;
  for(int i = 1;i < N; i++;){
    int64_t c = a + b;
    a = b;
    b = c;
  }
  printf("%d",c);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'N' was not declared in this scope
    6 |   for(int i = 1;i < N; i++;){
      |                     ^
a.cc:6:27: error: expected ')' before ';' token
    6 |   for(int i = 1;i < N; i++;){
      |      ~                    ^
      |                           )
a.cc:6:28: error: expected primary-expression before ')' token
    6 |   for(int i = 1;i < N; i++;){
      |                            ^
a.cc:11:15: error: 'c' was not declared in this scope
   11 |   printf("%d",c);
      |               ^
Language: C++

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

      

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: '\U000000e5' was not declared in this scope
   10 |         å
      |         ^
Language: C++

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




Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'b' was not declared in this scope
    6 | int a = 1; b = 2;
      |            ^
Language: C++

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

#define REP(i, m, n) for (int i = (m); i < (int)(n); i++)
#define REPS(i, m, n) for (int i = (m); i <= (int)(n); i++)
#define rep(i, n) REP(i, 0, n)
#define reps(i, n) for (int i = 0; i <= (int)(n); i++)
#define rrep(i, x) for (int i = ((int)(x)-1); i >= 0; i--)
#define rreps(i, x) for (int i = (int)(x); i >= 0; i--)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define pb push_back
#define fi first
#define se second
typedef long long ll;
typedef pair<int, int> P;
const int inf = INT_MAX;
const ll INF = 1LL << 60;
const ll mod = 1e9 + 7;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<typename A, size_t N, typename T> void Fill(A (&array)[N], const T &val) { fill( (T*)array, (T*)(array+N), val ); }

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

    ll N; cin >> N;
    vector<ll> L;

    L.pb(2);
    L.pb(1);
    REPS(i, 2, N) {
        L[i].pb(L[i-1] + L[i-2]);
    }
    cout << L[N] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: request for member 'push_back' in 'L.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'}
   12 | #define pb push_back
      |            ^~~~~~~~~
a.cc:34:14: note: in expansion of macro 'pb'
   34 |         L[i].pb(L[i-1] + L[i-2]);
      |              ^~
Language: C++

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

int main() {
  int n;
  long result,pre,prepre;
  cin >> n;
  pre=1ll;
  prepre=2ll;
  if (n==1){
    result=pre;
  else{
    for (int i=2;i<=n;i++){
      result=pre+prepre;
      prepre=pre;
      pre=result;
    }
  }
  cout<<result<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else{
      |   ^~~~
a.cc:10:12: note: to match this '{'
   10 |   if (n==1){
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'longlong' was not declared in this scope
    4 | #define ll longlong
      |            ^~~~~~~~
a.cc:8:5: note: in expansion of macro 'll'
    8 |     ll n; cin>>n;
      |     ^~
a.cc:8:16: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |     ll n; cin>>n;
      |                ^
      |                yn
a.cc:9:8: error: expected ';' before 'a'
    9 |     ll a=2,b=1,c=1;
      |        ^
a.cc:11:9: error: 'c' was not declared in this scope
   11 |         c=a+b;
      |         ^
a.cc:11:11: error: 'a' was not declared in this scope
   11 |         c=a+b;
      |           ^
a.cc:11:13: error: 'b' was not declared in this scope
   11 |         c=a+b;
      |             ^
a.cc:14:11: error: 'c' was not declared in this scope
   14 |     cout<<c<<endl;
      |           ^