Borderou de evaluare (job #1910161)

Utilizator andysoloAndrei Solo andysolo Data 7 martie 2017 15:49:43
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:74:10: warning: variable ‘t’ set but not used [-Wunused-but-set-variable] char t[255]; ^ user.cpp: In function ‘int main()’: 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/ccAu1OuX.o: In function `main': user.cpp:(.text.startup+0x53): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit236kbTime limit exceeded.0
2Depăşit236kbTime limit exceeded.0
3Depăşit232kbTime limit exceeded.0
4Depăşit228kbTime limit exceeded.0
5Depăşit232kbTime limit exceeded.0
6Depăşit228kbTime limit exceeded.0
7Depăşit232kbTime limit exceeded.0
8Depăşit232kbTime limit exceeded.0
9Depăşit232kbTime limit exceeded.0
10Depăşit228kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?