Borderou de evaluare (job #1552961)

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

Raport evaluator

Compilare: user.cpp: In function ‘void insert(nod*)’: user.cpp:43:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(tm->po[in[j]]==NULL) ^ user.cpp:44:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[in[j]]=new nod(); ^ user.cpp:45:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[in[j]]->tata=tm; ^ user.cpp:46:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[in[j]]->ch=in[j]; ^ user.cpp:47:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[in[j]]->lv=tm->lv+1; ^ user.cpp:48:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm=tm->po[in[j]]; ^ user.cpp: In function ‘int main()’: user.cpp:79:11: warning: unused variable ‘j’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:79:13: warning: unused variable ‘l’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:79:15: warning: unused variable ‘x’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:79:17: warning: unused variable ‘y’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:79:19: warning: unused variable ‘z’ [-Wunused-variable] int i,j,l,x,y,z; ^ user.cpp:80:11: warning: unused variable ‘tm’ [-Wunused-variable] nod * tm; ^ user.cpp:77: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:78: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:82: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:85:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sin[i]+1); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbGrad de spaima gresit!0
20ms288kbGrad de spaima gresit!0
30ms284kbGrad de spaima gresit!0
40ms288kbGrad de spaima gresit!0
50ms284kbGrad de spaima gresit!0
60ms292kbGrad de spaima gresit!0
70ms296kbGrad de spaima gresit!0
80ms292kbGrad de spaima gresit!0
90ms292kbGrad de spaima gresit!0
100ms292kbGrad de spaima gresit!0
Punctaj total0

Ceva nu functioneaza?