Borderou de evaluare (job #1859700)

Utilizator edicCiuculescu Eduard edic Data 27 ianuarie 2017 19:59:40
Problema Gard 5 Status done
Runda PreOJI 2017 Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:40:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] printf("%d %d",cost+n+n+1+2*(mas-mi)-mas-mi,1ll<<(s+1)); ^ user.cpp:43:52: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] printf("%d %d",cost+n+n+1-mas-mi,1ll<<s); ^ user.cpp:45:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] printf("%d %d",cost,1ll<<s); ^ user.cpp:5:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gard5.in","r",stdin); ^ user.cpp:6:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gard5.out","w",stdout); ^ user.cpp:8:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:11:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbRaspuns gresit!0
20ms256kbRaspuns gresit!0
30ms260kbRaspuns gresit!0
40ms260kbRaspuns gresit!0
50ms260kbDoar numarul de permutari gresit!5
60ms260kbRaspuns gresit!0
70ms256kbDoar numarul de permutari gresit!5
80ms260kbRaspuns gresit!0
90ms264kbRaspuns gresit!0
100ms260kbRaspuns gresit!0
Punctaj total10

Ceva nu functioneaza?