Borderou de evaluare (job #2643740)

Utilizator dream3rDavid Pop dream3r Data 21 august 2020 11:35:54
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:91:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t i = 1; i <= A; i++) ~~^~~~ main.cpp:93:24: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[305]' [-Wformat=] fscanf(f, "%s", &word); ^ main.cpp:110:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t i = 1; i <= B; i++) ~~^~~~ main.cpp:112:24: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[305]' [-Wformat=] fscanf(f, "%s", &word); ^ main.cpp:90:21: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &A); ^ main.cpp:93:25: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%s", &word); ^ main.cpp:109:21: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &B); ^ main.cpp:112:25: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%s", &word); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbOK10
23ms262kbOK10
33ms393kbOK10
46ms1310kbOK10
511ms2752kbOK10
613ms3014kbOK10
737ms10616kbOK10
838ms10747kbOK10
941ms10878kbOK10
1038ms10485kbOK10
Punctaj total100

Ceva nu functioneaza?