Borderou de evaluare (job #1309885)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 6 ianuarie 2015 10:04:49
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int expresie()’: user.cpp:13:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(S[i] == '+' || S[i] == '-'){ ^ user.cpp:13:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(S[i] == '+' || S[i] == '-'){ ^ user.cpp:14:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(S[i] == '+'){ ^ user.cpp: In function ‘int termen()’: user.cpp:29:14: 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:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(S[i] == '*'){ ^ user.cpp: In function ‘int factor()’: user.cpp:44:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(S[i] == '('){ ^ user.cpp:50:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(S[i] >= '0' && S[i] <= '9'){ ^ user.cpp:50:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(S[i] >= '0' && S[i] <= '9'){ ^ user.cpp:51:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] sum = sum * 10 + (S[i] - '0'); ^ user.cpp: In function ‘int main()’: user.cpp:59:14: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] fin >> S + 1;i = 1; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit376kbTime limit exceeded.0
2Depăşit372kbTime limit exceeded.0
3Depăşit376kbTime limit exceeded.0
4Depăşit376kbTime limit exceeded.0
5Depăşit376kbTime limit exceeded.0
6Depăşit376kbTime limit exceeded.0
7Depăşit388kbTime limit exceeded.0
8Depăşit392kbTime limit exceeded.0
9Depăşit476kbTime limit exceeded.0
10Depăşit472kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?