Borderou de evaluare (job #1831294)

Utilizator NicusorTelescu Nicolae Nicusor Data 17 decembrie 2016 19:27:21
Problema Disconnect Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:59:28: warning: NULL used in arithmetic [-Wpointer-arith] for (int j=0;s[j]!=NULL;j++) ^ user.cpp:88:28: warning: NULL used in arithmetic [-Wpointer-arith] for (int j=2;s[j]!=NULL;j++) ^ user.cpp:105:33: warning: variable ‘nodd’ set but not used [-Wunused-but-set-variable] int nod_max,nod_min,nodd; ^ user.cpp:48:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("disconnect.in","r",stdin); ^ user.cpp:49:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("disconnect.out","w",stdout); ^ user.cpp:51:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&n,&m); ^ user.cpp:54:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:82:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccrd6cIe.o: In function `main': user.cpp:(.text.startup+0x88): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms2620kbOK10
24ms2664kbIncorect0
3152ms2824kbIncorect0
4160ms3040kbIncorect0
576ms5612kbKilled by signal 11(SIGSEGV).0
692ms6004kbKilled by signal 11(SIGSEGV).0
7Depăşit6080kbTime limit exceeded.0
8224ms6484kbKilled by signal 11(SIGSEGV).0
9144ms6528kbKilled by signal 11(SIGSEGV).0
10104ms6532kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?