Pagini recente » Cod sursa (job #2309331) | Cod sursa (job #3357040) | Cod sursa (job #1162324) | Borderou de evaluare (job #2675094) | Borderou de evaluare (job #2781039)
Borderou de evaluare (job #2781039)
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:37:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
37 | fprintf(fout,"%d\n",s%MOD);
| ~^
| |
| int
| %lld
main.c:28:10: warning: iteration 999999 invokes undefined behavior [-Waggressive-loop-optimizations]
28 | v[i] = (long long)v[i-1] * i %MOD;
| ^
main.c:27:3: note: within this loop
27 | for(i=1;i<=1000000;i++){
| ^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 430ms | 5197kb | Incorect | 0 |
| Punctaj total | 0 |