Borderou de evaluare (job #1220357)

Utilizator vlad_DVlad Dumitriu vlad_D Data 17 august 2014 02:58:25
Problema Poligon Status done
Runda Lista lui wefgef Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int query(int, int)’: user.cpp:52:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < fp->v.size(); ++i) { ^ user.cpp:53:30: error: ‘mid’ was not declared in this scope double ys = double(fp->v[mid].second.C - fp->v[mid].second.A * x) / fp->v[mid].second.B; ^ user.cpp:51:7: warning: unused variable ‘a’ [-Wunused-variable] int a = 0, b = fp->v.size() - 1; ^ user.cpp:51:14: warning: unused variable ‘b’ [-Wunused-variable] int a = 0, b = fp->v.size() - 1; ^ user.cpp: In function ‘int main()’: user.cpp:95:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i + 1 < unic_x.size(); ++i) { ^ user.cpp:98:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < s.size(); ++j) if (intersect(*fp, s[j])) { ^ user.cpp:68:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("poligon.in", "r", stdin); ^ user.cpp:69:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("poligon.out", "w", stdout); ^ user.cpp:71:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &N, &M); ^ user.cpp:73:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &px[i], &py[i]); ^ user.cpp:110:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &x, &y); ^

Ceva nu functioneaza?