Borderou de evaluare (job #2716691)
Utilizator | Data | 5 martie 2021 15:33:30 | |
---|---|---|---|
Problema | Camp | 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:33:82: error: 'floor' was not declared in this scope
yi = a.y + (sens ? floor(1.0 * (xi - a.x) * (b.y - a.y) / (b.x - a.x)) : ceil(1.0 * (xi - a.x) * (b.y - a.y) / (b.x - a.x)));
^
main.cpp:33:135: error: 'ceil' was not declared in this scope
yi = a.y + (sens ? floor(1.0 * (xi - a.x) * (b.y - a.y) / (b.x - a.x)) : ceil(1.0 * (xi - a.x) * (b.y - a.y) / (b.x - a.x)));
^
main.cpp:18:26: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &n) ;
^
main.cpp:20:47: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d %d", &v[i].x, &v[i].y) ;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !