Borderou de evaluare (job #1365696)

Utilizator andrei_diaconuAndrei Diaconu andrei_diaconu Data 28 februarie 2015 14:25:37
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

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
10ms388kbOK10
20ms400kbOK10
30ms436kbOK10
40ms400kbOK10
50ms424kbOK10
60ms388kbOK10
70ms440kbOK10
80ms448kbOK10
90ms400kbOK10
100ms384kbOK10
Punctaj total100

Ceva nu functioneaza?