Pagini recente » Borderou de evaluare (job #243729) | Borderou de evaluare (job #2122162) | Borderou de evaluare (job #2927236) | Borderou de evaluare (job #1819969) | Borderou de evaluare (job #1159915)
Borderou de evaluare (job #1159915)
Raport evaluator
Compilare:
user.cpp: In function ‘int eval()’:
user.cpp:17:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (s[i]=='+' || s[i]=='-') {
^
user.cpp:17:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (s[i]=='+' || s[i]=='-') {
^
user.cpp:18:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (s[i]=='+') { i++; v+=termen();}
^
user.cpp: In function ‘int termen()’:
user.cpp:29:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (s[i] =='*' || s[i]=='/') {
^
user.cpp:29:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (s[i] =='*' || s[i]=='/') {
^
user.cpp:30:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (s[i]=='*') {i++; v*=factor();}
^
user.cpp: In function ‘int factor()’:
user.cpp:41:12: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (s[i]=='(') {i++; v=eval(); i++;}
^
user.cpp:43:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (s[i]>='0' && s[i]<='9') {
^
user.cpp:43:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (s[i]>='0' && s[i]<='9') {
^
user.cpp:44:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v=v*10+(int)(s[i]-'0');
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 384kb | OK | 10 |
2 | 0ms | 388kb | OK | 10 |
3 | 0ms | 384kb | OK | 10 |
4 | 0ms | 380kb | Incorect | 0 |
5 | 0ms | 380kb | Incorect | 0 |
6 | 0ms | 388kb | Incorect | 0 |
7 | 0ms | 392kb | Incorect | 0 |
8 | 0ms | 392kb | Incorect | 0 |
9 | 4ms | 480kb | OK | 10 |
10 | 4ms | 480kb | Incorect | 0 |
Punctaj total | 40 |