Borderou de evaluare (job #1309901)
Raport evaluator
Compilare:
user.cpp: In function ‘int expresie()’:
user.cpp:18:14: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(S[i] == '+' || S[i] == '-'){
^
user.cpp:18:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(S[i] == '+' || S[i] == '-'){
^
user.cpp:20:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(S[i] == '+'){
^
user.cpp: In function ‘int termen()’:
user.cpp:38:14: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(S[i] == '*' || S[i] == '/'){
^
user.cpp:38:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(S[i] == '*' || S[i] == '/'){
^
user.cpp:40:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(S[i] == '*'){
^
user.cpp: In function ‘int factor()’:
user.cpp:57:11: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(S[i] == '('){
^
user.cpp:66:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(S[i] >= '0' && S[i] <= '9'){
^
user.cpp:66:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(S[i] >= '0' && S[i] <= '9'){
^
user.cpp:67:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sum = sum * 10 + (S[i] - '0');
^
user.cpp: In function ‘int main()’:
user.cpp:76:14: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
fin >> S + 1;i = 1;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | Depăşit | 376kb | Time limit exceeded. | 0 |
2 | Depăşit | 372kb | Time limit exceeded. | 0 |
3 | Depăşit | 372kb | Time limit exceeded. | 0 |
4 | Depăşit | 372kb | Time limit exceeded. | 0 |
5 | Depăşit | 376kb | Time limit exceeded. | 0 |
6 | Depăşit | 372kb | Time limit exceeded. | 0 |
7 | Depăşit | 388kb | Time limit exceeded. | 0 |
8 | Depăşit | 388kb | Time limit exceeded. | 0 |
9 | Depăşit | 472kb | Time limit exceeded. | 0 |
10 | Depăşit | 468kb | Time limit exceeded. | 0 |
Punctaj total | 0 |