Borderou de evaluare (job #1494829)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 1 octombrie 2015 21:36:42
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:31:33: 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:32:35: 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:34:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1); gets(b+1); n = strlen(a+1); m = strlen(b+1); ^ user.cpp:34:25: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a+1); gets(b+1); n = strlen(a+1); m = strlen(b+1); ^ /tmp/ccxFQYWN.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
10ms436kbOK10
20ms416kbOK10
30ms472kbOK10
40ms468kbOK10
54ms856kbOK10
6Depăşit1084kbTime limit exceeded.0
78ms1104kbOK10
820ms1104kbOK10
98ms1108kbOK10
108ms1104kbOK10
Punctaj total90

Ceva nu functioneaza?