Borderou de evaluare (job #1309901)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 6 ianuarie 2015 10:12:58
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: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
1Depăşit376kbTime limit exceeded.0
2Depăşit372kbTime limit exceeded.0
3Depăşit372kbTime limit exceeded.0
4Depăşit372kbTime limit exceeded.0
5Depăşit376kbTime limit exceeded.0
6Depăşit372kbTime limit exceeded.0
7Depăşit388kbTime limit exceeded.0
8Depăşit388kbTime limit exceeded.0
9Depăşit472kbTime limit exceeded.0
10Depăşit468kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?