Borderou de evaluare (job #2310288)

Utilizator ApostolIlieDanielApostol Daniel ApostolIlieDaniel Data 30 decembrie 2018 22:57:46
Problema Entropy Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:22:22: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[301]' [-Wformat=] scanf ( "%s", &s1); ^ main.cpp:23:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i <strlen (s1); i++) ~~^~~~~~~~~~~~ main.cpp:25:21: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[301]' [-Wformat=] scanf ("%s", &s2); ^ main.cpp:26:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i <strlen (s2); i++) ~~^~~~~~~~~~~~ main.cpp:28:21: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[301]' [-Wformat=] scanf ("%s", &s3); ^ main.cpp:30:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i <strlen (s3); i++) ~~^~~~~~~~~~~~ main.cpp:15:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("entropy.in","r",stdin); ^ main.cpp:16:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("entropy.out","w",stdout); ^ main.cpp:22:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ( "%s", &s1); ^ main.cpp:25:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%s", &s2); ^ main.cpp:28:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%s", &s3); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
115ms262kbOK!100
Punctaj total100

Ceva nu functioneaza?