Pagini recente » Borderou de evaluare (job #77054) | Borderou de evaluare (job #376092) | Borderou de evaluare (job #1618539) | Borderou de evaluare (job #394948) | Borderou de evaluare (job #1529638)
Borderou de evaluare (job #1529638)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:6:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kcons.in","r",stdin);
^
user.cpp:7:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kcons.out","w",stdout);
^
user.cpp:8:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&k);
^
user.cpp:9:17: warning: array subscript is above array bounds [-Warray-bounds]
dp[1][1]=dp[2][1]=1; dp[2][2]=2;
^
user.cpp:9:8: warning: array subscript is above array bounds [-Warray-bounds]
dp[1][1]=dp[2][1]=1; dp[2][2]=2;
^
user.cpp:9:29: warning: array subscript is above array bounds [-Warray-bounds]
dp[1][1]=dp[2][1]=1; dp[2][2]=2;
^
user.cpp:11:28: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][1]=(1LL*dp[i-1][1]*(i-1)+dp[i-2][1]*(i-2))%mod;
^
user.cpp:11:45: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][1]=(1LL*dp[i-1][1]*(i-1)+dp[i-2][1]*(i-2))%mod;
^
user.cpp:11:12: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][1]=(1LL*dp[i-1][1]*(i-1)+dp[i-2][1]*(i-2))%mod;
^
user.cpp:12:33: warning: array subscript is above array bounds [-Warray-bounds]
if (k==1) printf("%d\n",dp[n][k]); else
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 276kb | OK | 10 |
2 | 0ms | 264kb | OK | 10 |
3 | 0ms | 260kb | OK | 10 |
4 | 0ms | 280kb | OK | 10 |
5 | 0ms | 268kb | OK | 10 |
6 | 0ms | 276kb | OK | 10 |
7 | 0ms | 268kb | OK | 10 |
8 | 0ms | 284kb | OK | 10 |
9 | 0ms | 268kb | OK | 10 |
10 | 0ms | 268kb | OK | 10 |
Punctaj total | 100 |