Borderou de evaluare (job #1874725)

Utilizator NicusorTelescu Nicolae Nicusor Data 10 februarie 2017 13:00:51
Problema Costuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:42:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (numere[b2].size()<b1) printf("-1\n"); ^ user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("costuri.in","r",stdin); ^ user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("costuri.out","w",stdout); ^ user.cpp:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:15:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:27:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&q); ^ user.cpp:30:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccWQnry2.o: In function `main': user.cpp:(.text.startup+0x79): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOK10
20ms280kbOK10
30ms284kbOK10
40ms796kbKilled by signal 11(SIGSEGV).0
50ms796kbKilled by signal 11(SIGSEGV).0
60ms796kbKilled by signal 11(SIGSEGV).0
70ms752kbKilled by signal 11(SIGSEGV).0
80ms804kbKilled by signal 11(SIGSEGV).0
90ms812kbKilled by signal 11(SIGSEGV).0
100ms804kbKilled by signal 11(SIGSEGV).0
Punctaj total30

Ceva nu functioneaza?