Borderou de evaluare (job #1889065)

Utilizator cella.florescuCella Florescu cella.florescu Data 22 februarie 2017 15:45:42
Problema Noroc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:3:55: warning: format ‘%Lf’ expects argument of type ‘long double*’, but argument 3 has type ‘double*’ [-Wformat=] int main(){fscanf(fopen("noroc.in","r"),"%Lf%Lf",&x,&m),fprintf(fopen("noroc.out","w"),"%.7Lf",x<m?(1-(x/m)):0);} ^ user.cpp:3:55: warning: format ‘%Lf’ expects argument of type ‘long double*’, but argument 4 has type ‘double*’ [-Wformat=] user.cpp:3:111: warning: format ‘%Lf’ expects argument of type ‘long double’, but argument 3 has type ‘double’ [-Wformat=] int main(){fscanf(fopen("noroc.in","r"),"%Lf%Lf",&x,&m),fprintf(fopen("noroc.out","w"),"%.7Lf",x<m?(1-(x/m)):0);} ^ user.cpp:3:112: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int main(){fscanf(fopen("noroc.in","r"),"%Lf%Lf",&x,&m),fprintf(fopen("noroc.out","w"),"%.7Lf",x<m?(1-(x/m)):0);} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms320kbIncorect0
20ms332kbIncorect0
30ms320kbIncorect0
40ms332kbOK10
50ms336kbOK10
60ms320kbIncorect0
70ms320kbIncorect0
80ms320kbIncorect0
90ms320kbIncorect0
100ms320kbIncorect0
Punctaj total20

Ceva nu functioneaza?