Borderou de evaluare (job #1553165)

Utilizator dobrebogdanDobre Bogdan Mihai dobrebogdan Data 19 decembrie 2015 12:39:17
Problema Strigat Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘void insert(int, int)’: user.cpp:69:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(tm->po[in[j]]==NULL) ^ user.cpp:71:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[in[j]]=new nod(); ^ user.cpp:72:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[in[j]]->tata=tm; ^ user.cpp:73:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[in[j]]->ch=in[j]; ^ user.cpp:74:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm->po[in[j]]->lv=tm->lv+1; ^ user.cpp:76:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] tm=tm->po[in[j]]; ^ user.cpp: In function ‘int main()’: user.cpp:85:17: warning: unused variable ‘l’ [-Wunused-variable] int n,m,i,j,l,x,y,z,ans=0; ^ user.cpp:85:23: warning: unused variable ‘z’ [-Wunused-variable] int n,m,i,j,l,x,y,z,ans=0; ^ user.cpp:83: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:84: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:88: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:105:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(in+1); ^ user.cpp:107:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&y); ^ user.cpp:153:24: warning: ‘rec’ may be used uninitialized in this function [-Wmaybe-uninitialized] rec=rec->ant[i]; ^ /tmp/ccGgwE4L.o: In function `main': user.cpp:(.text.startup+0xf3): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbKilled by signal 11(SIGSEGV).0
20ms296kbOK!10
30ms284kbOK!10
40ms436kbOK!10
50ms460kbOK!10
612ms1188kbOK!10
796ms3364kbOK!10
8188ms4904kbOK!10
984ms2256kbOK!10
100ms356kbOK!10
Punctaj total90

Ceva nu functioneaza?