Pagini recente » Borderou de evaluare (job #939438) | Borderou de evaluare (job #3284981) | Borderou de evaluare (job #2690539) | Borderou de evaluare (job #63591) | Borderou de evaluare (job #2310288)
Borderou de evaluare (job #2310288)
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 |
1 | 15ms | 262kb | OK! | 100 |
Punctaj total | 100 |