Pagini recente » Borderou de evaluare (job #225985) | Borderou de evaluare (job #2461086) | Borderou de evaluare (job #1943060) | Borderou de evaluare (job #2838389) | Borderou de evaluare (job #2855654)
Borderou de evaluare (job #2855654)
Raport evaluator
Compilare:
main.cpp: In function 'int expresie()':
main.cpp:26:23: warning: array subscript has type 'char' [-Wchar-subscripts]
26 | while (i<lg && (s[i]=='+' || s[i]=='-'))
| ^
main.cpp:26:36: warning: array subscript has type 'char' [-Wchar-subscripts]
26 | while (i<lg && (s[i]=='+' || s[i]=='-'))
| ^
main.cpp:27:15: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | if (s[i]=='+') {i++; sum+=termen();}
| ^
main.cpp: In function 'int termen()':
main.cpp:35:23: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | while (i<lg && (s[i]=='*' || s[i]=='/'))
| ^
main.cpp:35:36: warning: array subscript has type 'char' [-Wchar-subscripts]
35 | while (i<lg && (s[i]=='*' || s[i]=='/'))
| ^
main.cpp:36:15: warning: array subscript has type 'char' [-Wchar-subscripts]
36 | if (s[i]=='*') {i++; prod*=factor();}
| ^
main.cpp: In function 'int factor()':
main.cpp:44:11: warning: array subscript has type 'char' [-Wchar-subscripts]
44 | if (s[i]=='-') i++,semn=-1;
| ^
main.cpp:45:11: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | if (s[i]=='(')
| ^
main.cpp:50:22: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | while (i<lg && s[i]>='0' && s[i]<='9')
| ^
main.cpp:50:35: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | while (i<lg && s[i]>='0' && s[i]<='9')
| ^
main.cpp:51:23: warning: array subscript has type 'char' [-Wchar-subscripts]
51 | val=val*10+s[i++]-'0';
| ~^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | OK | 10 |
2 | 2ms | 184kb | OK | 10 |
3 | 2ms | 184kb | OK | 10 |
4 | 2ms | 184kb | Incorect | 0 |
5 | 2ms | 184kb | Incorect | 0 |
6 | 2ms | 184kb | Incorect | 0 |
7 | 2ms | 184kb | Incorect | 0 |
8 | 2ms | 184kb | Incorect | 0 |
9 | 2ms | 184kb | OK | 10 |
10 | 2ms | 184kb | Incorect | 0 |
Punctaj total | 40 |