Borderou de evaluare (job #1302063)

Utilizator ovidiuz98Zamfir Ovidiu ovidiuz98 Data 26 decembrie 2014 16:22:12
Problema GFact Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld%ld",&p,&q); ^ user.cpp:24:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:45:20: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld",st); ^ user.cpp:22:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gfact.in","r",stdin); ^ user.cpp:23:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gfact.out","w",stdout); ^ user.cpp:24:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&p,&q); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK5
20ms256kbOK5
30ms256kbOK5
40ms264kbOK5
50ms260kbOK5
60ms260kbOK5
70ms264kbOK5
80ms260kbOK5
90ms264kbOK5
100ms256kbOK5
110ms260kbOK5
120ms260kbIncorect0
130ms264kbOK5
140ms264kbOK5
150ms264kbOK5
160ms260kbOK5
170ms256kbOK5
180ms256kbIncorect0
190ms264kbIncorect0
200ms260kbIncorect0
Punctaj total80

Ceva nu functioneaza?