Pagini recente » Borderou de evaluare (job #2046557) | Borderou de evaluare (job #1046141) | Borderou de evaluare (job #2940931) | Borderou de evaluare (job #1022330) | Borderou de evaluare (job #1365696)
Borderou de evaluare (job #1365696)
Raport evaluator
Compilare:
user.cpp: In function ‘int eval(char, int*)’:
user.cpp:15:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (funct[funname][j] == '-' || funct[funname][j] == '+') {
^
user.cpp:15:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (funct[funname][j] == '-' || funct[funname][j] == '+') {
^
user.cpp:16:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (funct[funname][j] == '-') {
^
user.cpp: In function ‘int term(char, int*)’:
user.cpp:31:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (funct[funname][j] == '*') {
^
user.cpp: In function ‘int fact(char, int*)’:
user.cpp:41:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (funct[funname][j] == '(') {
^
user.cpp:47:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (funct[funname][j] >= 'a' && funct[funname][j] <= 'z') {
^
user.cpp:47:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (funct[funname][j] >= 'a' && funct[funname][j] <= 'z') {
^
user.cpp:48:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
res = param[funct[funname][j] - 'a' + 1];
^
user.cpp:52:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (funct[funname][j] >= '0' && funct[funname][j] <= '9') {
^
user.cpp:52:52: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while (funct[funname][j] >= '0' && funct[funname][j] <= '9') {
^
user.cpp:53:35: warning: array subscript has type ‘char’ [-Wchar-subscripts]
res = res * 10 + funct[funname][j] - '0';
^
user.cpp: In function ‘int* evalfun()’:
user.cpp:66:11: warning: address of local variable ‘param’ returned [-Wreturn-local-addr]
int i=0, param[251];
^
user.cpp: In function ‘int solvefun(int*)’:
user.cpp:87:7: warning: unused variable ‘ok’ [-Wunused-variable]
int ok = 1;
^
user.cpp:91:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
res = var[apel[ind]];
^
user.cpp: In function ‘int main()’:
user.cpp:106:12: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
f >> apel + 1;
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 388kb | OK | 10 |
2 | 0ms | 400kb | OK | 10 |
3 | 0ms | 436kb | OK | 10 |
4 | 0ms | 400kb | OK | 10 |
5 | 0ms | 424kb | OK | 10 |
6 | 0ms | 388kb | OK | 10 |
7 | 0ms | 440kb | OK | 10 |
8 | 0ms | 448kb | OK | 10 |
9 | 0ms | 400kb | OK | 10 |
10 | 0ms | 384kb | OK | 10 |
Punctaj total | 100 |