Borderou de evaluare (job #2644772)
Utilizator | Data | 25 august 2020 22:00:13 | |
---|---|---|---|
Problema | Arbore3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int)':
main.cpp:55:21: error: request for member 'find' in 'u.std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[]<int, int, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<const int, int> > >((sum[r] - s))', which is of non-class type 'std::unordered_map<int, int>::mapped_type {aka int}'
if (u[sum[r]-s].find() != u.end())
^~~~
main.cpp:59:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i<v[r].size(); i++)
~^~~~~~~~~~~~
main.cpp: In function 'char next()':
main.cpp:19:35: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(buff, 1, bsize, fin);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !