Pagini recente » Borderou de evaluare (job #2099766) | Borderou de evaluare (job #978703) | Borderou de evaluare (job #1318662) | Borderou de evaluare (job #2084216) | Borderou de evaluare (job #1366031)
Borderou de evaluare (job #1366031)
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 |
1 | 0ms | 284kb | Incorect | 0 |
2 | 0ms | 284kb | Incorect | 0 |
3 | 0ms | 292kb | OK | 10 |
4 | 0ms | 296kb | Incorect | 0 |
5 | 0ms | 300kb | OK | 10 |
6 | 0ms | 288kb | Incorect | 0 |
7 | 0ms | 296kb | OK | 10 |
8 | 0ms | 296kb | OK | 10 |
9 | 0ms | 288kb | Incorect | 0 |
10 | 0ms | 292kb | Incorect | 0 |
Punctaj total | 40 |