Borderou de evaluare (job #2133822)

Utilizator sabinandreiBocan Sabin Andrei sabinandrei Data 17 februarie 2018 12:50:56
Problema Arbore Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void df(int)’: user.cpp:9:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define rep(i, n) for (int i = 0; i < n; ++i) ^ user.cpp:43:5: note: in expansion of macro ‘rep’ rep(i, sz(vec[k])) ^ user.cpp: In function ‘void update(int, int)’: user.cpp:59:46: error: reference to ‘plus’ is ambiguous if (start[nr] <= a && b <= stop[nr]) plus[poz] += sum; ^ user.cpp:17:54: note: candidates are: int plus [450] int n, m, cont, el[2*Nmax], start[Nmax], stop[Nmax], plus[buc], v[2*Nmax]; ^ In file included from /usr/include/c++/5/string:48:0, from /usr/include/c++/5/random:40, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from user.cpp:2: /usr/include/c++/5/bits/stl_function.h:167:12: note: template<class _Tp> struct std::plus struct plus : public binary_function<_Tp, _Tp, _Tp> ^ user.cpp: In function ‘int query(int)’: user.cpp:103:19: error: reference to ‘plus’ is ambiguous val = sum-plus[poz]; ^ user.cpp:17:54: note: candidates are: int plus [450] int n, m, cont, el[2*Nmax], start[Nmax], stop[Nmax], plus[buc], v[2*Nmax]; ^ In file included from /usr/include/c++/5/string:48:0, from /usr/include/c++/5/random:40, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from user.cpp:2: /usr/include/c++/5/bits/stl_function.h:167:12: note: template<class _Tp> struct std::plus struct plus : public binary_function<_Tp, _Tp, _Tp> ^ user.cpp: In function ‘void readdata()’: user.cpp:22:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arbore.in", "r", stdin); ^ user.cpp:23:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arbore.out", "w", stdout); ^ user.cpp:27:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:31:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^

Ceva nu functioneaza?