Pagini recente » Borderou de evaluare (job #2214512) | Borderou de evaluare (job #1019463) | Borderou de evaluare (job #2054958) | Borderou de evaluare (job #2019229) | Borderou de evaluare (job #2780896)
Borderou de evaluare (job #2780896)
Raport evaluator
Compilare:
main.c:7:5: warning: conflicting types for built-in function 'exp'; expected 'double(double)' [-Wbuiltin-declaration-mismatch]
7 | int exp(int a, int b, int s){
| ^~~
main.c:3:1: note: 'exp' is declared in header '<math.h>'
2 | #include <stdlib.h>
+++ |+#include <math.h>
3 | #define MOD 1000000007
main.c: In function 'main':
main.c:53:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
53 | fprintf(fout,"%d\n",s%MOD);
| ~^
| |
| int
| %lld
main.c:44:10: warning: iteration 999999 invokes undefined behavior [-Waggressive-loop-optimizations]
44 | v[i] = (long long)v[i-1] * i %MOD;
| ^
main.c:43:3: note: within this loop
43 | for(i=1;i<=1000000;i++){
| ^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 276ms | 5283kb | Incorect | 0 |
| Punctaj total | 0 |