Borderou de evaluare (job #1492636)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 27 septembrie 2015 22:24:13
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:32: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:33: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:35:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a); gets(b); n = strlen(a); m = strlen(b); ^ user.cpp:35:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a); gets(b); n = strlen(a); m = strlen(b); ^ /tmp/cc8LYJuY.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
10ms428kbOK10
20ms404kbOK10
30ms460kbOK10
40ms464kbOK10
50ms860kbOK10
632ms1184kbOK10
74ms1104kbOK10
88ms1136kbOK10
94ms1136kbOK10
104ms1108kbOK10
Punctaj total100

Ceva nu functioneaza?