Borderou de evaluare (job #1932328)
Utilizator | Data | 19 martie 2017 17:48:04 | |
---|---|---|---|
Problema | Qnp | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:19:16: error: ‘std::map<int, int> div’ redeclared as different kind of symbol
map <int, int> div;
^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
from /usr/include/c++/4.8/ext/string_conversions.h:41,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/stdexcept:39,
from /usr/include/c++/4.8/array:38,
from /usr/include/c++/4.8/tuple:39,
from /usr/include/c++/4.8/bits/stl_map.h:63,
from /usr/include/c++/4.8/map:61,
from user.cpp:2:
/usr/include/stdlib.h:785:14: error: previous declaration of ‘div_t div(int, int)’
extern div_t div (int __numer, int __denom)
^
user.cpp: In function ‘void remove(int, int)’:
user.cpp:72:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
div[2] += op * count;
^
user.cpp:72:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
div[2] += op * count;
^
user.cpp:72:12: error: assignment of read-only location ‘*(div + 2u)’
user.cpp:72:12: error: cannot convert ‘div_t (*)(int, int)throw ()’ to ‘div_t(int, int)throw ()’ in assignment
user.cpp:84:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
div[curr] += op * count;
^
user.cpp:84:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
div[curr] += op * count;
^
user.cpp:84:15: error: assignment of read-only location ‘*(div + ((sizetype)curr))’
user.cpp:84:15: error: cannot convert ‘div_t (*)(int, int)throw ()’ to ‘div_t(int, int)throw ()’ in assignment
user.cpp: In function ‘long long int convert(long long int)’:
user.cpp:92:12: error: request for member ‘begin’ in ‘div’, which is of non-class type ‘div_t(int, int)throw ()’
it = div.begin();
^
user.cpp:93:20: error: request for member ‘end’ in ‘div’, which is of non-class type ‘div_t(int, int)throw ()’
while (it != div.end() && flag) {
^
user.cpp: In function ‘void afis(char*)’:
user.cpp:107:17: error: request for member ‘begin’ in ‘div’, which is of non-class type ‘div_t(int, int)throw ()’
for (it = div.begin(); it != div.end(); it++) {
^
user.cpp:107:36: error: request for member ‘end’ in ‘div’, which is of non-class type ‘div_t(int, int)throw ()’
for (it = div.begin(); it != div.end(); it++) {
^
user.cpp: In function ‘int main()’:
user.cpp:138:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
div[primes[i]] = tmp;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !