Borderou de evaluare (job #1557796)

Utilizator RobybrasovRobert Hangu Robybrasov Data 28 decembrie 2015 12:15:46
Problema Text4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void formatAndWriteParagraph(int, char*)’: user.cpp:20:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (lineSize + strlen(p) > max) { ^ user.cpp:31:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = r; i < words.size() - 1; ++i) { ^ user.cpp:46:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < words.size() - 1; ++i) ^ user.cpp: In function ‘int main()’: user.cpp:52:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("text4.in", "r", stdin); ^ user.cpp:54:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &max); ^ user.cpp:56:27: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(S, S_MAX, stdin); ^ user.cpp:59:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:61:31: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(S, S_MAX, stdin); ^ user.cpp:64:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms460kbOK10
20ms456kbOK10
30ms460kbOK10
40ms460kbOK10
50ms460kbOK10
60ms464kbOK10
70ms468kbOK10
80ms464kbOK10
90ms456kbOK10
100ms460kbOK10
Punctaj total100

Ceva nu functioneaza?