Borderou de evaluare (job #1496982)

Utilizator blasterzMircea Dima blasterz Data 5 octombrie 2015 21:49:37
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] u1[ a[i] ]++; ^ user.cpp:26:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] u2[ b[i] ]++; ^ user.cpp:14:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.in", "r", stdin); ^ user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("swap.out", "w", stdout); ^ user.cpp:20:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a + 1); gets(b + 1); ^ user.cpp:20:29: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a + 1); gets(b + 1); ^ /tmp/ccHztgio.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
10ms260kbOK10
20ms224kbOK10
30ms272kbOK10
40ms376kbOK10
54ms560kbOK10
636ms752kbOK10
712ms760kbOK10
8Depăşit676kbTime limit exceeded.0
920ms752kbOK10
10Depăşit808kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?