Borderou de evaluare (job #1196608)

Utilizator florin.elfusFlorin Elfus florin.elfus Data 8 iunie 2014 15:10:50
Problema Palalila2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] A[x[i]] = max (A[x[i]], B[j] + 1); ^ user.cpp:26:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] A[x[i]] = max (A[x[i]], B[j] + 1); ^ user.cpp:28:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] B[x[i]] = max (B[x[i]], A[j] + 1); ^ user.cpp:28:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] B[x[i]] = max (B[x[i]], A[j] + 1); ^ user.cpp:15:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("palalila2.in", "r", stdin); ^ user.cpp:16:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("palalila2.out", "w", stdout); ^ user.cpp:18:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (x + 1); ^ /tmp/cc4Awf9S.o: In function `main': user.cpp:(.text.startup+0x56): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbOK10
20ms236kbOK10
30ms240kbOK10
40ms236kbOK10
50ms236kbOK10
60ms248kbOK10
720ms336kbOK10
876ms572kbOK10
9108ms720kbOK10
10108ms724kbOK10
Punctaj total100

Ceva nu functioneaza?