Borderou de evaluare (job #1492992)

Utilizator Alexa2001Alexa Tudose Alexa2001 Data 28 septembrie 2015 16:36:12
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:40:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(nr[b[i]-'a']>= z[b[i]-'a'].size() ) {printf("-1\n");return 0;} ^ user.cpp:26: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:27: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:29:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a); ^ user.cpp:30:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(b); ^ /tmp/ccCJ2B74.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
10ms256kbOK10
20ms244kbOK10
30ms304kbOK10
40ms300kbOK10
54ms828kbOK10
616ms1208kbOK10
712ms1128kbOK10
8Depăşit1196kbTime limit exceeded.0
912ms1160kbOK10
10Depăşit1128kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?