Pagini recente » Borderou de evaluare (job #775478) | Borderou de evaluare (job #2404494) | Borderou de evaluare (job #3201267) | Borderou de evaluare (job #2394326) | Borderou de evaluare (job #1916643)
Borderou de evaluare (job #1916643)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:38:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=]
scanf("%d",&baza[i]), distanta[i]=1000000000;
^
user.cpp:56:21: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (a.K2<=k && a.dist2<distanta[a.nod2] || (a.K2<W[a.nod2] && a.dist2==distanta[a.nod2]))
^
user.cpp:33:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lanterna.in","r",stdin);
^
user.cpp:34:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lanterna.out","w",stdout);
^
user.cpp:36:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&n,&k);
^
user.cpp:38:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&baza[i]), distanta[i]=1000000000;
^
user.cpp:39:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&m);
^
user.cpp:43:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d\n",&a,&b,&c,&d);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 384kb | OK | 10 |
2 | 0ms | 320kb | OK | 10 |
3 | 0ms | 324kb | OK | 10 |
4 | 0ms | 300kb | Incorect | 0 |
5 | 0ms | 316kb | Incorect | 0 |
6 | 0ms | 296kb | Incorect | 0 |
7 | 0ms | 288kb | Incorect | 0 |
8 | 0ms | 320kb | OK | 10 |
9 | 0ms | 284kb | Incorect | 0 |
10 | 0ms | 300kb | OK | 10 |
Punctaj total | 50 |