Pagini recente » Borderou de evaluare (job #706202) | Borderou de evaluare (job #2924707) | Borderou de evaluare (job #999597) | Borderou de evaluare (job #1500113) | Borderou de evaluare (job #1950641)
Borderou de evaluare (job #1950641)
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:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (f[s[st]] == 1) /// mijloc pt n impar
^
user.cpp:32:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
--f[s[st]];
^
user.cpp:46:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s[st]] -= 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/ccXH212N.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 |
1 | 0ms | 256kb | OK | 100 |
Punctaj total | 100 |