Borderou de evaluare (job #1950602)

Utilizator ionutpop118Pop Ioan Cristian ionutpop118 Data 3 aprilie 2017 10:23:45
Problema Palindroame Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++f[s[i]]; ^ user.cpp:29:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (f[s[i]] == 1) /// mijloc pt n impar ^ user.cpp:37:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] --f[s[i]]; ^ user.cpp:51:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[s[i]] -= 2; ^ user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("palind.in", "r", stdin); ^ user.cpp:9:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("palind.out", "w", stdout); ^ user.cpp:11:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (scanf("%d\n", &t); t > 0; --t) ^ user.cpp:13:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); n = strlen(s + 1); ^ /tmp/ccqRnjJc.o: In function `main': user.cpp:(.text.startup+0x7b): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbIncorect0
Punctaj total0

Ceva nu functioneaza?