Borderou de evaluare (job #1478057)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:31:35: warning: array subscript has type ‘char’ [-Wchar-subscripts]
dp[i] = dp[best[v[i].first]] + 1;
^
user.cpp:32:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
bk[i] = best[v[i].first];
^
user.cpp:33:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
best[v[i].second] = MAXDP(best[v[i].second], i);
^
user.cpp:33:51: warning: array subscript has type ‘char’ [-Wchar-subscripts]
best[v[i].second] = MAXDP(best[v[i].second], i);
^
user.cpp:7:27: note: in definition of macro ‘MAXDP’
#define MAXDP(a, b) ((dp[(a)] > dp[(b)])?(a):(b))
^
user.cpp:33:51: warning: array subscript has type ‘char’ [-Wchar-subscripts]
best[v[i].second] = MAXDP(best[v[i].second], i);
^
user.cpp:7:43: note: in definition of macro ‘MAXDP’
#define MAXDP(a, b) ((dp[(a)] > dp[(b)])?(a):(b))
^
user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("text3.in", "r", stdin);
^
user.cpp:18:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("text3.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 364kb | Corect | 10 |
2 | 0ms | 348kb | Corect | 10 |
3 | 0ms | 304kb | Corect | 10 |
4 | 0ms | 300kb | Corect | 10 |
5 | 0ms | 628kb | Corect | 10 |
6 | 4ms | 792kb | Corect | 10 |
7 | 0ms | 308kb | Corect | 10 |
8 | 4ms | 996kb | Corect | 10 |
9 | 0ms | 336kb | Corect | 10 |
10 | 0ms | 348kb | Corect | 10 |
Punctaj total | 100 |