Borderou de evaluare (job #2159322)
Utilizator | Data | 10 martie 2018 21:10:01 | |
---|---|---|---|
Problema | Statiuni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:11: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Sequence> class std::queue’
queue <ffs> Q;
^
user.cpp:10:11: note: expected a type, got ‘ffs’
user.cpp:10:11: error: template argument 2 is invalid
user.cpp: In function ‘void bfs()’:
user.cpp:27:15: error: request for member ‘empty’ in ‘Q’, which is of non-class type ‘int’
while (!Q.empty()){
^
user.cpp:28:21: error: request for member ‘front’ in ‘Q’, which is of non-class type ‘int’
int nod = Q.front().nod, pr = Q.front().pr, c = Q.front().cost;
^
user.cpp:29:11: error: request for member ‘pop’ in ‘Q’, which is of non-class type ‘int’
Q.pop();
^
user.cpp:31:23: error: ‘pr’ was not declared in this scope
if (it != pr && c < k && u[it] < 2){
^
user.cpp:31:29: error: ‘c’ was not declared in this scope
if (it != pr && c < k && u[it] < 2){
^
user.cpp:32:19: error: request for member ‘push’ in ‘Q’, which is of non-class type ‘int’
Q.push({it, pr, c + 1});
^
user.cpp: In function ‘int main()’:
user.cpp:50:33: error: request for member ‘push’ in ‘Q’, which is of non-class type ‘int’
if (v[i].size() == 1) Q.push({i, i, 0}), u[i] = 1;
^
user.cpp: In function ‘void read(int&)’:
user.cpp:19:58: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if (++p == dim) fread(buff, 1, dim, stdin), p = 0;
^
user.cpp:22:58: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if (++p == dim) fread(buff, 1, dim, stdin), p = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:40:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("statiuni.in","r", stdin);
^
user.cpp:41:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("statiuni.out","w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !