Borderou de evaluare (job #1778246)

Utilizator OlivianOlivian Dan Cretu Olivian Data 13 octombrie 2016 17:20:10
Problema String Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000008]’ [-Wformat=] scanf("%s",&sir); ^ user.cpp:27:13: warning: unused variable ‘b’ [-Wunused-variable] int b=1; ^ user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("string.in","r",stdin); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("string.out","w",stdout); ^ user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&sir); ^ user.cpp:57:25: warning: ‘q’ may be used uninitialized in this function [-Wmaybe-uninitialized] int w=(q>>(st-i)); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms448kbOK!10
20ms444kbRaspuns gresit!0
30ms444kbRaspuns gresit!0
40ms476kbRaspuns gresit!0
560ms1420kbOK!10
624ms840kbRaspuns gresit!0
740ms1136kbRaspuns gresit!0
876ms1416kbRaspuns gresit!0
916ms824kbOK!10
1040ms1212kbOK!10
Punctaj total40

Ceva nu functioneaza?