Borderou de evaluare (job #2689732)

Utilizator H7GhosTSuruceanu Daniel H7GhosT Data 21 decembrie 2020 23:02:49
Problema Texttrim Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (current < w) putchar(s[i]); ~~~~~~~~^~~ main.cpp:4:50: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] #define FL(nm) do { freopen(nm ".in", "r", stdin); freopen(nm ".out", "w", stdout); } while (false) ^ main.cpp:13:5: note: in expansion of macro 'FL' FL("texttrim"); ^~ main.cpp:4:83: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] #define FL(nm) do { freopen(nm ".in", "r", stdin); freopen(nm ".out", "w", stdout); } while (false) ^ main.cpp:13:5: note: in expansion of macro 'FL' FL("texttrim"); ^~ main.cpp:17:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &spw); ^ main.cpp:19:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", width + i); ^ main.cpp:21:25: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(s, mxN, stdin); ^ main.cpp:25:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] int w; scanf("%d", &w); w-=2; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms131kbOK100
23ms131kbIncorect0
33ms131kbIncorect0
43ms131kbIncorect0
53ms131kbOK10
63ms393kbOK10
77ms1179kbOK10
89ms1179kbOK10
97ms1179kbOK10
107ms1179kbOK10
Punctaj total0

Ceva nu functioneaza?