Borderou de evaluare (job #1801170)

Utilizator GhSamuelGherasim Teodor-Samuel GhSamuel Data 8 noiembrie 2016 18:53:22
Problema Suma Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf (f, "%d%d", &n, &P); ^ user.cpp:13:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:14:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf (g, "%d", ((n - 1) * n * (n + 1)) / 3 % P); ^ user.cpp:13:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (f, "%d%d", &n, &P); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms256kbOK10
30ms260kbIncorect0
40ms264kbIncorect0
50ms260kbIncorect0
60ms264kbIncorect0
70ms256kbIncorect0
80ms260kbIncorect0
90ms260kbIncorect0
100ms256kbIncorect0
Punctaj total20

Ceva nu functioneaza?