Pagini recente » Cod sursa (job #41589) | Cod sursa (job #2015307) | Borderou de evaluare (job #2639977) | Borderou de evaluare (job #3120446) | Borderou de evaluare (job #1875094)
Borderou de evaluare (job #1875094)
Raport evaluator
Compilare:
user.cpp: In function ‘void lee()’:
user.cpp:24:39: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (sol[X.f+misc][X.s]==0 && X.f + misc <= n||suma[X.f][X.s] + cost[X.f+misc][X.s]>suma[X.f+misc][X.s])
^
user.cpp:42:38: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (sol[X.f][X.s+misc]==0&&X.s+misc <= n||suma[X.f][X.s] + cost[X.f][X.s+misc]>suma[X.f][X.s+misc])
^
user.cpp: In function ‘int main()’:
user.cpp:63:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sudest.in","r",stdin);
^
user.cpp:64:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sudest.out","w",stdout);
^
user.cpp:65:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:68:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &cost[i][j]);
^
user.cpp:69:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
user.cpp:71:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &miscari[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 472kb | OKAY! | 10 |
| 2 | 0ms | 476kb | OKAY! | 10 |
| 3 | 0ms | 488kb | OKAY! | 10 |
| 4 | 0ms | 492kb | OKAY! | 10 |
| 5 | 0ms | 512kb | OKAY! | 10 |
| 6 | 0ms | 528kb | OKAY! | 10 |
| 7 | 0ms | 548kb | OKAY! | 10 |
| 8 | 0ms | 560kb | OKAY! | 10 |
| 9 | 0ms | 488kb | Raspuns gresit! | 0 |
| 10 | 0ms | 456kb | OKAY! | 10 |
| Punctaj total | 90 |