Pagini recente » Borderou de evaluare (job #1050383) | Borderou de evaluare (job #2349269) | Borderou de evaluare (job #730585) | Borderou de evaluare (job #510361) | Borderou de evaluare (job #1366036)
Borderou de evaluare (job #1366036)
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 |
1 | 0ms | 292kb | Incorect | 0 |
2 | 0ms | 292kb | Incorect | 0 |
3 | 0ms | 300kb | OK | 10 |
4 | 0ms | 292kb | OK | 10 |
5 | 0ms | 296kb | OK | 10 |
6 | 0ms | 288kb | OK | 10 |
7 | 0ms | 296kb | OK | 10 |
8 | 0ms | 300kb | OK | 10 |
9 | 0ms | 288kb | OK | 10 |
10 | 0ms | 292kb | OK | 10 |
Punctaj total | 80 |