Borderou de evaluare (job #1901921)
Utilizator | Data | 4 martie 2017 11:59:36 | |
---|---|---|---|
Problema | Triang | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cmp(pct, pct)’:
user.cpp:15:31: error: ‘fabs’ was not declared in this scope
if (a.x<b.x||(fabs(a.x-b.x)<0.001&&a.y<b.y)) return 1;
^
user.cpp: In function ‘int main()’:
user.cpp:25:40: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 3 has type ‘double’ [-Wformat=]
fscanf(f,"%lf%lf",v[i].x,v[i].y);
^
user.cpp:25:40: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 4 has type ‘double’ [-Wformat=]
user.cpp:32:13: error: ‘c’ was not declared in this scope
c=v[j].x*v[j].x+v[j].y*v[j].y-d;
^
user.cpp:33:13: error: ‘b’ was not declared in this scope
b=-2*v[j].x*e-2*
^
user.cpp:34:9: error: expected primary-expression before ‘}’ token
}
^
user.cpp:34:9: error: expected ‘;’ before ‘}’ token
user.cpp: In function ‘int cmp(pct, pct)’:
user.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:25:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%lf%lf",v[i].x,v[i].y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !