Borderou de evaluare (job #3191384)
Utilizator | Data | 9 ianuarie 2024 16:45:57 | |
---|---|---|---|
Problema | Desen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:64:20: error: 'sqrt' was not declared in this scope
64 | dist = sqrt(abs(pct[i].x - pct[nr].x) * abs(pct[i].x - pct[nr].x) + abs(pct[i].y - pct[nr].y) * abs(pct[i].y - pct[nr].y));
| ^~~~
main.cpp:70:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<vec>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for (i = 0; i < muchii.size(); i++)
| ~~^~~~~~~~~~~~~~~
main.cpp:49:12: warning: unused variable 'm' [-Wunused-variable]
49 | int n, m, i, x, y,nr;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !