Pagini recente » Borderou de evaluare (job #999785) | Borderou de evaluare (job #1115176) | Borderou de evaluare (job #2709627) | Borderou de evaluare (job #2909219) | Borderou de evaluare (job #2221322)
Borderou de evaluare (job #2221322)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:39:39: warning: integer overflow in expression [-Woverflow]
int n, k, l, ind, len = (1 << 31) - 1, ind1, x, h;
~~~~~~~~~~^~~
user.cpp:71:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ind != q.size())
~~~~^~~~~~~~~~~
user.cpp:88:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < leg[q[ind].ind].size(); i++) q.push_back({leg[q[ind].ind][i], q[ind].cab + 1, ind, q[ind].len + sqrt((v[q[ind].ind].getx() - v[leg[q[ind].ind][i]].getx()) * (v[q[ind].ind].getx() - v[leg[q[ind].ind][i]].getx()) + (v[q[ind].ind].geth() - v[leg[q[ind].ind][i]].geth()) * (v[q[ind].ind].geth() - v[leg[q[ind].ind][i]].geth()))});
~~^~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:36:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("munte2.in", "r", stdin);
^
user.cpp:37:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("munte2.out", "w", stdout);
^
user.cpp:42:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &k, &l);
^
user.cpp:45:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &h);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 816kb | Lungime Incorecta! | 0 |
2 | 0ms | 796kb | Lungime Incorecta! | 0 |
3 | 12ms | 3336kb | Lungime Incorecta! | 0 |
4 | 72ms | Depăşit | Memory limit exceeded. | 0 |
5 | 72ms | Depăşit | Memory limit exceeded. | 0 |
6 | 72ms | Depăşit | Memory limit exceeded. | 0 |
7 | 72ms | Depăşit | Memory limit exceeded. | 0 |
8 | 72ms | Depăşit | Memory limit exceeded. | 0 |
9 | 72ms | Depăşit | Memory limit exceeded. | 0 |
10 | 72ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 0 |