Borderou de evaluare (job #3323350)

Utilizator calinulCalin Cernat calinul Data 18 noiembrie 2025 09:26:23
Problema Cabana Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:47:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 47 | fprintf( fout, "%d\n", (long long)pow_mod( fact[k], n / k ) * inm( n % k, k ) ); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int long long int | %lld main.cpp:41:13: warning: iteration 999998 invokes undefined behavior [-Waggressive-loop-optimizations] 41 | fact[k] = (long long)fact[k - 1] * k % MOD; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:40:18: note: within this loop 40 | for ( k = 2; k <= KMAX; k++ ) | ~~^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
144ms5341kbIncorect0
Punctaj total0

Ceva nu functioneaza?