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

#include<stdio.h>
long long fibo(int n){
 if(n==0 || n==1) return 1;
 return fibo(n-1)+fib(n-2)
}
int main(void){
 printf("fibo(0)=%11d\n",fibo(0));
 printf("fibo(1)%11d\n",fibo(1));
 printf("fibo(2)%11d\n",fibo(2));
 printf("fibo(3)%11d\n",fibo(3));
 printf("fibo(4)%11d\n",fibo(4));
 return 0;
}



Compiler output:
main.c: In function 'fibo':
main.c:4:19: error: implicit declaration of function 'fib'; did you mean 'fibo'? [-Wimplicit-function-declaration]
    4 |  return fibo(n-1)+fib(n-2)
      |                   ^~~
      |                   fibo
main.c:4:27: error: expected ';' before '}' token
    4 |  return fibo(n-1)+fib(n-2)
      |                           ^
      |                           ;
    5 | }
      | ~
Language: C

#include<stdio.h>
long long fibo(int n){
 if(n==0 || n==1) return 1;
 return fibo(n-1)+fib(n-2);
}
int main(void){
 printf("fibo(0)=%11d\n",fibo(0));
 printf("fibo(1)%11d\n",fibo(1));
 printf("fibo(2)%11d\n",fibo(2));
 printf("fibo(3)%11d\n",fibo(3));
 printf("fibo(4)%11d\n",fibo(4));
 return 0;
}



Compiler output:
main.c: In function 'fibo':
main.c:4:19: error: implicit declaration of function 'fib'; did you mean 'fibo'? [-Wimplicit-function-declaration]
    4 |  return fibo(n-1)+fib(n-2);
      |                   ^~~
      |                   fibo
Language: C

#include<stdio.h>
long long fibo(int n){
 if(n==0 || n==1) return 1;
 return fibo(n-1)+fib(n-2);
}
int main(void){
 printf("fibo(0)=%11d\n",fibo(0));
 printf("fibo(1)=%11d\n",fibo(1));
 printf("fibo(2)=%11d\n",fibo(2));
 printf("fibo(3)=%11d\n",fibo(3));
 printf("fibo(4)=%11d\n",fibo(4));
 return 0;
}



Compiler output:
main.c: In function 'fibo':
main.c:4:19: error: implicit declaration of function 'fib'; did you mean 'fibo'? [-Wimplicit-function-declaration]
    4 |  return fibo(n-1)+fib(n-2);
      |                   ^~~
      |                   fibo
Language: C

#include<stdio.h>
#include(sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fidodp[0]=1;
	fidodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[n]=fidodp[n-1]+fidodp[n-2];
	}
	return fibodp[n];
}

 int main(void){
	for(int i=s; i<=41; i++){
	double s=gettime();
	long long res =fibo(i);
	double e=gettime();
	printf("fibo(%d)=%lld %fms\n",i,res,(e-s));

return(0);
}






Compiler output:
main.c:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include(sys/time.h>
      |         ^
main.c: In function 'gettime':
main.c:4:16: error: variable 'tv' has initializer but incomplete type
    4 |         struct timeval tv ={0};
      |                ^~~~~~~
main.c:4:29: warning: excess elements in struct initializer
    4 |         struct timeval tv ={0};
      |                             ^
main.c:4:29: note: (near initialization for 'tv')
main.c:4:24: error: storage size of 'tv' isn't known
    4 |         struct timeval tv ={0};
      |                        ^~
main.c:5:9: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
    5 |         gettimeofday(&tv,NULL);
      |         ^~~~~~~~~~~~
main.c:6:22: error: 'sec' undeclared (first use in this function)
    6 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:11:9: error: 'fidodp' undeclared (first use in this function); did you mean 'fibodp'?
   11 |         fidodp[0]=1;
      |         ^~~~~~
      |         fibodp
main.c:13:30: error: expected ';' before ')' token
   13 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:20:19: error: 's' undeclared (first use in this function)
   20 |         for(int i=s; i<=41; i++){
      |                   ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C



#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[n]=fibodp[n-1]+fibodp[n-2];
	}
	return fibodp[n];
}

 int main(void){
	for(int i=s; i<=41; i++){
	double s=gettime();
	long long res =fibo(i);
	double e=gettime();
	printf("fibo(%d)=%lld %fms\n",i,res,(e-s));

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:8:22: error: 'sec' undeclared (first use in this function)
    8 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:15:30: error: expected ';' before ')' token
   15 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:22:19: error: 's' undeclared (first use in this function)
   22 |         for(int i=s; i<=41; i++){
      |                   ^
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C



#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettime(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[n]=fibodp[n-1]+fibodp[n-2];
	}
	return fibodp[n];
}

 int main(void){
	for(int i=s; i<=41; i++){
	double s=gettime();
	long long res =fibodp(i);
	double e=gettime();
	printf("fibo(%d)=%lld %fms\n",i,res,(e-s));

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:8:22: error: 'sec' undeclared (first use in this function)
    8 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:15:30: error: expected ';' before ')' token
   15 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:22:19: error: 's' undeclared (first use in this function)
   22 |         for(int i=s; i<=41; i++){
      |                   ^
main.c:24:24: error: implicit declaration of function 'fibodp'; did you mean 'fibo'? [-Wimplicit-function-declaration]
   24 |         long long res =fibodp(i);
      |                        ^~~~~~
      |                        fibo
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C



#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettime(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[n]=fibodp[n-1]+fibodp[n-2];
	}
	return fibodp[n];
}

 int main(void){
	for(int i=s; i<=41; i++){
	double s=gettime();
	long long res =fibodp(i);
	double e=gettime();
	printf("fibo(%d)=%ld %f\n",i,res,(e-s));

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:8:22: error: 'sec' undeclared (first use in this function)
    8 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:15:30: error: expected ';' before ')' token
   15 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:22:19: error: 's' undeclared (first use in this function)
   22 |         for(int i=s; i<=41; i++){
      |                   ^
main.c:24:24: error: implicit declaration of function 'fibodp'; did you mean 'fibo'? [-Wimplicit-function-declaration]
   24 |         long long res =fibodp(i);
      |                        ^~~~~~
      |                        fibo
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[n]=fibodp[n-1]+fibodp[n-2];
	}
	return fibodp[n];
}

 int main(void){
	for(int i=s; i<=41; i++){
	double s=gettime();
	long long res =fibo(i);
	double e=gettime();
	printf("fibo(%d)=%lld %fms\n",i,res,(e-s));

return(0);
}






Compiler output:
main.c: In function 'gettime':
main.c:6:22: error: 'sec' undeclared (first use in this function)
    6 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:13:30: error: expected ';' before ')' token
   13 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:20:19: error: 's' undeclared (first use in this function)
   20 |         for(int i=s; i<=41; i++){
      |                   ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[n]=fibodp[n-1]+fibodp[n-2];
	}
	return fibodp[n];
}

 int main(void){
	for(int i=s; i<=41; i++){
	double s=gettime();
	long long res =fibo(i);
	double e=gettime();
	printf("fibo(%d)=%lld %fms\n",i,res,(e-s));

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:6:22: error: 'sec' undeclared (first use in this function)
    6 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:13:30: error: expected ';' before ')' token
   13 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:20:19: error: 's' undeclared (first use in this function)
   20 |         for(int i=s; i<=41; i++){
      |                   ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[n]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[n];
}

 int main(void){
	for(int i=s; i<=41; i++){
	double s=gettime();
	long long res =fibo(i);
	double e=gettime();
	printf("fibo(%d)=%lld %fms\n",i,res,(e-s));

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:6:22: error: 'sec' undeclared (first use in this function)
    6 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:13:30: error: expected ';' before ')' token
   13 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:20:19: error: 's' undeclared (first use in this function)
   20 |         for(int i=s; i<=41; i++){
      |                   ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=i;
	fibodp[i]=i;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[i];
}

 int main(void){
	for(int i=s; i<=41; i++){
	double s=gettime();
	long long res =fibo(i);
	double e=gettime();
	printf("fibo(%d)=%lld %fms\n",i,res,(e-s));

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:6:22: error: 'sec' undeclared (first use in this function)
    6 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:11:19: error: 'i' undeclared (first use in this function)
   11 |         fibodp[0]=i;
      |                   ^
main.c:13:30: error: expected ';' before ')' token
   13 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:20:19: error: 's' undeclared (first use in this function)
   20 |         for(int i=s; i<=41; i++){
      |                   ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C


#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=i;
	fibodp[i]=i;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[i];
}

 int main(void){
	int main(void){
	int n;
	printf("%d\n",n);
	scanf("%d\n",&n);



return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:7:22: error: 'sec' undeclared (first use in this function)
    7 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:12:19: error: 'i' undeclared (first use in this function)
   12 |         fibodp[0]=i;
      |                   ^
main.c:14:30: error: expected ';' before ')' token
   14 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=i;
	fibodp[i]=i;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[i];
}

 int main(void){
	int n;
	scanf("%d\n",&n);
	printf("%d\n",n);

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:6:22: error: 'sec' undeclared (first use in this function)
    6 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:11:19: error: 'i' undeclared (first use in this function)
   11 |         fibodp[0]=i;
      |                   ^
main.c:13:30: error: expected ';' before ')' token
   13 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
Language: C



#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=i;
	fibodp[i]=i;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[i];
}

 int main(void){
	int n;
	scanf("%d\n",&n);
	printf("%d\n",fibo(n));

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:8:22: error: 'sec' undeclared (first use in this function)
    8 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:13:19: error: 'i' undeclared (first use in this function)
   13 |         fibodp[0]=i;
      |                   ^
main.c:15:30: error: expected ';' before ')' token
   15 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
Language: C



#include<stdio.h>
#include<sys/time.h>
static double gettime(){
	struct timeval tv ={0};
	gettimeofday(&tv,NULL);
	return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
}

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=i;
	fibodp[i]=i;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[i];
}

 int main(void){
	int n;
	scanf("%d",&n);
	printf("%d\n",fibo(n));

return(0);
}




Compiler output:
main.c: In function 'gettime':
main.c:8:22: error: 'sec' undeclared (first use in this function)
    8 |         return(tv,tv-sec*1000.0)+(tv.tv_usec/1000.0);
      |                      ^~~
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fibo':
main.c:13:19: error: 'i' undeclared (first use in this function)
   13 |         fibodp[0]=i;
      |                   ^
main.c:15:30: error: expected ';' before ')' token
   15 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
Language: C



#include<stdio.h>

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=i;
	fibodp[i]=i;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[i];
}

 int main(void){
	int n;
	scanf("%d",&n);
	printf("%d\n",fibo(n));

return(0);
}




Compiler output:
main.c: In function 'fibo':
main.c:7:19: error: 'i' undeclared (first use in this function)
    7 |         fibodp[0]=i;
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:30: error: expected ';' before ')' token
    9 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
Language: C



#include<stdio.h>

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[i];
}

 int main(void){
	int n;
	scanf("%d",&n);
	printf("%d\n",fibo(n));

return(0);
}




Compiler output:
main.c: In function 'fibo':
main.c:9:30: error: expected ';' before ')' token
    9 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
main.c:12:23: error: 'i' undeclared (first use in this function)
   12 |         return fibodp[i];
      |                       ^
main.c:12:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C



#include<stdio.h>

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[n];
}

 int main(void){
	int n;
	scanf("%d",&n);
	printf("%d\n",fibo(n));

return(0);
}




Compiler output:
main.c: In function 'fibo':
main.c:9:30: error: expected ';' before ')' token
    9 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
Language: C



#include<stdio.h>

long long fibo(int n){
	long long fibodp[200];
	fibodp[0]=1;
	fibodp[1]=1;
	for(int i=2; i<=n,i++){
		fibodp[i]=fibodp[i-1]+fibodp[i-2];
	}
	return fibodp[n];
}

 int main(void){
	int n;
	scanf("%d",&n);
	printf("%lld\n",fibo(n));

return(0);
}




Compiler output:
main.c: In function 'fibo':
main.c:9:30: error: expected ';' before ')' token
    9 |         for(int i=2; i<=n,i++){
      |                              ^
      |                              ;
Language: C

#include<iostream>

using namespace std;
int fib(int n);
int main() {
  int n;

  //入力
  cin >> n;

  //出力
  cout << fib(n) << endl;

  return 0;
}

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



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

#include <stdio.h>
int fib(int);

int main(void){
  int n;

  scanf("%d",&n);
  n = fib(n);
  printf("%d\n",n);

return 0;
}




int fib(int n){

  if(n=0) return 1;
  else if(n=1) return 1;
  else{
    fib(n) = fib(n-1) + fib(n-2);
      }
}

Compiler output:
main.c: In function 'fib':
main.c:22:12: error: lvalue required as left operand of assignment
   22 |     fib(n) = fib(n-1) + fib(n-2);
      |            ^
Language: C

#include <stdio.h>

int fib(int);
unsigned long long int num[45];

int main(void){
  int n;
  scanf("%d",&n);
  printf("%d\n",fib(n));
  return 0;
}

int fib(int x){
  int i;

  num[1] = 1;
  num[2] = 1;

  for( i < 3 ; i <= x ;	i++ ){
    num[i] = num[i-1] + num[i-2];
  }
  return num[n];
}

Compiler output:
main.c: In function 'fib':
main.c:22:14: error: 'n' undeclared (first use in this function)
   22 |   return num[n];
      |              ^
main.c:22:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
#include <complex>
#include <ctime>
#include <cstdlib>

using namespace std;

inline int to_int(string s) {int v; istringstream sin(s); sin >> v; return v;}
template<class T> inline string to_str(T x) {ostringstream sout; sout << x; return sout.str();}

typedef long long ll;

int main()
{
	int fib[1256], num;

	fib[0] = 1; fib[1] = 1;

	for(int i = 2; i < 128; i++)
	{
		fib[i] = fib[i-1] + fib[i-2];
	}
	cin >> num;

	cout << fib[num] << endl;
}

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

#include<iostream>

using namespace std;

int fib(int n){
if(n<2)return 1;
return fib(n-1)+fib(n-2);
}

int main(void){

int n;

while(cin >> n)cout << fib(n) << endl;

return 0;
}

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

#include <iostream>
 
using namespace std;
 
typedef unsigned long long ull;
 
auto fib(ull const n) -> ull
{
    return ( n == 0 || n == 1 ) ? 1 : fib( n - 2 ) + fib( n - 1 );
}
 
int main()
{
    ull n;
    cin >> n;
    cout << fib( n ) << endl;
}

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

#include <iostream>

using namespace std;

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

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

w#include <stdio.h>
int fib(int);
int fibo[45];
int main(){
  int n,i;
  for(i=0;i<45;i++)fibo[i]=-1;
  scanf("%d",&n);
  printf("%d\n",fib(n));
  return 0;
}
int fib(int n){
  if(n==0 || n==1)return fibo[n]=1;
  if(fibo[n]!=-1)return fibo[n];
  return fibo[n]=fib(n-1)+fib(n-2);
}



Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | w#include <stdio.h>
      |  ^
a.cc:1:1: error: 'w' does not name a type
    1 | w#include <stdio.h>
      | ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'scanf' was not declared in this scope
    7 |   scanf("%d",&n);
      |   ^~~~~
a.cc:8:17: error: 'fib' was not declared in this scope; did you mean 'fibo'?
    8 |   printf("%d\n",fib(n));
      |                 ^~~
      |                 fibo
a.cc:8:3: error: 'printf' was not declared in this scope
    8 |   printf("%d\n",fib(n));
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | w#include <stdio.h>
Language: C++

#include<stdio.h>

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

int main()
{
  int n;

  scanf("%d",&n);

  //n = fib(n);

  printf("%d\n",fib(n);

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: expected ')' before ';' token
   18 |   printf("%d\n",fib(n);
      |         ~             ^
      |                       )
Language: C++

#include <iostream>

using namespace std;

int main() {
  int n;
  int dp[45];

  // 初期化
  dp[0] = 1;
  dp[1] = 1;

  //入力
  cin >> n;

  // DP
  for(int i = 2; i <= n; i++) dp[i] = dp[i-1] + dp[i-2];

  // 出力
  cout << fib(n) << endl;

  return 0;
}



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

#include <iostream>

using namespace std;

int A[128]
int fib(int n){
  A[0] =1
  for(int i=1;i<n;++i){
    A[i] =A[i-1];
    if(i>2)A[i]+=A[i-2];
    if(i>3)A[i]+=A[i-3];
  }
  return A[n-1];

}

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

Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int fib(int n){
      | ^~~
a.cc: In function 'int main()':
a.cc:20:10: error: 'fib' was not declared in this scope
   20 |   cout <<fib(n)<<endl;
      |          ^~~
Language: C++

#include <iostream>

using namespace std;

int A[128];
int fib(int n){
  A[0] =1;
  A[1] =2
  for(int i=2;i<44;++i){
    A[i] =A[i-1];
    if(i>1)A[i]+=A[i-2];
  }
  return A[n-1];

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

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

#include<iostream>
#include<string>
#include<vector>
#include<cstdio>
#include<sstream>
#include<algorithm>
#include<cmath>
#include<map>
using namespace std;
dp[50];
int main(){
	int n;
	cin>>n;
	dp[0]=1,dp[1]=1;
	for(int i=2;i<=n;i++)dp[i]=dp[i-1]+dp[i-2];
	cout<<dp[n]<<endl;
	return 0;
}

Compiler output:
a.cc:10:1: error: 'dp' does not name a type
   10 | dp[50];
      | ^~
a.cc: In function 'int main()':
a.cc:14:9: error: 'dp' was not declared in this scope
   14 |         dp[0]=1,dp[1]=1;
      |         ^~
Language: C++

#include <iostream>
using namespace std;
int fib(int n) {
    if(n==1) 
        return 1;
    else if(n==2)
        return 2;
    else
        return fib(n-1) + fib(n-2);
}
int main(void){
    int n;
    cin >> n 
    cout << fib(n) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected ';' before 'cout'
   13 |     cin >> n
      |             ^
      |             ;
   14 |     cout << fib(n) << endl;
      |     ~~~~
Language: C++

fibonacci :: Int -> Int
fibonacci = fibo (1, 1) 2
    where
      fibo :: (Int, Int) -> Int -> Int -> Int
      fibo (pp, prev) pos n
          | n < 2 = 1
          | pos >= n = pp + prev
          | otherwise = fibo (prev, pp+prev) (pos+1) n

main :: IO ()
main = do
  n <- readLn
  putStrLn $ show $ fibonacci n

Compiler output:
a.cc:1:1: error: 'fibonacci' does not name a type
    1 | fibonacci :: Int -> Int
      | ^~~~~~~~~
Language: C++


import java.util.Scanner;
import java.util.ArrayList;
import java.util.Stack;


class Main{
	public static void main(String[] args){
		Solve s = new Solve();
		s.solve();
	}	
}

class Solve{
	Solve(){}
	
	int[] memo;

	void solve(){
		Scanner in = new Scanner(System.in);

		memo = new int[45];

		int n = in.nextInt();

		System.out.println(fib(n));
		
	}
	
	int fib(int n){
		if(n<2) return 1;
		if(memo[n] != 0) return memo[n];
		return memo[n] = fib(n - 1) + fib(n - 2);
	}

}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.ArrayList;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.Stack;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:15: error: expected ':' before 'static'
    8 |         public static void main(String[] args){
      |               ^~~~~~~
      |               :
a.cc:8:33: error: 'String' has not been declared
    8 |         public static void main(String[] args){
      |                                 ^~~~~~
a.cc:8:42: error: expected ',' or '...' before 'args'
    8 |         public static void main(String[] args){
      |                                          ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:9:17: error: 'Solve' was not declared in this scope
    9 |                 Solve s = new Solve();
      |                 ^~~~~
a.cc:10:17: error: 's' was not declared in this scope
   10 |                 s.solve();
      |                 ^
a.cc: At global scope:
a.cc:17:12: error: expected unqualified-id before '[' token
   17 |         int[] memo;
      |            ^
a.cc:36:2: error: expected ';' after class definition
   36 | }
      |  ^
      |  ;
a.cc: In member function 'void Solve::solve()':
a.cc:20:17: error: 'Scanner' was not declared in this scope
   20 |                 Scanner in = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:22:17: error: 'memo' was not declared in this scope
   22 |                 memo = new int[45];
      |                 ^~~~
a.cc:24:25: error: 'in' was not declared in this scope; did you mean 'int'?
   24 |                 int n = in.nextInt();
      |                         ^~
      |                         int
a.cc:26:17: error: 'System' was not declared in this scope
   26 |                 System.out.println(fib(n));
      |                 ^~~~~~
a.cc: In member function 'int Solve::fib(int)':
a.cc:32:20: error: 'memo' was not declared in this scope
   32 |                 if(memo[n] != 0) return memo[n];
      |                    ^~~~
a.cc:33:24: error: 'memo' was not declared in this scope
   33 |                 return memo[n] = fib(n - 1) + fib(n - 2);
      |                        ^~~~
Language: C++

require 'matrix'

def fib(n)
  a = Matrix[[1, 1], [1, 0]]
  return (a**(n+1))[1, 0]
end

puts fib(gets.to_i)

Compiler output:
a.cc:1:9: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    1 | require 'matrix'
      |         ^~~~~~~~
a.cc:1:1: error: 'require' does not name a type
    1 | require 'matrix'
      | ^~~~~~~
Language: C++

def fib(n):
  if n <= 1:
      return n
  return fib(n - 1) + fib(n - 2)

n = int(strip(raw_input()))

print fib(n)

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def fib(n):
      | ^~~
Language: C++

#include <iostream>
#include <vector>
#define eol '\n'
using namespace std;

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

  vector<int> list(N,0);
  list[0] = list[1] = 1;
  
  int n;
  cin >> n;

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

  cout << list[n] << eol;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'N' was not declared in this scope
   10 |   vector<int> list(N,0);
      |                    ^
Language: C++

// -*- mode:c++; coding:utf-8; c-basic-offset:2; -*-
// ALDS1_10_A: Fibonacci Number

#include <algorithm>
#include <cstdio>

#define NDEBUG
#include <cassert>

class Fibonnacci {
  static const unsigned int N = 44u;
  unsigned int n_;
  unsigned long* f_;

public:
  Fibonnacci(unsigned int n = N) : n_(std::max(1, n))
  {
    f_ = new unsigned long[n_+1];
    f_[0] = f_[1] = 1;
    for (auto i = 2u; i <= n; ++i) {
      f_[i] = f_[i-1] + f_[i-2];
    }
  }

  ~Fibonnacci() { delete[] f_; }
  
  unsigned long operator () (unsigned int n) const
  {
    assert(n <= n_);
    return f_[n];
  }
};

int main()
{
  unsigned int n;
  std::scanf("%u", &n);
  Fibonnacci fib;
  std::printf("%lu\n", fib(n));
}

// eof

Compiler output:
a.cc: In constructor 'Fibonnacci::Fibonnacci(unsigned int)':
a.cc:16:47: error: no matching function for call to 'max(int, unsigned int&)'
   16 |   Fibonnacci(unsigned int n = N) : n_(std::max(1, n))
      |                                       ~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from a.cc:4:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:16:47: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'unsigned int')
   16 |   Fibonnacci(unsigned int n = N) : n_(std::max(1, n))
      |                                       ~~~~~~~~^~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:16:47: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   16 |   Fibonnacci(unsigned int n = N) : n_(std::max(1, n))
      |                                       ~~~~~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;

typedef long long hyper

hyper fib(int n)
{
    if(n < 2) return 1;
    if(n == 2) return 2;
    if(n == 3) return 3;
    return 3 * fib(n - 2) + fib(n - 4);
}
 
int main()
{
    int n;
    cin >> n;
    cout << fib(n) << endl;
    return 0;
}

Compiler output:
a.cc:6:1: error: expected initializer before 'hyper'
    6 | hyper fib(int n)
      | ^~~~~
a.cc: In function 'int main()':
a.cc:18:13: error: 'fib' was not declared in this scope
   18 |     cout << fib(n) << endl;
      |             ^~~
Language: C++

// fibonacci number.
#include<stdio.h>

int main()
{
    int n;
    long long A[45];
    scanf("%d", &n);
    A[0] = 1; A[1] = 1;
    for(int i = 2; i <= n; i++) A[i] = A[i - 1] + A[i - 2];
    printf("%d\n", A[n];
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ')' before ';' token
   11 |     printf("%d\n", A[n];
      |           ~            ^
      |                        )
Language: C++

#include<iostream>
using namespace std;

int fib(int n,int F[]){
	if(n==0||n==1){
		return F[n]=1;
	}
        if(F[n]!=-1){
             return F[n];
        }
	return F[n]=fib(n-1) + fib(n-2);
}

int main(){
	int n;
	cin>>n;
	int F[n];
        for(int i=0;i<n;i++){
              F[i]=-1;
        }
	cout<<fib(n)<<endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int fib(int, int*)':
a.cc:11:24: error: too few arguments to function 'int fib(int, int*)'
   11 |         return F[n]=fib(n-1) + fib(n-2);
      |                     ~~~^~~~~
a.cc:4:5: note: declared here
    4 | int fib(int n,int F[]){
      |     ^~~
a.cc:11:35: error: too few arguments to function 'int fib(int, int*)'
   11 |         return F[n]=fib(n-1) + fib(n-2);
      |                                ~~~^~~~~
a.cc:4:5: note: declared here
    4 | int fib(int n,int F[]){
      |     ^~~
a.cc: In function 'int main()':
a.cc:21:18: error: too few arguments to function 'int fib(int, int*)'
   21 |         cout<<fib(n)<<endl;
      |               ~~~^~~
a.cc:4:5: note: declared here
    4 | int fib(int n,int F[]){
      |     ^~~
Language: C++

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

int Fibonatch(int result[], int num)
{
    int ret = result[num];

    if (ret != 0) {
        if (num > 1) {
            ret = Fibonatch(num - 1) + Fibonatch(num - 2);
        }
        else {
            ret = 1;
        }
        result[num] = ret;
    }

    return ret;
}

int main(void)
{
    int num;
    int ret[45] = {0};

    scanf("%d", &num);
    result = Fibonatch(ret, num);
}

Compiler output:
a.cc: In function 'int Fibonatch(int*, int)':
a.cc:11:33: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   11 |             ret = Fibonatch(num - 1) + Fibonatch(num - 2);
      |                             ~~~~^~~
      |                                 |
      |                                 int
a.cc:11:28: error: too few arguments to function 'int Fibonatch(int*, int)'
   11 |             ret = Fibonatch(num - 1) + Fibonatch(num - 2);
      |                   ~~~~~~~~~^~~~~~~~~
a.cc:5:5: note: declared here
    5 | int Fibonatch(int result[], int num)
      |     ^~~~~~~~~
a.cc:11:54: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   11 |             ret = Fibonatch(num - 1) + Fibonatch(num - 2);
      |                                                  ~~~~^~~
      |                                                      |
      |                                                      int
a.cc:11:49: error: too few arguments to function 'int Fibonatch(int*, int)'
   11 |             ret = Fibonatch(num - 1) + Fibonatch(num - 2);
      |                                        ~~~~~~~~~^~~~~~~~~
a.cc:5:5: note: declared here
    5 | int Fibonatch(int result[], int num)
      |     ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:28:5: error: 'result' was not declared in this scope
   28 |     result = Fibonatch(ret, num);
      |     ^~~~~~
Language: C++

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

int Fibonatch(int result[], int num)
{
    int ret = result[num];

    if (ret != 0) {
        if (num > 1) {
            ret = Fibonatch(result, num - 1) + Fibonatch(result, num - 2);
        }
        else {
            ret = 1;
        }
        result[num] = ret;
    }

    return ret;
}

int main(void)
{
    int num;
    int ret[45] = {0};

    scanf("%d", &num);
    result = Fibonatch(ret, num);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: 'result' was not declared in this scope
   28 |     result = Fibonatch(ret, num);
      |     ^~~~~~
Language: C++

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

#if 0
int Fibonatch(int result[], int num)
{
    int ret = result[num];

    if (ret == 0) {
        if (num > 1) {
            ret = Fibonatch(result, num - 1) + Fibonatch(result, num - 2);
        }
        else {
            ret = 1;
        }
        result[num] = ret;
    }

    return ret;
}

int main(void)
{
    int num;
    int ret[45] = {0};
    int result;

    scanf("%d", &num);
    result = Fibonatch(ret, num);

    printf("%d\n", result);

    return 0;
}
#else

int Fibonatch(int num)
{
    int i;
    int result[45];

    result[0] = result[1] = 0;
    for (i = 2; i <= num; i++) {
        result[i] = result[i - 1] + result[i - 2];
    }

    return result[num];
}

int main(void)
{
    int num;
    int result;

    scnaf("%d", &num);

    result = Fibonatch(num);
    printf("%d\n", result);

    return 0;
}

#endif

Compiler output:
a.cc: In function 'int main()':
a.cc:56:5: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
   56 |     scnaf("%d", &num);
      |     ^~~~~
      |     scanf
Language: C++

#include <iostream>
using namespace std;
int fib(int n) 
{
	if (n >= 0) {
		if (n <= 1) return 1;
		return fib(n - 1) + fib(n - 2);
	}
}
int main(void)
{
	int n;
	scanf_s("%d", &n);
	printf("%d", fib(n));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   13 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
a.cc: In function 'int fib(int)':
a.cc:9:1: warning: control reaches end of non-void function [-Wreturn-type]
    9 | }
      | ^
Language: C++

include <iostream>

using namespace std;

int fib(int n) {
    if (n <= 1) return 1;
    return fib(n-1) + fib(n-2);
}

int main()
{
    int i = 0;
    cin >> i;
    cout << fib(i) << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:13:5: error: 'cin' was not declared in this scope
   13 |     cin >> i;
      |     ^~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << fib(i) << endl;
      |     ^~~~
a.cc:14:23: error: 'endl' was not declared in this scope
   14 |     cout << fib(i) << endl;
      |                       ^~~~
Language: C++

#include <iostream>

using namespace std;

int ans[45] = 0;

int fib(int n) {
	if (n <= 1) return 1;
	int a = ans[n];
	if (a) return a;
	a = fib(n-1) + fib(n-2);
	ans[n] = a;
	return a;
}

int main()
{
	int i = 0;
	cin >> i;
	cout << fib(i) << endl;
}

Compiler output:
a.cc:5:15: error: array must be initialized with a brace-enclosed initializer
    5 | int ans[45] = 0;
      |               ^
Language: C++

#include<iostream>
int F[100]; // ???????????????
int main() 
{
int n;
F[0] = 1;
F[1] = 1;
for (int i=2; i<45; ++i) 
{ // ???????????????
F[i] = F[i-2]+F[i-1];
}
cin>>n;
cout<<F[n];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 | cin>>n;
      | ^~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | cout<<F[n];
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
int F[100]; // ???????????????
int main() 
{
int n;
F[0] = 1;
F[1] = 1;
for (int i=2; i<45; ++i) 
{ // ???????????????
F[i] = F[i-2]+F[i-1];
}
cin>>n;
cout<<F[n];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 | cin>>n;
      | ^~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | cout<<F[n];
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
int F[100];
int main() 
{
int n;
F[0] = 1;
F[1] = 1;
for (int i=2; i<45; ++i) 
{ // ???????????????
F[i] = F[i-2]+F[i-1];
}
cin>>n;
cout<<F[n];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 | cin>>n;
      | ^~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | cout<<F[n];
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;
int fib(int n)
{
    int F[50];
    if(n<=1) return 1;
    for(i = 2 ; i < =n; i++)
    {
        F[i] = F[i-1] + F[i-2];
    }
    return F[n];
}

int main()
{
    int n;
    cin>>n;
    cout<<fib(n)<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int fib(int)':
a.cc:7:9: error: 'i' was not declared in this scope
    7 |     for(i = 2 ; i < =n; i++)
      |         ^
a.cc:7:21: error: expected primary-expression before '=' token
    7 |     for(i = 2 ; i < =n; i++)
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int fib(int n)
{
    int F[50];
    if(n<=1) return 1;
    for(int i = 2 ; i < =n; i++)
    {
        F[i] = F[i-1] + F[i-2];
    }
    return F[n];
}

int main()
{
    int n;
    cin>>n;
    cout<<fib(n)<<endl;
    return 0;
}

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

#include <iostream>
#include <vector>
#include <stack>
#include <queue>

using namespace std;


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

	int f1 = 1;
	int f2 = 1;
	int f3 = 0;
	for (int i = 2; i <= n; ++i){
		f3 = f1 + f2;
		f1 = f2;
		f2 = f3;
	}
	if (n == 1){
		cout << 1 << endl;
		return;
	}
	if (n == 2){
		cout << 2 << endl;
		return;
	}
	cout << f3 << endl;

	return 0;
}

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

#include <iostream>

int fib(int n){
   if ( n == 1 || n == 0){
        return 1;
   }
   return fib(n-1) + fib(n - 2);
}

std::cout<<fib<<std::endl;

Compiler output:
a.cc:10:6: error: 'cout' in namespace 'std' does not name a type
   10 | std::cout<<fib<<std::endl;
      |      ^~~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

int fib(int n){
   if ( n == 1 || n == 0){
        return 1;
   }
   return fib(n-1) + fib(n - 2);
}

int fib = 0;
std::cin>>fib;
std::cout<<fib(n)<<std::endl;

Compiler output:
a.cc:10:5: error: 'int fib' redeclared as different kind of entity
   10 | int fib = 0;
      |     ^~~
a.cc:3:5: note: previous declaration 'int fib(int)'
    3 | int fib(int n){
      |     ^~~
a.cc:11:6: error: 'cin' in namespace 'std' does not name a type
   11 | std::cin>>fib;
      |      ^~~
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:12:6: error: 'cout' in namespace 'std' does not name a type
   12 | std::cout<<fib(n)<<std::endl;
      |      ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~