Borderou de evaluare (job #1910004)

Utilizator andysoloAndrei Solo andysolo Data 7 martie 2017 15:06:24
Problema Dir Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void createPath(int, char*)’: user.cpp:27:13: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] pt[ln+1]=NULL; ^ user.cpp:33:17: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] pt[ln+1]=NULL; ^ user.cpp: In function ‘void efolder(int)’: user.cpp:76:28: warning: NULL used in arithmetic [-Wpointer-arith] while(s[i]!=')'&&s[i]!=NULL) ^ user.cpp:83:17: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] t[j]=NULL; ^ user.cpp:91:17: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] t[j]=NULL; ^ user.cpp: In function ‘int main()’: user.cpp:123:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int k=0;k<=p.size();k++) ^ user.cpp:119:9: warning: unused variable ‘n’ [-Wunused-variable] int n=strlen(s)-1; ^ user.cpp: In function ‘int dir(int)’: user.cpp:47:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘bool name(int)’: user.cpp:54:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:116:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dir.in","r",stdin); ^ user.cpp:117:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dir.out","w",stdout); ^ user.cpp:118:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccA5lBfT.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
10ms236kbKilled by signal 11(SIGSEGV).0
20ms236kbKilled by signal 11(SIGSEGV).0
30ms232kbKilled by signal 11(SIGSEGV).0
40ms236kbKilled by signal 11(SIGSEGV).0
50ms240kbKilled by signal 11(SIGSEGV).0
60ms236kbKilled by signal 11(SIGSEGV).0
70ms336kbKilled by signal 6(SIGABRT).0
80ms240kbKilled by signal 11(SIGSEGV).0
90ms232kbKilled by signal 11(SIGSEGV).0
100ms236kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?