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

#include "pch.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#include <vector>
#include <set>
#include <map>
#include <iostream>
#include <utility>
#include <queue>
#include <algorithm>
#include <functional>
#include <string>
#include <bitset>

#define ll long long
#define fri(n) for(i=0;i<(n);i++)
#define frj(n) for(j=0;j<(n);i++)
#define min(p,q) ((p)<(q)?(p):(q))
#define max(p,q) ((p)>(q)?(p):(q))
#define INF 1000000000000000000//10^18
#define INFINT 2000000001//2*10^9+1
#define MOD 1000000007
#define MODANOTHER 998244353
#define PI acos(-1)

using namespace std;



int main(void)
{
	//変数の宣言
	int n,m;
	int a,b;
	ll d[100];
	char s[20];

	//よく使う変数
	int i,j,k,l;
	int flag=0;
	int ans=0;
	int count=0;
	int temp=0;
	int temp1=0;
	int temp2=0;
	int temp3=0;
	int vec[100010];
	int max=0;
	int min=INFINT;
	int len=0;
	int sum=0;
	int ok=0;
	int ng=0;
	char dummy;
	char stemp[100010];
	
	//データの読み込み


	scanf("%d",&n);
//	scanf_s("%d",&n);

//	scanf("%s",&s);
//	scanf_s("%s",&s,100010);


/*	for(i=0;i<n;i++){
//		scanf("%d",&b[i]);
		scanf_s("%d",&b[i]);
	}*/


/*	for(i=0;i<3;i++){
//		scanf("%s",&s);
		scanf_s("%s",&s[i],100010);
	}*/


	//	printf("nは%dです\n", n);
	//	printf("データの読み込み終了\n");
	//実際の処理

//	clock_t start=clock();

	d[0]=2;
	d[1]=1;

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




//	clock_t end=clock();

	//	printf("計算部分終了\n");

	//出力
	
	printf("%lld",d[n]);

//	printf("time=%lf",(double)(end-start)/CLOCKS_PER_SEC);
	//	printf("結果の出力終了\n");

	return 0;
}



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

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

int 64_t lucas (int N, int count, int64_t a, int64_t b) {
  if (count == N) {
    return b;
  }
  a = a + b;
  count++;
  return lucas (N, count, b, a);
}
  
  

int main () {
  int N;
  int64_t L0 = 2, L1 = 1;
  cin >> N;
  cout << lucas (N, 1, L0, L1) << endl;
}
  

Compiler output:
a.cc:4:5: error: expected unqualified-id before numeric constant
    4 | int 64_t lucas (int N, int count, int64_t a, int64_t b) {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:19:11: error: 'lucas' was not declared in this scope
   19 |   cout << lucas (N, 1, L0, L1) << endl;
      |           ^~~~~
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
int main(){
  int N;
  int64_t result[N];
  cin >> N;
  if(N<=0 || N>86) return -1;
  for(int i=0; i<(int)result.size + 1; i++){
    result[i] = 0;
  }
  for(int i=0; i<(int)result.size + 1; i++){
	if(i==0) result[i] = 2;
    else if(i==1) result[i] = 1;
    else if(result[i] == 0){
      result[i] = result[i-1] + result[i-2];
    }
  }
  printf("%lld", result[N]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: request for member 'size' in 'result', which is of non-class type 'int64_t [N]' {aka 'long int [N]'}
    9 |   for(int i=0; i<(int)result.size + 1; i++){
      |                              ^~~~
a.cc:12:30: error: request for member 'size' in 'result', which is of non-class type 'int64_t [N]' {aka 'long int [N]'}
   12 |   for(int i=0; i<(int)result.size + 1; i++){
      |                              ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
vector<int64_t>L.at(87);
L.at(0)=2LL;
L.at(1)=1LL;
for(int i=0;i<N-1;i++){
  L.at(i+2)=L.at(i+1)+L.at(i);
  }
printf("%ld\n",L.at(N+1));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected initializer before '.' token
    6 | vector<int64_t>L.at(87);
      |                 ^
a.cc:7:1: error: 'L' was not declared in this scope
    7 | L.at(0)=2LL;
      | ^
Language: C++

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

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

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

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin>>N;
      | ^~~
a.cc:6:1: error: 'L' does not name a type
    6 | L.at(0)=2;
      | ^
a.cc:7:1: error: 'L' does not name a type
    7 | L.at(1)=1;
      | ^
a.cc:8:1: error: expected unqualified-id before 'for'
    8 | for(int i=0;i<N+1;i++){
      | ^~~
a.cc:8:13: error: 'i' does not name a type
    8 | for(int i=0;i<N+1;i++){
      |             ^
a.cc:8:19: error: 'i' does not name a type
    8 | for(int i=0;i<N+1;i++){
      |                   ^
Language: C++

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

Compiler output:
a.cc:4:8: error: 'uint_64t' was not declared in this scope; did you mean 'uint64_t'?
    4 | vector<uint_64t>L(N+1);
      |        ^~~~~~~~
      |        uint64_t
a.cc:4:16: error: template argument 1 is invalid
    4 | vector<uint_64t>L(N+1);
      |                ^
a.cc:4:16: error: template argument 2 is invalid
a.cc:4:19: error: 'N' was not declared in this scope
    4 | vector<uint_64t>L(N+1);
      |                   ^
a.cc:5:1: error: 'L' does not name a type
    5 | L.at(0)=2;
      | ^
a.cc:6:1: error: 'L' does not name a type
    6 | L.at(1)=1;
      | ^
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for(int i=0;i<N+1;i++){
      | ^~~
a.cc:7:13: error: 'i' does not name a type
    7 | for(int i=0;i<N+1;i++){
      |             ^
a.cc:7:19: error: 'i' does not name a type
    7 | for(int i=0;i<N+1;i++){
      |                   ^
Language: C++

#include<cstdio>
long long num[100],n,t=2;
num[0]=2,num[1]=1;
int main()
{
    scanf("%lld",&n);
    for(;t<=n;t++)
    {
        num[t]=num[t-1]+num[t-2];
	}
	printf("%lld",num[n]);
}

Compiler output:
a.cc:3:1: error: 'num' does not name a type; did you mean 'enum'?
    3 | num[0]=2,num[1]=1;
      | ^~~
      | enum
Language: C++

#include<cstdio>
long long num[100],n,t=2;
num[0]=2,num[1]=1;
int main()
{
    scanf("%d",&n);
    for(;t<=n;t++)
    {
        num[t]=num[t-1]+num[t-2];
	}
	printf("%d",num[n]);
}

Compiler output:
a.cc:3:1: error: 'num' does not name a type; did you mean 'enum'?
    3 | num[0]=2,num[1]=1;
      | ^~~
      | enum
Language: C++

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

//リュカ数

int main() {
int N;
cin >> N;
vector<int64_t> a(N);
if (N == 1) {
    cout << 1 << endl;
    return 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);

}

printf("%lld",a.at(N);
cout << endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:22: error: expected ')' before ';' token
   21 | printf("%lld",a.at(N);
      |       ~              ^
      |                      )
Language: C++

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

int main(){
  int N;
  cin >> N;
  ll Li_2 = 2, Li_1 = 1;
  for(int i = 3; i <= N; i++){
    ll Li = Li_1 + Li_2;
    Li_2 = Li_1;
    Li_1 = Li;
  }
  cout << Li << endl;
}

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

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

int main() {
  int N;
  cin >> N;
  int ans = 0;
  int wer = 1;
  int count = 0;
  while(count < N ){
    ans = wer;
    wer += ans;
    count++;
  }
  cout << ans * 2 + wer << endl;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:15:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   15 |   cout << ans * 2 + wer << endl;
      |   ^~~~
      |   count
a.cc:15:28: error: 'endl' was not declared in this scope
   15 |   cout << ans * 2 + wer << endl;
      |                            ^~~~
Language: C++

gjkfl;
jklja;
jkla
gakflj
fdajkkkk
fajkl;
df;kjl
df;kl;
jlkak
ak:lk;lka
klkjl;kkfaf


Compiler output:
a.cc:1:1: error: 'gjkfl' does not name a type
    1 | gjkfl;
      | ^~~~~
a.cc:2:1: error: 'jklja' does not name a type
    2 | jklja;
      | ^~~~~
a.cc:3:1: error: 'jkla' does not name a type
    3 | jkla
      | ^~~~
a.cc:7:1: error: 'df' does not name a type
    7 | df;kjl
      | ^~
a.cc:7:4: error: 'kjl' does not name a type
    7 | df;kjl
      |    ^~~
a.cc:8:4: error: 'kl' does not name a type
    8 | df;kl;
      |    ^~
a.cc:9:1: error: 'jlkak' does not name a type
    9 | jlkak
      | ^~~~~
a.cc:10:7: error: 'lka' does not name a type
   10 | ak:lk;lka
      |       ^~~
a.cc:11:7: error: 'kkfaf' does not name a type
   11 | klkjl;kkfaf
      |       ^~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'c' was not declared in this scope
    9 |         c = b;
      |         ^
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=0; i<N-1; i++){
    L.at(i+2)==L.at(i;1)+L.at(i);
  }
  
  cout << L.at(N) << endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected ')' before ';' token
   13 |     L.at(i+2)==L.at(i;1)+L.at(i);
      |                    ~ ^
      |                      )
a.cc:13:24: error: expected ';' before ')' token
   13 |     L.at(i+2)==L.at(i;1)+L.at(i);
      |                        ^
      |                        ;
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;
  
  for(i=0; i<N-3; i++){
    L.at(i+2)==L.at(i+1)+L.at(i);
  }
  
  cout << L.at(N) <<endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0; i<N-3; i++){
      |       ^
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;
  
  for(i=0; i<N-3; i++){
    L.at(i+2)==L.at(i+1)+L.at(i);
  }
  
  cout << L.at(N) <<endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'L'
    9 |   L.at(0)=2; L.at(1)=1;
      |   ^
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0; i<N-3; i++){
      |       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'L'
    9 |   L(0)=2; L(1)=1;
      |   ^
a.cc:9:12: error: no match for call to '(std::vector<long int>) (int)'
    9 |   L(0)=2; L(1)=1;
      |           ~^~~
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0; i<N-3; i++){
      |       ^
a.cc:15:18: error: expected ';' before 'LL'
   15 |   cout << L.at(N)LL <<endl;
      |                  ^~
      |                  ;
Language: C++

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

int main(){
  int N;
  cin >> N;
  
  int64_t L0=2;
  int64_t L1=1;
  int64_t buf;
  switch(N){
    case 1:
      ;
    else:
      for(int i = 2;i<N+1;i++){
        buf=L0+L1;
        L0=L1;
        L1=buf;
      }
  }
  cout << L1 << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else:
      |     ^~~~
a.cc:14:9: error: expected primary-expression before ':' token
   14 |     else:
      |         ^
a.cc:15:21: error: 'i' was not declared in this scope
   15 |       for(int i = 2;i<N+1;i++){
      |                     ^
Language: C++

#include<bits\stdc++.h>
using namespace std;
  
int sum(int N){
  //basecase 1
  if(N==1){
    return 1;
  }
  //basecase 2
  if(N==0){
    return 2;
  }
  int s = sum(N-1)+sum(N-2);
  return s;
}  

int main(){
  int N,L;
  scanf("N = %d",&N);
  if(N>=1){
    printf("%d\n",sum(N));
  }
}  
    
    

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

#include<iostream>
using namespace std;
unsigned long long int f[90];
int main()
{
	int n;
	cin>>n;
	f[0]=2;
	f[1]=1;
	for(int i=2;i<=n;i++)
	{
		f[i]=tui[i-1]+f[i-2];
	}
	cout<<f[n];
}

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

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
int f[1000];
int main()
{
   int n;
   cin>>n;
   f[0]=2;
   f[1]=1;
   for（int i=2;i<=n;i++)
{
     f[i]=f[i-1]+f[1-2];
}
cout<<f[n];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:4: error: 'for\U0000ff08int' was not declared in this scope
   13 |    for（int i=2;i<=n;i++)
      |    ^~~~~~~~
a.cc:13:17: error: 'i' was not declared in this scope
   13 |    for（int i=2;i<=n;i++)
      |                 ^
Language: C++

#include<iostream.
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
int f[10000];
int lks(int x)
{
     f[0]=2;
    f[1]=1;
    if(f[x-1]!=0)f[x]+=f[x-1];
    else f[x]+=lks(x-1);
     if(f[x-2]!=0)f[x]+=f[x-2];
    else f[x]+=lks(x-2);
}
int main()
{
   int n;
   cin>>n;
   lks(n);
cout<<f[n];
}

Compiler output:
a.cc:1:19: error: missing terminating > character
    1 | #include<iostream.
      |                   ^
a.cc:1:9: fatal error: iostream.: No such file or directory
    1 | #include<iostream.
      |         ^
compilation terminated.
Language: C++

#include<iostream.
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
int f[10000];
int lks(int x)
{
    if(x==0)return 2;
    if(x==1)return 1;
    if(f[x-1]!=0)f[x]+=f[x-1];
    else f[x]+=lks(x-1);
     if(f[x-2]!=0)f[x]+=f[x-2];
    else f[x]+=lks(x-2);
}
int main()
{
   int n;
   cin>>n;
   cout<<lks(n);
}

Compiler output:
a.cc:1:19: error: missing terminating > character
    1 | #include<iostream.
      |                   ^
a.cc:1:9: fatal error: iostream.: No such file or directory
    1 | #include<iostream.
      |         ^
compilation terminated.
Language: C++

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

void ryuka(int N){
  uint_32t a = 2;
  uint_32t b = 1;
  uint_32t c = 0;
  
  if(N == 0) {
    cout << 2;
  }
  else if(N == 1) {
    cout << 1;
  }
  
  else {
    for(int i = 0; i < N; i++) {
      c = a + b;
      b = c;
      a = b;
    }
    cout << c;
  }
  
}

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

Compiler output:
a.cc: In function 'void ryuka(int)':
a.cc:5:3: error: 'uint_32t' was not declared in this scope; did you mean 'uint32_t'?
    5 |   uint_32t a = 2;
      |   ^~~~~~~~
      |   uint32_t
a.cc:6:11: error: expected ';' before 'b'
    6 |   uint_32t b = 1;
      |           ^~
      |           ;
a.cc:7:11: error: expected ';' before 'c'
    7 |   uint_32t c = 0;
      |           ^~
      |           ;
a.cc:18:7: error: 'c' was not declared in this scope
   18 |       c = a + b;
      |       ^
a.cc:18:11: error: 'a' was not declared in this scope
   18 |       c = a + b;
      |           ^
a.cc:18:15: error: 'b' was not declared in this scope
   18 |       c = a + b;
      |               ^
a.cc:22:13: error: 'c' was not declared in this scope
   22 |     cout << c;
      |             ^
Language: C++

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

void ryuka(int N){
  if(N == 0) {
    cout << 2;
  }
  else if(N == 1) {
    cout << 1;
  }
  
  else {
    uint_32t a = 2;
    uint_32t b = 1;
    uint_32t c = 0;
    for(int i = 0; i < N; i++) {
      c = a + b;
      b = c;
      a = b;
    }
    cout << c;
  }
  
}

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

Compiler output:
a.cc: In function 'void ryuka(int)':
a.cc:13:5: error: 'uint_32t' was not declared in this scope; did you mean 'uint32_t'?
   13 |     uint_32t a = 2;
      |     ^~~~~~~~
      |     uint32_t
a.cc:14:13: error: expected ';' before 'b'
   14 |     uint_32t b = 1;
      |             ^~
      |             ;
a.cc:15:13: error: expected ';' before 'c'
   15 |     uint_32t c = 0;
      |             ^~
      |             ;
a.cc:17:7: error: 'c' was not declared in this scope
   17 |       c = a + b;
      |       ^
a.cc:17:11: error: 'a' was not declared in this scope
   17 |       c = a + b;
      |           ^
a.cc:17:15: error: 'b' was not declared in this scope
   17 |       c = a + b;
      |               ^
a.cc:21:13: error: 'c' was not declared in this scope
   21 |     cout << c;
      |             ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int64_t ryuka(int64_t)':
a.cc:12:29: error: expected primary-expression before 'N'
   12 |     int ans = ryuka(int64_t N-1) + ryuka(int64_t N-2);
      |                             ^
a.cc:12:50: error: expected primary-expression before 'N'
   12 |     int ans = ryuka(int64_t N-1) + ryuka(int64_t N-2);
      |                                                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'f' was not declared in this scope
   11 |         f[i]=f[i-1]+f[i-2];
      |         ^
a.cc:12:11: error: 'f' was not declared in this scope
   12 |     cout<<f[n];
      |           ^
Language: C++

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

int ryuka(int N){
  vector<int> L(N);
  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);
  }
  return L;
}

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

Compiler output:
a.cc: In function 'int ryuka(int)':
a.cc:10:10: error: cannot convert 'std::vector<int>' to 'int' in return
   10 |   return L;
      |          ^
      |          |
      |          std::vector<int>
Language: C++

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

int ryuka(int N){
  vector<int> L;
  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);
  }
  return L;
}

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

Compiler output:
a.cc: In function 'int ryuka(int)':
a.cc:10:10: error: cannot convert 'std::vector<int>' to 'int' in return
   10 |   return L;
      |          ^
      |          |
      |          std::vector<int>
Language: C++

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

long long int L(int n){
  vector<int> Lucas(n+1);
  Lucas.at(0) = 2;
  Lucas.at(1) = 1;
  for(i=2;i<=n;i++){
  Lucas.at(i) = Lucas.at(i-1) + Lucas.at(i-2);
  }
  
  return Lucas.at(n)
}


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


Compiler output:
a.cc: In function 'long long int L(int)':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=2;i<=n;i++){
      |       ^
a.cc:12:21: error: expected ';' before '}' token
   12 |   return Lucas.at(n)
      |                     ^
      |                     ;
   13 | }
      | ~
Language: C++

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

int main() {
  int n;
  cin>>n;
  int64_t a1, a2, a3;
  a1=2; a2=1;
  if(N==1){
    a3=a2-a1;
  }
  if(N>1){
    for(int i=1;i<n;i++){
      a3=a1+a2;
      a1=a2;
      a2=a3;
    }
  }
  cout<<a3<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'N' was not declared in this scope
    9 |   if(N==1){
      |      ^
a.cc:12:6: error: 'N' was not declared in this scope
   12 |   if(N>1){
      |      ^
Language: C++

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


Compiler output:
a.cc: In function 'int f(long long int&)':
a.cc:6:18: error: cannot bind non-const lvalue reference of type 'long long int&' to an rvalue of type 'long long int'
    6 |   else return f(a-1)+f(a-2);
      |                 ~^~
a.cc:3:18: note:   initializing argument 1 of 'int f(long long int&)'
    3 | int f(long long &a){
      |       ~~~~~~~~~~~^
a.cc:6:25: error: cannot bind non-const lvalue reference of type 'long long int&' to an rvalue of type 'long long int'
    6 |   else return f(a-1)+f(a-2);
      |                        ~^~
a.cc:3:18: note:   initializing argument 1 of 'int f(long long int&)'
    3 | int f(long long &a){
      |       ~~~~~~~~~~~^
a.cc: In function 'int main()':
a.cc:11:11: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'int'
   11 |   cout<<f(n);
      |           ^
a.cc:3:18: note:   initializing argument 1 of 'int f(long long int&)'
    3 | int f(long long &a){
      |       ~~~~~~~~~~~^
Language: C++

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

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

int main(){
  int N;
  scanf("%d", N);
  answer = luca(N);
  printf("%d\n", N);
}
  

Compiler output:
a.cc:4:1: error: ISO C++ forbids declaration of 'luca' with no type [-fpermissive]
    4 | luca(int a){
      | ^~~~
a.cc: In function 'int main()':
a.cc:18:3: error: 'answer' was not declared in this scope
   18 |   answer = luca(N);
      |   ^~~~~~
Language: C++

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

luca(a){
  if (a == 0){
    return 2;
  }
  if (a == 1){
    return 1;
  }
  return luca(a-1) + luca(a-2);
}
  

int main(){
  int N;
  scanf("%d", N);
  answer = luca(N);
  printf("%d\n", N);
}
  

Compiler output:
a.cc:4:5: error: expected constructor, destructor, or type conversion before '(' token
    4 | luca(a){
      |     ^
a.cc: In function 'int main()':
a.cc:18:3: error: 'answer' was not declared in this scope
   18 |   answer = luca(N);
      |   ^~~~~~
a.cc:18:12: error: 'luca' was not declared in this scope
   18 |   answer = luca(N);
      |            ^~~~
Language: C++

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

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

#include <iostream>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#define rep(i,n) for(int i = 0; i < n;i++)
#define ll long long
#include <bits/stdc++.h>
using namespace std;
#define mo 1000000007
#define ull unsigned long long 

int main(){
  int n;cin>>n;
  vector<int>l(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-1);
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: no match for call to '(std::vector<int>) (int)'
   15 |   l(0)=2;
      |   ~^~~
a.cc:16:4: error: no match for call to '(std::vector<int>) (int)'
   16 |   l(1)=1;
      |   ~^~~
a.cc:19:6: error: no match for call to '(std::vector<int>) (int&)'
   19 |     l(i)=l(i-1)+l(i-2);
      |     ~^~~
a.cc:19:11: error: no match for call to '(std::vector<int>) (int)'
   19 |     l(i)=l(i-1)+l(i-2);
      |          ~^~~~~
a.cc:19:18: error: no match for call to '(std::vector<int>) (int)'
   19 |     l(i)=l(i-1)+l(i-2);
      |                 ~^~~~~
a.cc:21:10: error: no match for call to '(std::vector<int>) (int)'
   21 |   cout<<l(n-1);
      |         ~^~~~~
Language: C++

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

int64_t ryuka(int x) {
  if(x == 1) {
    return 2;
  }
  if(x == 2) {
    return 1;
  }
  
  int64_t y = ryuka(x - 1) + ryuka(x - 2);
  return y;
}
 
int main() {
  int n;
  scanf("x = %d", &n);
  cout << ryuka(x) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: 'x' was not declared in this scope
   19 |   cout << ryuka(x) << endl;
      |                 ^
Language: C++

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

int main(){
  long long ans=0;
  int n;
  cin >> n;
  
  long long l[86] ;
  l.push_back(2);
  l.push_back(1);
  
  for(int i=0;i<n-1;i++){
    if(i==0)continue;
    if(i==1)continue;
    
    ans = l[i-1]+l[i-2];
    l.push_back(ans);
  }
  
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: request for member 'push_back' in 'l', which is of non-class type 'long long int [86]'
   10 |   l.push_back(2);
      |     ^~~~~~~~~
a.cc:11:5: error: request for member 'push_back' in 'l', which is of non-class type 'long long int [86]'
   11 |   l.push_back(1);
      |     ^~~~~~~~~
a.cc:18:7: error: request for member 'push_back' in 'l', which is of non-class type 'long long int [86]'
   18 |     l.push_back(ans);
      |       ^~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'n' was not declared in this scope
   12 |         cout << F[n] << endl;
      |                   ^
Language: C++

#include <iostream>
using mamespace std;

long long int F[87] = {2,1,3};

int main()
{
    int m;
    cin >> m;
    for (int i = 3; i <= 86; i++) {
        F[i] = F[i-1] + F[i-2];
    }
    cout << F[m] << endl;
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
    2 | using mamespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> m;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout << F[m] << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout << F[m] << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using mamespace std;

int F[87] = {2,1,3};

int main()
{
    int m;
    cin >> m;
    for (int i = 3; i <= 86; i++) {
        F[i] = F[i-1] + F[i-2];
    }
    cout << F[m] << endl;
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
    2 | using mamespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> m;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout << F[m] << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout << F[m] << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int N;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> N;
      |   ^~~
a.cc:7:3: error: 'A' does not name a type
    7 |   A = 2;
      |   ^
a.cc:8:3: error: 'B' does not name a type
    8 |   B = 1;
      |   ^
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(int i = 0;i < N - 2;i++){
      |   ^~~
a.cc:9:17: error: 'i' does not name a type
    9 |   for(int i = 0;i < N - 2;i++){
      |                 ^
a.cc:9:27: error: 'i' does not name a type
    9 |   for(int i = 0;i < N - 2;i++){
      |                           ^
a.cc:14:3: error: 'cout' does not name a type
   14 |   cout << C << endl;
      |   ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:5:3: error: 'answer' does not name a type
    5 |   answer.at(0) = 2;
      |   ^~~~~~
a.cc:6:3: error: 'answer' does not name a type
    6 |   answer.at(1) = 1;
      |   ^~~~~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i = 2; i < 88;i++)
      |   ^~~
a.cc:7:18: error: 'i' does not name a type
    7 |   for(int i = 2; i < 88;i++)
      |                  ^
a.cc:7:25: error: 'i' does not name a type
    7 |   for(int i = 2; i < 88;i++)
      |                         ^
Language: C++

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

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


Compiler output:
a.cc:5:3: error: 'answer' does not name a type
    5 |   answer.at(0) = 2;
      |   ^~~~~~
a.cc:6:3: error: 'answer' does not name a type
    6 |   answer.at(1) = 1;
      |   ^~~~~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i = 2; i < 88;i++){
      |   ^~~
a.cc:7:18: error: 'i' does not name a type
    7 |   for(int i = 2; i < 88;i++){
      |                  ^
a.cc:7:25: error: 'i' does not name a type
    7 |   for(int i = 2; i < 88;i++){
      |                         ^
Language: C++

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

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


Compiler output:
a.cc:5:3: error: 'answer' does not name a type
    5 |   answer.at(0) = 2;
      |   ^~~~~~
a.cc:6:3: error: 'answer' does not name a type
    6 |   answer.at(1) = 1;
      |   ^~~~~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i = 2; i < 88;i++)
      |   ^~~
a.cc:7:18: error: 'i' does not name a type
    7 |   for(int i = 2; i < 88;i++)
      |                  ^
a.cc:7:25: error: 'i' does not name a type
    7 |   for(int i = 2; i < 88;i++)
      |                         ^
Language: C++

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

  vector<int64_t> answer(87, 0);
  answer.at(0) = 2;
  answer.at(1) = 1;
  for(int i = 2; i < 88;i++)
    answer.at(i) = answer.at(i - 1) + answer.at(i - 2);
  int main(){
    int n;
    cin >> n;
    cons << answer.at(n) << endl;
  }


Compiler output:
a.cc:5:3: error: 'answer' does not name a type
    5 |   answer.at(0) = 2;
      |   ^~~~~~
a.cc:6:3: error: 'answer' does not name a type
    6 |   answer.at(1) = 1;
      |   ^~~~~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i = 2; i < 88;i++)
      |   ^~~
a.cc:7:18: error: 'i' does not name a type
    7 |   for(int i = 2; i < 88;i++)
      |                  ^
a.cc:7:25: error: 'i' does not name a type
    7 |   for(int i = 2; i < 88;i++)
      |                         ^
a.cc: In function 'int main()':
a.cc:12:5: error: 'cons' was not declared in this scope; did you mean 'cos'?
   12 |     cons << answer.at(n) << endl;
      |     ^~~~
      |     cos
Language: C++

int main() {
    int N;
    cin >> N ;
    N++;
    
    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(N-1) << endl;
    
}



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

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

  vector<int64_t>(86) answer(86, 0);
  answer.at(0) = 2;
  answer.at(1) = 1;
  for(int i = 2; i < 87;i++)
    answer.at(i) = answer.at(i - 1) + answer.at(i - 2);
  int main(){
    int n;
    cin >> n;
    cons << answer.at(n) << endl;
  }


Compiler output:
a.cc:4:19: error: expected unqualified-id before numeric constant
    4 |   vector<int64_t>(86) answer(86, 0);
      |                   ^~
a.cc:4:19: error: expected ')' before numeric constant
    4 |   vector<int64_t>(86) answer(86, 0);
      |                  ~^~
      |                   )
a.cc:5:3: error: 'answer' does not name a type
    5 |   answer.at(0) = 2;
      |   ^~~~~~
a.cc:6:3: error: 'answer' does not name a type
    6 |   answer.at(1) = 1;
      |   ^~~~~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i = 2; i < 87;i++)
      |   ^~~
a.cc:7:18: error: 'i' does not name a type
    7 |   for(int i = 2; i < 87;i++)
      |                  ^
a.cc:7:25: error: 'i' does not name a type
    7 |   for(int i = 2; i < 87;i++)
      |                         ^
a.cc: In function 'int main()':
a.cc:12:5: error: 'cons' was not declared in this scope; did you mean 'cos'?
   12 |     cons << answer.at(n) << endl;
      |     ^~~~
      |     cos
a.cc:12:13: error: 'answer' was not declared in this scope
   12 |     cons << answer.at(n) << endl;
      |             ^~~~~~
Language: C++

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

int64_t a, b;
void lucasstep(int64_t &a,int64_t &b) {
  int64_t n = a;
  a = b;
  b += n;
}
int64_t lucas(int n){
  if(n == 0)
    return 2;
  if(n == 1)
    return 1;
  return lucas(n - 1) + lucas(n - 2);
}
int n;
cin >> n;
int main() {
  cout << lucas(n) << endl;
}


Compiler output:
a.cc:18:1: error: 'cin' does not name a type
   18 | cin >> n;
      | ^~~
Language: C++

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

int64_t a, b;
void lucasstep(int64_t &a,int64_t &b) {
  int64_t n = a;
  a = b;
  b += n;
}
int64_t lucas(int n){
  if(n == 0)
    return 2;
  if(n == 1)
    return 1;
  return lucas(n - 1) + lucas(n - 2);
}
int n;
cin >> n;
int64_t main() {
  cout << lucas(n) << endl;
}


Compiler output:
a.cc:18:1: error: 'cin' does not name a type
   18 | cin >> n;
      | ^~~
a.cc:19:1: error: '::main' must return 'int'
   19 | int64_t main() {
      | ^~~~~~~
Language: C++

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

int64_t a, b;
void lucasstep(int64_t &a,int64_t &b) {
  int64_t n = a;
  a = b;
  b += n;
}
int64_t lucas(int n){
  if(n == 0)
    return 2;
  if(n == 1)
    return 1;
  return lucas(n - 1) + lucas(n - 2);
}
int n;
cin >> n;
void(main){
  cout << lucas(n) << endl;
}

Compiler output:
a.cc:18:1: error: 'cin' does not name a type
   18 | cin >> n;
      | ^~~
a.cc:19:6: error: variable or field 'main' declared void
   19 | void(main){
      |      ^~~~
a.cc:20:27: error: expected '}' before ';' token
   20 |   cout << lucas(n) << endl;
      |                           ^
a.cc:19:11: note: to match this '{'
   19 | void(main){
      |           ^
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: no match for call to '(std::vector<long int>) (int)'
    8 |   luc(0)=2;
      |   ~~~^~~
a.cc:9:14: error: no match for call to '(std::vector<long int>) (int)'
    9 |   if(n>0) luc(1)=1;
      |           ~~~^~~
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=2;i<n+1;i++){
      |       ^
Language: C++

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

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

#include <iostream>
using namespace std;

int main(int argc, char* argv[]) {
	int N = 0;
	cin >> N;

	unsigned long long *L = (unsigned long long*)malloc((N+1)*sizeof(unsigned long long));
	memset(L, 0, (N+1) * sizeof(unsigned long long));

	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];
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:9:9: error: 'memset' was not declared in this scope
    9 |         memset(L, 0, (N+1) * sizeof(unsigned long long));
      |         ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

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

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

  int64_t l1 = 1;
  int64_t l2 = 2;
  int64_t l;

  if(N = 1){
    l = 2;
  }

  else if(N = 2){
    l = 1;
  }

  else{
    for(int x : N-2){
      l = l1 + l2;
      l2 = l1;
      l1 = l;
    }
  }

  cout << l << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: 'begin' was not declared in this scope
   21 |     for(int x : N-2){
      |                   ^
a.cc:21:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:21:19: error: 'end' was not declared in this scope
   21 |     for(int x : N-2){
      |                   ^
a.cc:21:19: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C++

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

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

  int_64 l1 = 1;
  int_64 l2 = 2;
  int_64 l;

  if(N = 1){
    l = 2;
  }

  else if(N = 2){
    l = 1;
  }

  else{
    for(int x : N-2){
      l = l1 + l2;
      l2 = l1;
      l1 = l;
    }
  }

  cout << l << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'int_64' was not declared in this scope; did you mean 'rintf64'?
    8 |   int_64 l1 = 1;
      |   ^~~~~~
      |   rintf64
a.cc:9:9: error: expected ';' before 'l2'
    9 |   int_64 l2 = 2;
      |         ^~~
      |         ;
a.cc:10:9: error: expected ';' before 'l'
   10 |   int_64 l;
      |         ^~
      |         ;
a.cc:13:5: error: 'l' was not declared in this scope
   13 |     l = 2;
      |     ^
a.cc:17:5: error: 'l' was not declared in this scope
   17 |     l = 1;
      |     ^
a.cc:21:19: error: 'begin' was not declared in this scope
   21 |     for(int x : N-2){
      |                   ^
a.cc:21:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:21:19: error: 'end' was not declared in this scope
   21 |     for(int x : N-2){
      |                   ^
a.cc:21:19: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
a.cc:22:7: error: 'l' was not declared in this scope
   22 |       l = l1 + l2;
      |       ^
a.cc:22:11: error: 'l1' was not declared in this scope; did you mean 'y1'?
   22 |       l = l1 + l2;
      |           ^~
      |           y1
a.cc:22:16: error: 'l2' was not declared in this scope
   22 |       l = l1 + l2;
      |                ^~
a.cc:28:11: error: 'l' was not declared in this scope
   28 |   cout << l << endl;
      |           ^
Language: C++

#include <iostream>
using namespace std;

double luka(double n){
  if(n = 0) return 2;
  if(n = 1) return 1;
  
  return luka(n - 1) + luka(n - 2);
}

double n;
cin >> n;

cout<<luka(n)<<"\n";


Compiler output:
a.cc:12:1: error: 'cin' does not name a type
   12 | cin >> n;
      | ^~~
a.cc:14:1: error: 'cout' does not name a type
   14 | cout<<luka(n)<<"\n";
      | ^~~~
Language: C++

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

double luka(double n){
  if(n = 0) return 2;
  if(n = 1) return 1;
  
  return luka(n - 1) + luka(n - 2);
}

double n;
cin >> n;

cout<<luka(n)<<"\n";

Compiler output:
a.cc:12:1: error: 'cin' does not name a type
   12 | cin >> n;
      | ^~~
a.cc:14:1: error: 'cout' does not name a type
   14 | cout<<luka(n)<<"\n";
      | ^~~~
Language: C++

//do not think about past and stay in this moment
//organize and work - Abhinav IIITA
#include <bits/stdc++.h>
#include <ctime>
using namespace std;
#define int long long
#define ld long double
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(),(v).end() 
const ld pi = acos(-1.0);
const int day[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());


// -----------------------------------------------------------------------
int dp[100];
int func(int n){
	if(n==0)
	return 2;
	if(n==1)
	return 1;
	if(dp[n]!=0)
	return dp[n];
	return dp[n]=func(n-1)+func(n-2)
}
// -----------------------------------------------------------------------

int fre[26];
void solve(){
	int n;
	cin>>n;
	cout<<func(n);
}


// -----------------------------------------------------------------------


int32_t main()
{
	ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); 	
	int t=1;
	//cin>>t;
	while(t--)
	solve();
	return 0;
}


Compiler output:
a.cc: In function 'long long int func(long long int)':
a.cc:24:41: error: expected ';' before '}' token
   24 |         return dp[n]=func(n-1)+func(n-2)
      |                                         ^
      |                                         ;
   25 | }
      | ~