Borderou de evaluare (job #1651081)

Utilizator savigunFeleaga Dragos-George savigun Data 12 martie 2016 01:22:44
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int expresie()’: user.cpp:16:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] while (s[p] == '+' || s[p] == '-') ^ user.cpp:16:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] while (s[p] == '+' || s[p] == '-') ^ user.cpp:18:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (s[p] == '+') ^ user.cpp:23:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (s[p] == '-') ^ user.cpp: In function ‘int termen()’: user.cpp:37:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] while ( s[p]=='*'||s[p]=='/') ^ user.cpp:37:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] while ( s[p]=='*'||s[p]=='/') ^ user.cpp:39:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] if ( s[p] == '*' ) ^ user.cpp: In function ‘int factor()’: user.cpp:56:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(s[p] == '-') ^ user.cpp:61:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(s[p] == '(') ^ user.cpp:68:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(s[p] >= '0' && s[p] <= '9') ^ user.cpp:68:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(s[p] >= '0' && s[p] <= '9') ^ user.cpp:70:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] val = val*10 + (s[p]-'0'); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms412kbOK10
20ms408kbOK10
30ms412kbOK10
40ms408kbIncorect0
50ms408kbIncorect0
60ms412kbIncorect0
70ms420kbIncorect0
80ms420kbIncorect0
90ms508kbOK10
100ms508kbIncorect0
Punctaj total40

Ceva nu functioneaza?