Borderou de evaluare (job #2353780)
Utilizator | Data | 24 februarie 2019 16:18:23 | |
---|---|---|---|
Problema | Graf | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void SFB()':
main.cpp:57:17: error: reference to 'hash' is ambiguous
hash[dist].push_back(vecin);
^~~~
main.cpp:11:13: note: candidates are: std::vector<int> hash [7510]
vector<int> hash[7510];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp: In function 'void Displaying()':
main.cpp:66:30: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::deque<int>::size_type {aka long unsigned int}' [-Wformat=]
fprintf(g,"%d\n",Q.size());
^
main.cpp:65:9: warning: unused variable 'i' [-Wunused-variable]
int i;
^
main.cpp: In function 'void Solve()':
main.cpp:78:12: error: reference to 'hash' is ambiguous
if(hash[i].size()==1)Q.push_back(hash[i][0]);
^~~~
main.cpp:11:13: note: candidates are: std::vector<int> hash [7510]
vector<int> hash[7510];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp:78:42: error: reference to 'hash' is ambiguous
if(hash[i].size()==1)Q.push_back(hash[i][0]);
^~~~
main.cpp:11:13: note: candidates are: std::vector<int> hash [7510]
vector<int> hash[7510];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp: In function 'void Read()':
main.cpp:16:40: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d %d",&N,&M,&X,&Y);
^
main.cpp:19:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !