Borderou de evaluare (job #1347552)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 19 februarie 2015 00:34:22
Problema Texttrim Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:30: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%lld", &width[' ']); ^ user.cpp:27:28: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%lld", &width[i]); ^ user.cpp:37:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] s += width[str[i]]; ^ user.cpp:44:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] s += width[str[i]]; ^ user.cpp:20:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(inFile, "r", stdin); ^ user.cpp:21:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(outFile, "w", stdout); ^ user.cpp:25:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &width[' ']); ^ user.cpp:27:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &width[i]); ^ user.cpp:28:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str); ^ user.cpp:29:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str); ^ user.cpp:30:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &W); ^ /tmp/cctRQsfn.o: In function `main': user.cpp:(.text.startup+0x8b): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms424kbOK10100
20ms420kbOK10
30ms420kbOK10
40ms424kbOK10
50ms456kbOK10
60ms620kbOK10
78ms1400kbOK10
88ms1404kbOK10
98ms1400kbOK10
108ms1404kbOK10
Punctaj total100

Ceva nu functioneaza?