Pagini recente » Borderou de evaluare (job #2699518) | Borderou de evaluare (job #2812065) | Borderou de evaluare (job #2047282) | Borderou de evaluare (job #1646523) | Borderou de evaluare (job #1875106)
Borderou de evaluare (job #1875106)
Raport evaluator
Compilare:
user.cpp: In function ‘void lee()’:
user.cpp:26: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:44: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:65: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:66: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:67:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:70:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd", &cost[i][j]);
^
user.cpp:71:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
user.cpp:73:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd", &miscari[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 480kb | OKAY! | 10 |
2 | 0ms | 488kb | OKAY! | 10 |
3 | 0ms | 496kb | OKAY! | 10 |
4 | 0ms | 504kb | OKAY! | 10 |
5 | 0ms | 528kb | OKAY! | 10 |
6 | 0ms | 544kb | OKAY! | 10 |
7 | 0ms | 556kb | OKAY! | 10 |
8 | 0ms | 568kb | OKAY! | 10 |
9 | 0ms | 584kb | OKAY! | 10 |
10 | 0ms | 468kb | OKAY! | 10 |
Punctaj total | 100 |