Borderou de evaluare (job #1720067)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 21 iunie 2016 12:09:42
Problema Zoo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:23:19: error: ‘int y1’ redeclared as different kind of symbol int n, m, x1, x2, y1, y2, stb, drb; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘void merge(std::vector<int>&, std::vector<int>&, std::vector<int>&)’: user.cpp:33:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(; i<a.size() && j<b.size(); ) { ^ user.cpp:33:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(; i<a.size() && j<b.size(); ) { ^ user.cpp:40:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(; i<a.size(); i++) ^ user.cpp:43:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(; i<b.size(); i++) ^ user.cpp: In function ‘int q_pom(int, int, int)’: user.cpp:69:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(a+m<pom[nod].size() && pom[nod][a+m]<y1) ^ user.cpp:69:53: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(a+m<pom[nod].size() && pom[nod][a+m]<y1) ^ user.cpp:73:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(b+m<pom[nod].size() && pom[nod][b+m]<=y2) ^ user.cpp: In function ‘int main()’: user.cpp:120:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d%d%d%d",&x1,&y1,&x2,&y2); ^ user.cpp:108:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zoo.in", "r", stdin); ^ user.cpp:109:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zoo.out", "w", stdout); ^ user.cpp:111:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:113:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&v[i].x,&v[i].y); ^

Ceva nu functioneaza?