Borderou de evaluare (job #2466978)
Utilizator | Data | 3 octombrie 2019 14:26:28 | |
---|---|---|---|
Problema | Elicoptere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'double distorizontal(Points, Points, Points)':
main.cpp:40:58: error: 'sqrt' was not declared in this scope
dist=sqrt((double)(A.x-x)*(A.x-x)+(A.y-y)*(A.y-y));
^
main.cpp: In function 'double distvertical(Points, Points, Points)':
main.cpp:56:58: error: 'sqrt' was not declared in this scope
dist=sqrt((double)(A.x-x)*(A.x-x)+(A.y-y)*(A.y-y));
^
main.cpp: In function 'void dfs(int)':
main.cpp:133:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<g[nod].size(); i++)
~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:142:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
{ freopen("elicoptere.in", "r", stdin);
^
main.cpp:143:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("elicoptere.out", "w", stdout);
^
main.cpp:146:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &cer, &n, &k);
^
main.cpp:148:102: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%lf%lf%lf%lf", &v[i].A.x, &v[i].A.y, &v[i].B.x, &v[i].B.y, &v[i].C.x, &v[i].C.y);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !