Pagini recente » Borderou de evaluare (job #540432) | Borderou de evaluare (job #3202876) | Borderou de evaluare (job #361702) | Borderou de evaluare (job #16607) | Borderou de evaluare (job #1208552)
Borderou de evaluare (job #1208552)
Raport evaluator
Compilare:
user.cpp: In function ‘bool PassPreliminaryTest(std::vector<unsigned int>, unsigned int)’:
user.cpp:21:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < energy.size(); i++){
^
user.cpp: In function ‘void Solve(std::vector<unsigned int>, std::vector<unsigned int>, std::vector<unsigned int>)’:
user.cpp:32:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < G; i++) {
^
user.cpp:33:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 2 * W; j >= Eg[i]; j--)
^
user.cpp:39:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j >= W)
^
user.cpp:40:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((flag == -1) || (Tcost[flag] > Tcost[j]))
^
user.cpp:45:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (flag != -1)
^
user.cpp: In function ‘int main()’:
user.cpp:60:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < G; i++)
^
user.cpp:51:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("energii.in", "r", stdin);
^
user.cpp:52:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("energii.out", "w", stdout);
^
user.cpp:54:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &G, &W);
^
user.cpp:61:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &Eg[i], &Cg[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 488kb | Ok! | 5 |
| 2 | 4ms | 468kb | Ok! | 5 |
| 3 | 0ms | 504kb | Ok! | 5 |
| 4 | 0ms | 468kb | Ok! | 5 |
| 5 | 0ms | 472kb | Ok! | 5 |
| 6 | 4ms | 484kb | Ok! | 5 |
| 7 | 0ms | 472kb | Ok! | 5 |
| 8 | 4ms | 488kb | Ok! | 5 |
| 9 | 16ms | 528kb | Ok! | 5 |
| 10 | 20ms | 468kb | Killed by signal 11(SIGSEGV). | 0 |
| 11 | 28ms | 468kb | Killed by signal 11(SIGSEGV). | 0 |
| 12 | 24ms | 468kb | Killed by signal 11(SIGSEGV). | 0 |
| 13 | 44ms | 484kb | Killed by signal 11(SIGSEGV). | 0 |
| 14 | 28ms | 480kb | Killed by signal 11(SIGSEGV). | 0 |
| 15 | 36ms | 476kb | Killed by signal 11(SIGSEGV). | 0 |
| 16 | 48ms | 524kb | Ok! | 5 |
| 17 | 40ms | 484kb | Killed by signal 11(SIGSEGV). | 0 |
| 18 | 24ms | 480kb | Killed by signal 11(SIGSEGV). | 0 |
| 19 | 32ms | 476kb | Killed by signal 11(SIGSEGV). | 0 |
| 20 | 4ms | 476kb | Killed by signal 11(SIGSEGV). | 0 |
| Punctaj total | 50 |