Borderou de evaluare (job #980938)

Utilizator smaraldaSmaranda Dinu smaralda Data 5 august 2013 22:26:46
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘bool solve()’: user.cpp:49:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<exp.size();i++) { ^ user.cpp:51:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] exp[i]=(var[exp[i-1]] || var[exp[i-2]]) + '0'; ^ user.cpp:51:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] exp[i]=(var[exp[i-1]] || var[exp[i-2]]) + '0'; ^ user.cpp:56:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] exp[i]=(var[exp[i-1]] && var[exp[i-2]]) + '0'; ^ user.cpp:56:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] exp[i]=(var[exp[i-1]] && var[exp[i-2]]) + '0'; ^ user.cpp:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] exp[i-1]=!var[exp[i-1]]+'0'; ^ user.cpp: In function ‘int main()’: user.cpp:119:23: warning: format ‘%c’ expects argument of type ‘char*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%c",&ch); ^ user.cpp:72:16: warning: unused variable ‘cnt’ [-Wunused-variable] int n,ch,i,cnt=-1; ^ user.cpp: In function ‘int priority(char)’: user.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /tmp/cc82IRZx.o: In function `main': user.cpp:(.text.startup+0x4e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms240kbOK!10
20ms240kbOK!10
30ms240kbOK!10
40ms244kbOK!10
54ms244kbOK!10
64ms240kbWrong answer!0
74ms240kbOK!10
84ms240kbOK!10
94ms240kbWrong answer!0
104ms240kbOK!10
Punctaj total80

Ceva nu functioneaza?