Borderou de evaluare (job #1552985)

Utilizator dobrebogdanDobre Bogdan Mihai dobrebogdan Data 18 decembrie 2015 23:51:21
Problema Strigat Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 12

Raport evaluator

Compilare: user.cpp: In function ‘void insert(nod*)’: user.cpp:41:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(tm->po[sin[i][j]]==NULL) ^ user.cpp:43:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[sin[i][j]]=new nod(); ^ user.cpp:44:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[sin[i][j]]->tata=tm; ^ user.cpp:45:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[sin[i][j]]->ch=sin[i][j]; ^ user.cpp:46:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[sin[i][j]]->lv=tm->lv+1; ^ user.cpp:48:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm=tm->po[sin[i][j]]; ^ user.cpp: In function ‘int main()’: user.cpp:76:13: warning: unused variable ‘l’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:76:15: warning: unused variable ‘x’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:76:17: warning: unused variable ‘y’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:76:19: warning: unused variable ‘z’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:77:11: warning: unused variable ‘tm’ [-Wunused-variable] nod * tm; ^ user.cpp:74:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("strigat.in","r",stdin); ^ user.cpp:75:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("strigat.out","w",stdout); ^ user.cpp:79:26: 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:82:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sin[i]+1); ^ user.cpp:86:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&fri[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms288kbLungimea strigatului gresita!4
20ms296kbLungimea strigatului gresita!4
340msDepăşitMemory limit exceeded.0
436msDepăşitMemory limit exceeded.0
536msDepăşitMemory limit exceeded.0
632msDepăşitMemory limit exceeded.0
732msDepăşitMemory limit exceeded.0
832msDepăşitMemory limit exceeded.0
932msDepăşitMemory limit exceeded.0
100ms304kbLungimea strigatului gresita!4
Punctaj total12

Ceva nu functioneaza?