Borderou de evaluare (job #2781039)

Utilizator Remus.RughinisRemus Rughinis Remus.Rughinis Data 8 octombrie 2021 12:50:25
Problema Cabana Status done
Runda Arhiva ICPC Compilator c-64 | Vezi sursa
Scor 0

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
1430ms5197kbIncorect0
Punctaj total0

Ceva nu functioneaza?