Borderou de evaluare (job #1932337)
Utilizator | Data | 19 martie 2017 17:50:20 | |
---|---|---|---|
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:5: error: ‘divi’ was not declared in this scope
divi[2] += op * count;
^
user.cpp:84:5: error: ‘divi’ was not declared in this scope
divi[curr] += op * count;
^
user.cpp: In function ‘long long int convert(long long int)’:
user.cpp:92:8: error: ‘divi’ was not declared in this scope
it = divi.begin();
^
user.cpp: In function ‘int main()’:
user.cpp:138:9: error: ‘divi’ was not declared in this scope
divi[primes[i]] = tmp;
^
user.cpp:188:5: error: ‘divi’ was not declared in this scope
divi.clear();
^
user.cpp:118:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("qnp.out", "w", stdout);
^
user.cpp:122:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &M);
^
user.cpp:126:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &freq[i]);
^
user.cpp:129:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%lld", &K);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !