CE
查看原帖
CE
923445
amcplayer楼主2023/8/11 20:24
g++: 编译器内部错误

这是什么?

反正Compile Error

#include<bits/stdc++.h>
#define mod a%b
using namespace std;
int f[1000000000]={1,1};
void fbnc(int a)
{
    for(int j=3;j<=a;j++)
    {
        f[j]=f[j-1]+f[j-2];
    }
}
int main()
{
    int n,p;
    cin>>n;
    cin>>p;
    fbnc(n);
    cout<<f[n]%p;
    return 0;
}
2023/8/11 20:24
加载中...