Borderou de evaluare (job #1366036)

Utilizator smaraldaSmaranda Dinu smaralda Data 28 februarie 2015 18:14:08
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In member function ‘int FUNCTION::factor()’: user.cpp:50:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] res = val[ex[p]]; ^ user.cpp: In member function ‘int FUNCTION::eval(std::vector<int>)’: user.cpp:59:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < param.size(); ++ i) ^ user.cpp: In function ‘int apel(int&)’: user.cpp:73:44: warning: NULL used in arithmetic [-Wpointer-arith] while(init[pos] != ')' && init[pos] != NULL) { ^ user.cpp:81:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] param.push_back(var[init[pos]]); ^ user.cpp: In function ‘int main()’: user.cpp:115:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] var[ch] = getInt(1); ^ user.cpp:106:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("apel.in", "r", stdin); ^ user.cpp:107:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("apel.out", "w", stdout); ^ user.cpp:111:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", init); ^ user.cpp:113:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", ln); ^ user.cpp:119:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", fct + 1); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbIncorect0
20ms292kbIncorect0
30ms300kbOK10
40ms292kbOK10
50ms296kbOK10
60ms288kbOK10
70ms296kbOK10
80ms300kbOK10
90ms288kbOK10
100ms292kbOK10
Punctaj total80

Ceva nu functioneaza?