Borderou de evaluare (job #1493468)

Utilizator Alexa2001Alexa Tudose Alexa2001 Data 29 septembrie 2015 14:08:04
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: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/ccUcOJXK.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
10ms252kbOK10
20ms232kbOK10
30ms292kbOK10
40ms296kbOK10
5Depăşit704kbTime limit exceeded.0
620ms1008kbOK10
74ms928kbOK10
84ms1000kbOK10
98ms968kbOK10
104ms936kbOK10
Punctaj total90

Ceva nu functioneaza?