Borderou de evaluare (job #1366031)

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

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:72:44: warning: NULL used in arithmetic [-Wpointer-arith] while(init[pos] != ')' && init[pos] != NULL) { ^ user.cpp:80:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] param.push_back(var[init[pos]]); ^ user.cpp: In function ‘int main()’: user.cpp:105:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] var[ch] = ln[1] - '0'; ^ user.cpp:96: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:97: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:101:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", init); ^ user.cpp:103:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", ln); ^ user.cpp:109: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
10ms284kbIncorect0
20ms284kbIncorect0
30ms292kbOK10
40ms296kbIncorect0
50ms300kbOK10
60ms288kbIncorect0
70ms296kbOK10
80ms296kbOK10
90ms288kbIncorect0
100ms292kbIncorect0
Punctaj total40

Ceva nu functioneaza?