Borderou de evaluare (job #1394866)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 20 martie 2015 19:34:42
Problema Bifo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void Query()’: user.cpp:72:15: warning: unused variable ‘t’ [-Wunused-variable] int k, i, t, len; ^ user.cpp:73:10: warning: unused variable ‘ok’ [-Wunused-variable] bool ok; ^ user.cpp: In function ‘void Read_and_Set()’: user.cpp:15:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S1); gets(S2); ^ user.cpp:15:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S1); gets(S2); ^ user.cpp: In function ‘void Query()’: user.cpp:75:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(Q); len = strlen(Q); //printf("%s ",Q); ^ user.cpp: In function ‘int main()’: user.cpp:125:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); gets(Q); ^ user.cpp:125:29: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); gets(Q); ^ user.cpp: In function ‘void Query()’: user.cpp:46:12: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized] if( X[i] < Y[0] ) ^ user.cpp:43:9: note: ‘i’ was declared here int i; ^ user.cpp:46:12: warning: ‘i’ is used uninitialized in this function [-Wuninitialized] if( X[i] < Y[0] ) ^ user.cpp:43:9: note: ‘i’ was declared here int i; ^ /tmp/ccgXKr4W.o: In function `Read_and_Set()': user.cpp:(.text+0x17): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms484kbOK10
20ms484kbIncorect0
30ms488kbIncorect0
40ms484kbIncorect0
50ms480kbIncorect0
60ms484kbIncorect0
70ms480kbIncorect0
80ms484kbOK10
90ms488kbIncorect0
100ms488kbOK10
Punctaj total30

Ceva nu functioneaza?