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

#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const int MAX = 1400;
int main() {
	char a[4];
	for (int i = 0; i < 4; i++) {
		scanf("%c", &a[i]);
	}
	if ((a[0] == a[1] && a[1] == a[2]) || (a[1] == a[2] && a[2] == a[3]) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:77: error: expected ';' before '{' token
   11 |         if ((a[0] == a[1] && a[1] == a[2]) || (a[1] == a[2] && a[2] == a[3]) {
      |                                                                             ^~
      |                                                                             ;
a.cc:14:9: error: expected primary-expression before 'else'
   14 |         else {
      |         ^~~~
a.cc:13:10: error: expected ')' before 'else'
   13 |         }
      |          ^
      |          )
   14 |         else {
      |         ~~~~
a.cc:11:12: note: to match this '('
   11 |         if ((a[0] == a[1] && a[1] == a[2]) || (a[1] == a[2] && a[2] == a[3]) {
      |            ^
Language: C++

//________
typedef long long ll;
typedef pair<int,int> Pii;
typedef vector<int> Vi;
typedef vector<Pii> Vp;
#define pb push_back
#define fi first
#define se second
#define mkp make_pair
#define All(v) (v).begin(), (v).end()
#define rep(i,n) for(int i=0; i<(n); ++i)
#define reps(i,f,n) for(int i=(f); i<=(n); ++i)
#define show(x) cerr << #x << ':' << x << endl
#define outl(x) cout << x << '\n';

#define INF (1 << 29)

#define FAST cin.tie(0), ios::sync_with_stdio(false)
inline int chmax(int &a, int b){return b>a ? a=b,1 : 0;}
inline int chmin(int &a, int b){return b<a ? a=b,1 : 0;}
//________



Compiler output:
a.cc:3:9: error: 'pair' does not name a type
    3 | typedef pair<int,int> Pii;
      |         ^~~~
a.cc:4:9: error: 'vector' does not name a type
    4 | typedef vector<int> Vi;
      |         ^~~~~~
a.cc:5:9: error: 'vector' does not name a type
    5 | typedef vector<Pii> Vp;
      |         ^~~~~~
Language: C++

#include <iostream>

int main()
{
	int a;
	std::cin >> a;
	int b = a / 1000；
		if (b == 0) {
			std::cout << "No" << std::endl;
		}
		else {
			std::cout << "Yes" << std::endl;
		}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: unable to find numeric literal operator 'operator""\U0000ff1b'
    7 |         int b = a / 1000；
      |                     ^~~~~~
Language: C++

#include "bits/stdc++.h"
#judge()include <omp.h>

using namespace std;

int main() {
	int n;
	cin >> n;
	int a, b, c, d;
	a = n / 1000;
	b = (n % 1000) / 100;
	c = (n % 100) / 10;
	d = n % 10;
	if ((a == b&&b == c) || (b == c&&c == d)) printf("Yes\n");
	else printf("No\n");
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #judge
    2 | #judge()include <omp.h>
      |  ^~~~~
Language: C++

#include <iostream>

int main()
{
	int a;
	std::cin >> a;
	int b = a / 1000
		if (b == 0) {
			std::cout << "No" << std::endl;
		}
		else {
			std::cout << "Yes" << std::endl;
		}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ',' or ';' before 'if'
    8 |                 if (b == 0) {
      |                 ^~
a.cc:11:17: error: 'else' without a previous 'if'
   11 |                 else {
      |                 ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define IN_OUT(n) ios::sync_with_stdio(0) , cin.tie(0) , cout.tie(0) , cout << fixed << setprecision(n)
#define F first
#define S second
typedef pair<int,int> pii;
typedef pair<pii,int> tpi;
typedef pair<pii,pii> qpi;
typedef long long ll;
const int MOD = 1e9 + 7;
const int MAX = 1e5;
const int INF = 2e9;
int MA = -INF , MI = INF;

int32_t main()
{
	IN_OUT(n);
	string s;
	cin>>s;

	for(int i=0 ; i<2 ; i++)
	{
		if( s[i] == s[i+1] && s[i] == s[i+2] )
			return cout<<"Yes" , 0;
	}
	cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:17:16: error: 'n' was not declared in this scope; did you mean 'yn'?
   17 |         IN_OUT(n);
      |                ^
a.cc:3:102: note: in definition of macro 'IN_OUT'
    3 | #define IN_OUT(n) ios::sync_with_stdio(0) , cin.tie(0) , cout.tie(0) , cout << fixed << setprecision(n)
      |                                                                                                      ^
Language: C++

#include <iostream>
#include <string>
using namespace	std;
int main(){
  string s:
  cin>>s;
  if(s[0]==s[1]&&s[1]==s[2]) cout<<"Yes"<<endl;
 if(s[3]==s[2]&&s[1]==s[2]) cout<<"Yes"<<endl;
else   cout<<"No"<<endl;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: found ':' in nested-name-specifier, expected '::'
    5 |   string s:
      |           ^
      |           ::
a.cc:5:10: error: 's' has not been declared
    5 |   string s:
      |          ^
a.cc:6:6: error: qualified-id in declaration before '>>' token
    6 |   cin>>s;
      |      ^~
a.cc:7:6: error: 's' was not declared in this scope
    7 |   if(s[0]==s[1]&&s[1]==s[2]) cout<<"Yes"<<endl;
      |      ^
a.cc:8:5: error: 's' was not declared in this scope
    8 |  if(s[3]==s[2]&&s[1]==s[2]) cout<<"Yes"<<endl;
      |     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: no match for call to '(std::vector<long int>) (int)'
    9 |         L(0)=2LL;
      |         ~^~~
a.cc:10:10: error: no match for call to '(std::vector<long int>) (int)'
   10 |         L(1)=1LL;
      |         ~^~~
a.cc:12:16: error: no match for call to '(std::vector<long int>) (int)'
   12 |         cout<<L(1)<<endl;
      |               ~^~~
a.cc:16:18: error: no match for call to '(std::vector<long int>) (int&)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                 ~^~~
a.cc:16:23: error: no match for call to '(std::vector<long int>) (int)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                      ~^~~~~
a.cc:16:30: error: no match for call to '(std::vector<long int>) (int)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                             ~^~~~~
a.cc:18:16: error: no match for call to '(std::vector<long int>) (int)'
   18 |         cout<<L(N-1)<<endl;
      |               ~^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: no match for call to '(std::vector<long int>) (int)'
    9 |         L(0)=2;
      |         ~^~~
a.cc:10:10: error: no match for call to '(std::vector<long int>) (int)'
   10 |         L(1)=1;
      |         ~^~~
a.cc:12:16: error: no match for call to '(std::vector<long int>) (int)'
   12 |         cout<<L(1)<<endl;
      |               ~^~~
a.cc:16:18: error: no match for call to '(std::vector<long int>) (int&)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                 ~^~~
a.cc:16:23: error: no match for call to '(std::vector<long int>) (int)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                      ~^~~~~
a.cc:16:30: error: no match for call to '(std::vector<long int>) (int)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                             ~^~~~~
a.cc:18:16: error: no match for call to '(std::vector<long int>) (int)'
   18 |         cout<<L(N-1)<<endl;
      |               ~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: no match for call to '(std::vector<long int>) (int)'
    9 |         L(0)=2;
      |         ~^~~
a.cc:10:10: error: no match for call to '(std::vector<long int>) (int)'
   10 |         L(1)=1;
      |         ~^~~
a.cc:12:16: error: no match for call to '(std::vector<long int>) (int)'
   12 |         cout<<L(1)<<endl;
      |               ~^~~
a.cc:16:18: error: no match for call to '(std::vector<long int>) (int&)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                 ~^~~
a.cc:16:23: error: no match for call to '(std::vector<long int>) (int)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                      ~^~~~~
a.cc:16:30: error: no match for call to '(std::vector<long int>) (int)'
   16 |                 L(i)=L(i-1)+L(i-2);
      |                             ~^~~~~
a.cc:18:16: error: no match for call to '(std::vector<long int>) (int)'
   18 |         cout<<L(N-1)<<endl;
      |               ~^~~~~
Language: C++

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

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


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

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

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

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

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

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


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

#include <bits/stdc++.h>
using namespace std;
  
int ryuka(int n){
  int ryuka_num = 0;
  if(n == 0){
    return 0;
  }
  elif(n == 1){
    return 2;
  }
  elif(n == 2){
    return 1;
  }
  if(n >= 3){
    ryuka_num += ryuka(n - 1) + ryuka(n - 2);
    return ryuka_num;
  }
}

int main(){
 int N;
 cin >> N;
  
 int answer = ryuka(N);
  
 cout << answer << endl;
}
    
    
  


Compiler output:
a.cc: In function 'int ryuka(int)':
a.cc:9:3: error: 'elif' was not declared in this scope
    9 |   elif(n == 1){
      |   ^~~~
a.cc:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  
int ryuka(int n){
  long ryuka_num = 0;
  if(n == 0){
    return 0;
  }
  if(n == 1){
    ryuka_num += 2;
  }
  if(n == 2){
    ryuka_num += 1;
  }
  if(n >= 3){
    ryuka_num += ryuka(n - 1) + ryuka(n - 2);
  }
  return ryuka_num;
}

int main(){
 int N;
 cin >> N;
  
 int answer = ryuka(N);
  
 cout << answerLL << endl;
}
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:27:10: error: 'answerLL' was not declared in this scope; did you mean 'answer'?
   27 |  cout << answerLL << endl;
      |          ^~~~~~~~
      |          answer
Language: C++

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

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

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

#include(iostream)
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<int64_t> l(n+1);
  l[0] = 2;
  l[1] = 1;
  for(int i = 2; i < n+1; i++){
    l[i] = l[i-1]+l[i-2];
  }
  cout << l[n] << endl;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int64_t> l(n+1);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #include(iostream)
a.cc:6:10: error: 'int64_t' was not declared in this scope
    6 |   vector<int64_t> l(n+1);
      |          ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | #include(iostream)
a.cc:6:19: error: 'l' was not declared in this scope
    6 |   vector<int64_t> l(n+1);
      |                   ^
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << l[n] << endl;
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:19: error: 'endl' was not declared in this scope
   12 |   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 | #include(iostream)
Language: C++

#include(iostream)
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+1; i++){
    l[i] = l[i-1]+l[i-2];
  }
  cout << l[n] << endl;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<long long> l(n+1);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #include(iostream)
a.cc:6:10: error: expected primary-expression before 'long'
    6 |   vector<long long> l(n+1);
      |          ^~~~
a.cc:7:3: error: 'l' was not declared in this scope
    7 |   l[0] = 2;
      |   ^
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << l[n] << endl;
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:19: error: 'endl' was not declared in this scope
   12 |   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 | #include(iostream)
Language: Java

//package reedeka;
import java.util.*;
import java.math.*;
public class bigInt {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n;
		n = sc.nextInt();
		//System.close();
		long t1 = 2, t2 = 1;
		int i;
		long s = 0;
		for(i=2; i<=n; i++) {
			s = t1 + t2;
			t1 = t2;
			t2 = s;
		}
		System.out.println(s);
	}
}


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

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

int main(){
  int N;
  cin >> N;
  vector<int64_t> L(N);
  L.at(0) = 2;
  L.at(1) = 1;
  
  if(N==1){
    cout << l.at(1) << endl;
  } else {
    for(int 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:12:13: error: 'l' was not declared in this scope
   12 |     cout << l.at(1) << endl;
      |             ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'n' was not declared in this scope
    6 |   vector<int> A(n);
      |                 ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'n' was not declared in this scope
    4 |   vector<int> A(n);
      |                 ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'n' was not declared in this scope
    4 |   vector<int> A(n);
      |                 ^
Language: C++

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


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:3: error: 'vector' was not declared in this scope
    5 |   vector<int> A(n);
      |   ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> A(n);
      |          ^~~
a.cc:6:3: error: 'A' was not declared in this scope
    6 |   A.at(0) = 2;
      |   ^
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << A.at(n) << endl;
      |   ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |   cout << A.at(n) << endl;
      |                      ^~~~
Language: C++

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

int lucas(int x){
  uint64_t answer;
  if(x==0){
    answer=2;
    return answer;
  }else if(x==1){
    answer=1;
    return answer;
  }else{
    return lucas(x-1)+lucas(x-2);
  }
}
int main(){
  int N;
  cin>>N;
  uint64_t prepre=2;
  uint64_t pre=1;
  uint64_t answer;
  if(N==0){
    cout<<prepre<<endl;
    return;
  }else if(N==1){
    cout<<pre<<endl;
    return;
  }
  for(int i=1;i<N;i++){
    answer=prepre+pre;
    prepre=pre;
    pre=answer;
  }
  cout<<answer<<endl;
}


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

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

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

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:9: error: expected primary-expression before 'int'
    5 |         int a = 2;
      |         ^~~
a.cc:5:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:8:9: error: 'cin' does not name a type
    8 |         cin >> N;
      |         ^~~
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if(N == 1){
      |         ^~
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if(N > 1){
      |         ^~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:9: error: expected primary-expression before 'int'
    5 |         int a = 2;
      |         ^~~
a.cc:5:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:8:9: error: 'cin' does not name a type
    8 |         cin >> N;
      |         ^~~
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if(N == 1){
      |         ^~
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if(N > 1){
      |         ^~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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


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

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

int luka(int n) {
  if (n == 0) {
    return 2;
  }
  
  else if (n == 1) {
    return 1;
  }
  
  else {
    return luka(n - 1) + luka (n - 2);
  }
int main() {
  int n;
  cin >> n;
  cout << luka(n) << endl;
}
  
  

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

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

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

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

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

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

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

void main(){
  cin >> x;
  cout << lucas(x) << endl;
}

Compiler output:
a.cc: In function 'int lucas(int)':
a.cc:11:33: error: expected ';' before '}' token
   11 |   return lucas(x-1) + lucas(x-2)
      |                                 ^
      |                                 ;
   12 | }
      | ~                                
a.cc: At global scope:
a.cc:14:1: error: '::main' must return 'int'
   14 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:10: error: 'x' was not declared in this scope
   15 |   cin >> x;
      |          ^
Language: C++

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

double Lucas_number(int N){
  //ベースケース
  if(N == 0){
    return 2;
  }
  if(N == 1){
    return 1;
  }
  //再起
  return Lucas_number(N-1) + Lucas_number(N-2);
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:32: error: expected ';' before '}' token
   19 |   printf("%d", Lucas_number(N))
      |                                ^
      |                                ;
   20 | }
      | ~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before '}' token
   10 |       c.at(0) = 2
      |                  ^
      |                  ;
   11 |     }else if(i == 1){
      |     ~             
a.cc:12:18: error: expected ';' before '}' token
   12 |       c.at(1) = 1
      |                  ^
      |                  ;
   13 |     }else{
      |     ~             
a.cc:14:42: error: expected ';' before '}' token
   14 |       c.at(i) = c.at(i - 1) + c.at(i - 2)
      |                                          ^
      |                                          ;
   15 |     }
      |     ~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before '}' token
   12 |       a = 2
      |            ^
      |            ;
   13 |     }else if(N == 1){
      |     ~       
a.cc:20:17: error: expected ';' before '}' token
   20 |       a = answer
      |                 ^
      |                 ;
   21 |   }
      |   ~              
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int64_t a(int)':
a.cc:4:6: error: 'i' was not declared in this scope
    4 |   if(i == 0){
      |      ^
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
a.cc: In function 'int64_t a(int)':
a.cc:11:1: warning: control reaches end of non-void function [-Wreturn-type]
   11 | }
      | ^
Language: C++

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

int64_t Luca(int64_t N){
  if(N==0){
    return 2;
  }
  if(N==1){
    return 1;
  }
  int64_t s = Luca(N-1);
  int64_t t = Luca(N-2);
    return s+t;
}

int64_t main(){
  int64_t N;
  cin >> N;
  cout<< Luca(N) << endl;
}


Compiler output:
a.cc:16:1: error: '::main' must return 'int'
   16 | int64_t main(){
      | ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
     vector<int> vec;
  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-1)<<endl;}

    

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

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

int_64t sum(int n)
{ if(n==0){
  return 2;}
 else if(n==1){return 1;}
 return sum(n-2)+sum(n-1);}
int main(){
int k;
cin>>k;
cout<<sum(k)<<endl;}


Compiler output:
a.cc:4:1: error: 'int_64t' does not name a type; did you mean 'int64_t'?
    4 | int_64t sum(int n)
      | ^~~~~~~
      | int64_t
a.cc: In function 'int main()':
a.cc:12:7: error: 'sum' was not declared in this scope
   12 | cout<<sum(k)<<endl;}
      |       ^~~
Language: C++

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


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

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


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t a = 0;
  int64_t b = 1;
  int64_t c;
  int N;
  
  sin << N;
  
  if(N==0)
    sout << 0 << endl;
  if(N==1)
    sout << 1 << endl;
  if(N > 1){
  for(int i=2; i<N+1; i++){
    c=a+b;
    a=b;
    b=c;
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
    9 |   sin << N;
      |   ~~~~^~~~
a.cc:12:5: error: 'sout' was not declared in this scope; did you mean 'stdout'?
   12 |     sout << 0 << endl;
      |     ^~~~
      |     stdout
a.cc:14:5: error: 'sout' was not declared in this scope; did you mean 'stdout'?
   14 |     sout << 1 << endl;
      |     ^~~~
      |     stdout
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:15:12: note: to match this '{'
   15 |   if(N > 1){
      |            ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int64_t ryuka(int N) {
  vector<int> ryuka(N+1);
  ryuka.at(0) = 2;
  ryuka.at(1) = 1;
  for(i=2; i<=N; i++) {
    ryuka.at(i) = ryuka.at(i - 1) + ryuka.at(i - 2);
  }
  return ryuka.at(N);
}

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

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

#include<bits/stdc++.h>

using namespace std;

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

int main(void) {
  int64 N;
  cin >> N;
  
  cout << ryuka(N) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: 'int64' was not declared in this scope
   18 |   int64 N;
      |   ^~~~~
a.cc:19:10: error: 'N' was not declared in this scope
   19 |   cin >> N;
      |          ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
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:6:1: error: 'll' does not name a type
    6 | ll L [87];
      | ^~
a.cc: In function 'int main()':
a.cc:10:1: error: 'L' was not declared in this scope
   10 | L [0]=2 LL , L [1]=1 LL ;
      | ^
a.cc:12:9: warning: unknown escape sequence: '\040'
   12 | 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;
 
int main() {
  int64_t N;
  cin >> N;
  
  int64_t answer = 0LL;
  int64_t before = 0LL;
  for (int64_t before i < 0LL; i < N; i++) {
    if (i == 0LL) {
      answer = 2LL;
    } else if (i == 1LL) {
      answer = 1LL;
      before = 2LL;
    } else {
      answer = before + answer;
      before = answer;
    }
  }
  cout << answer << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before 'i'
   10 |   for (int64_t before i < 0LL; i < N; i++) {
      |                      ^~
      |                      ;
a.cc:10:23: error: 'i' was not declared in this scope
   10 |   for (int64_t before i < 0LL; i < N; i++) {
      |                       ^
a.cc:10:37: error: expected ')' before ';' token
   10 |   for (int64_t before i < 0LL; i < N; i++) {
      |       ~                             ^
      |                                     )
a.cc:10:39: error: 'i' was not declared in this scope
   10 |   for (int64_t before i < 0LL; i < N; i++) {
      |                                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int64_t N;
  cin >> N;
  
  int64_t answer = 0LL;
  int64_t before = 0LL;
  for (int i < 0; i < N; i++) {
    if (i == 0) {
      answer = 2LL;
    } else if (i == 1) {
      answer = 1LL;
      before = 2LL;
    } else {
      answer = before + answer;
      before = answer;
    }
  }
  cout << answer << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before '<' token
   10 |   for (int i < 0; i < N; i++) {
      |             ^~
      |             ;
a.cc:10:14: error: expected primary-expression before '<' token
   10 |   for (int i < 0; i < N; i++) {
      |              ^
a.cc:10:24: error: expected ')' before ';' token
   10 |   for (int i < 0; i < N; i++) {
      |       ~                ^
      |                        )
a.cc:10:26: error: 'i' was not declared in this scope
   10 |   for (int i < 0; i < N; i++) {
      |                          ^
Language: C++

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

int ryuka(int N){
  if (N == 0){
    return 2;
  }
  else if(N == 1){
    return 1;
  }
  else{
    int answer = (ryuka(N-2) + ryuka(N-1));
  return answer;
  }
}
void main{
  int N;
  cin>>N;
  cout<<ryuka(N)<<endl;
}  

Compiler output:
a.cc:16:6: error: variable or field 'main' declared void
   16 | void main{
      |      ^~~~
a.cc:17:3: error: expected primary-expression before 'int'
   17 |   int N;
      |   ^~~
a.cc:17:3: error: expected '}' before 'int'
a.cc:16:10: note: to match this '{'
   16 | void main{
      |          ^
a.cc:18:3: error: 'cin' does not name a type
   18 |   cin>>N;
      |   ^~~
a.cc:19:3: error: 'cout' does not name a type
   19 |   cout<<ryuka(N)<<endl;
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

int main(){
  int n;
  cin >> n;
  vevtor<long long> L(87);
  L.at(0)=2;
  L.at(1) = 1;
    for(int i=0; i< 87; i++){
    if(i == 0 || i == 1) continue;
    else{
      L.at(i) = L.at(i-1)+L.at(i-2);
    }
  }
 cout << L(n) << endl;
  

}


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

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

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

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

}


Compiler output:
a.cc: In function 'long long int L(int&)':
a.cc:8:15: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    8 |     return L(n-2)+L(n-1);
      |              ~^~
a.cc:4:18: note:   initializing argument 1 of 'long long int L(int&)'
    4 | long long L(int &n){
      |             ~~~~~^
a.cc:8:22: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    8 |     return L(n-2)+L(n-1);
      |                     ~^~
a.cc:4:18: note:   initializing argument 1 of 'long long int L(int&)'
    4 | long long L(int &n){
      |             ~~~~~^
a.cc: In function 'int main()':
a.cc:15:13: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'long long int'
   15 |   cout << L(n) << endl;
      |             ^
a.cc:4:18: note:   initializing argument 1 of 'long long int L(int&)'
    4 | long long L(int &n){
      |             ~~~~~^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    8 |   vector<int64_t> L();
      |                    ^~
a.cc:9:5: error: request for member 'at' in 'L', which is of non-class type 'std::vector<long int>()'
    9 |   L.at(0)=2LL;
      |     ^~
a.cc:10:5: error: request for member 'at' in 'L', which is of non-class type 'std::vector<long int>()'
   10 |   L.at(1)=1LL;
      |     ^~
a.cc:12:7: error: request for member 'at' in 'L', which is of non-class type 'std::vector<long int>()'
   12 |     L.at(i)=L.at(i-1)+L.at(i-2);
      |       ^~
a.cc:12:15: error: request for member 'at' in 'L', which is of non-class type 'std::vector<long int>()'
   12 |     L.at(i)=L.at(i-1)+L.at(i-2);
      |               ^~
a.cc:12:25: error: request for member 'at' in 'L', which is of non-class type 'std::vector<long int>()'
   12 |     L.at(i)=L.at(i-1)+L.at(i-2);
      |                         ^~
a.cc:14:13: error: request for member 'at' in 'L', which is of non-class type 'std::vector<long int>()'
   14 |   cout << L.at(N) << endl;
      |             ^~
Language: C++

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

int main(){
  int N;
  scanf("N=%d",&N);
  
  vector<int64_t> L;
  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);
  }
  printf("%lf\n",L.at(i));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'i' was not declared in this scope
   14 |   printf("%lf\n",L.at(i));
      |                       ^
Language: C

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: 'i' was not declared in this scope
   13 |   cout >> data.at(i) >> endl;
      |                   ^
Language: C++

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

int main() {
 int N;
 string L(86, '1');
  cin >> N;
  L.at(0) = '2';
  L.at(1) = '1';
  for(int i = 2; i < N; i++){
    //stoi(L.at(i)) = stoi(L.at(i-1)) + stoi(L.at(i-2));
   }
  }
  //cout << L.at(N) << endl;
}


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

#include<bits/stdc++.h>

using namespace std;

int out_LN();

int main(){
  int N = 0;
  cin >> N;
  cout << out_LN(N) << endl;
}
  

int LN_out(int a){
  
  int LN = 0;
  int LN_pre = 1;
  int LN_prepre = 2;
  
  for(int i = 0;i<(a-1);i++){
    if(a==0){
      return LN_prepre;
    }
    else if(a==1){
	return LN_pre;
    }
    else{
      LN=(LN_prepre+LN_pre);
      LN_prepre = LN_pre;
      LN_pre = LN;
    }   
  }
  
  return LN;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: too many arguments to function 'int out_LN()'
   10 |   cout << out_LN(N) << endl;
      |           ~~~~~~^~~
a.cc:5:5: note: declared here
    5 | int out_LN();
      |     ^~~~~~
Language: C++

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

int main() {
  vector<int64_t> luca_array = {2,1};
  int n;
  cin >> n;
  if( n == 1 ){
    cout << 2 << endl;
    return ;
  }else{
    for(int i=0; i <= n ; i++){
      if(i > 1){
        int64_t l = luca_array.at(i-2) + luca_array.at(i-1);
        luca_array.push_back(l);
      }
    }
  }
  int64_t a = luca_array.at(n);
  printf("%lld\n " , a);
}


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

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

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

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

#include <cstdio > 
typedef long long ll; 
int N; 
ll L[87]; 
int main() 
{ 
  scanf("%d",&N); 
  L[0]=2LL,L[1]=1LL; 
  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:10: fatal error: cstdio : No such file or directory
    1 | #include <cstdio >
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>

using namespace std;

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

  int addArray[N];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:42:29: error: request for member 'size' in 'addArray', which is of non-class type 'int [N]'
   42 |   cout << addArray[addArray.size() - 2] + addArray[addArray.size() - 1] << endl;
      |                             ^~~~
a.cc:42:61: error: request for member 'size' in 'addArray', which is of non-class type 'int [N]'
   42 |   cout << addArray[addArray.size() - 2] + addArray[addArray.size() - 1] << endl;
      |                                                             ^~~~