UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#213039#3823. 艾特扣德18112606231Compile Error//C++11345b2024-11-03 12:58:502024-11-03 13:02:59

answer

#include<bits/stdc++.h>
#define int long long
#define MOD 998244353
using namespace std;
int t,n,a[1000001];
signed main(){
    a[0]=1;
    for(int i=1;i<=n;i++)
    {
        a[i]=a[i-1]*i%MOD;
    }
    scanf("%lld",&t);
    while(t--)
    {
        scanf("%lld %lld",&n,&m);
        printf("%lld\n",a[n]);
    }
	return 0;
}

Details

answer.code: In function 'int main()':
answer.code:15:31: error: 'm' was not declared in this scope
         scanf("%lld %lld",&n,&m);\x0d
                               ^
answer.code:12:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld",&t);\x0d
                     ^