Mọi người ơi em bị thiếu hàm cbrt,exp,log trong khi,rand trong thư viện cmath và math.h đều không có giờ phải làm sao ạ
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <conio.h>
#include <cmath>
#include <math.h>
using namespace std;
int max(int a,int b)
{
if(a>b)
{
return a;
}
return b;
}
/*void hoan_doi(int *a,int *b)
{
int temp = *a;
*a = *b;
*b= temp;
}*/
void hoan_doi(int a,int b)
{
int temp = a;
a = b;
b= temp;
}
int giaiThua(int n)
{
if (n == 1 || n==0)
return 1;
return n * giaiThua(n - 1);
}
int Fibonacci(int n)
{
if (n == 1 || n == 2)
return 1;
return Fibonacci(n - 1) + Fibonacci(n - 2);
}
int main(){
int n;
printf("nhap n: ");
scanf("%d", &n);
printf("So Fibonacci thu %d la: %d\n", n, Fibonacci(n));
system("pause");
return 0;
}