Pagini recente » Borderou de evaluare (job #1208319) | Borderou de evaluare (job #202901) | Borderou de evaluare (job #2989711) | Borderou de evaluare (job #771208) | Borderou de evaluare (job #2022221)
Borderou de evaluare (job #2022221)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:33:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(fi,"%d %d " ,&v[i].first,&v[i].second);
^
user.cpp:33:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:46:30: warning: narrowing conversion of ‘(n - ((int)v[1].std::pair<short int, short int>::second))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
q[0] = {1, v[1].first, n - v[1].second};
^
user.cpp:55:68: warning: narrowing conversion of ‘(((int)q[b].Data::cnt) - ((int)v[((int)it)].std::pair<short int, short int>::second))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
q[e] = {it, q[b].cost + v[it].first, q[b].cnt - v[it].second};
^
user.cpp:31:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d %d " ,&n,&p,&k);
^
user.cpp:33:54: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d " ,&v[i].first,&v[i].second);
^
user.cpp:36:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d " ,&x,&y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 444kb | Incorect | 0 |
2 | 0ms | 444kb | OK | 10 |
3 | 8ms | 556kb | Incorect | 0 |
4 | 0ms | 560kb | OK | 10 |
5 | 8ms | 484kb | OK | 10 |
6 | 0ms | 452kb | Incorect | 0 |
7 | 0ms | 468kb | OK | 10 |
8 | 0ms | 456kb | Incorect | 0 |
9 | 0ms | 560kb | OK | 10 |
10 | 12ms | 504kb | Incorect | 0 |
Punctaj total | 50 |