Borderou de evaluare (job #1336642)

Utilizator Al3ks1002Alex Cociorva Al3ks1002 Data 7 februarie 2015 23:56:45
Problema Mesaj2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:49:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] last[s[i]][i] = i; ^ user.cpp:66:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] poz = last[t[j]][poz]; ^ user.cpp:38:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mesaj2.in", "r", stdin); ^ user.cpp:39:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mesaj2.out", "w", stdout); ^ user.cpp:41:30: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(s + 1, lmax, stdin); ^ user.cpp:52:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &q); ^ user.cpp:56:34: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(t + 1, lmax, stdin); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:41:30: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^ In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:56:34: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms816kbOK10
20ms820kbOK10
30ms816kbOK10
44ms816kbOK10
516ms816kbOK10
616ms816kbOK10
724ms816kbOK10
832ms812kbOK10
936ms816kbOK10
1040ms820kbOK10
Punctaj total100

Ceva nu functioneaza?