Pagini recente » Cod sursa (job #3307445) | Cod sursa (job #901240) | Cod sursa (job #3316398) | Cod sursa (job #252603) | Borderou de evaluare (job #1164835)
Borderou de evaluare (job #1164835)
Raport evaluator
Compilare:
user.cpp: In function ‘void get(int, int&, int&, int&)’:
user.cpp:33:19: warning: NULL used in arithmetic [-Wpointer-arith]
while(s[i] != NULL && isdigit(s[i])) {
^
user.cpp:40:19: warning: NULL used in arithmetic [-Wpointer-arith]
while(s[i] != NULL && isdigit(s[i])) {
^
user.cpp:47:16: warning: NULL used in arithmetic [-Wpointer-arith]
while(s[i] != NULL && isdigit(s[i])) {
^
user.cpp:29:9: warning: unused variable ‘len’ [-Wunused-variable]
int len, i;
^
user.cpp: In function ‘int main()’:
user.cpp:87:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int (*)[1000005]’ [-Wformat=]
scanf("%d\n",&w);
^
user.cpp:91:17: warning: NULL used in arithmetic [-Wpointer-arith]
while(ln[i] != NULL) {
^
user.cpp:79:35: warning: unused variable ‘len’ [-Wunused-variable]
int n, m, i, x, y, num, k, t, len, W, node;
^
user.cpp:79:43: warning: unused variable ‘node’ [-Wunused-variable]
int n, m, i, x, y, num, k, t, len, W, node;
^
user.cpp:111:29: warning: ‘W’ may be used uninitialized in this function [-Wmaybe-uninitialized]
while(!heap.empty() && t <= W && w[t] < heap.top().cost)
^
/tmp/ccsGRq9q.o: In function `main':
user.cpp:(.text.startup+0x80): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 364kb | OK | 4 |
| 2 | 0ms | 376kb | Incorect | 0 |
| 3 | 4ms | 716kb | Incorect | 0 |
| 4 | 4ms | 432kb | Incorect | 0 |
| 5 | 4ms | 684kb | Incorect | 0 |
| 6 | 8ms | 1972kb | Incorect | 0 |
| 7 | 8ms | 1864kb | Incorect | 0 |
| 8 | 8ms | 1868kb | Incorect | 0 |
| 9 | 12ms | 3328kb | Incorect | 0 |
| 10 | 20ms | 6260kb | Incorect | 0 |
| 11 | 0ms | 364kb | Incorect | 0 |
| 12 | 4ms | 404kb | Incorect | 0 |
| 13 | 8ms | 708kb | Incorect | 0 |
| 14 | 60ms | 9040kb | Incorect | 0 |
| 15 | 56ms | 8472kb | Incorect | 0 |
| 16 | 56ms | 8708kb | Incorect | 0 |
| 17 | 36ms | 2956kb | Incorect | 0 |
| 18 | 24ms | 3932kb | Incorect | 0 |
| 19 | 28ms | 4892kb | Incorect | 0 |
| 20 | 28ms | 4780kb | Incorect | 0 |
| 21 | 40ms | 5880kb | Incorect | 0 |
| 22 | 32ms | 6168kb | Incorect | 0 |
| 23 | 48ms | 7668kb | Incorect | 0 |
| 24 | 68ms | 8924kb | Incorect | 0 |
| 25 | 68ms | 8932kb | Incorect | 0 |
| Punctaj total | 4 |