Borderou de evaluare (job #2198400)
Utilizator | Data | 24 aprilie 2018 13:54:09 | |
---|---|---|---|
Problema | Drumuri minime | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:2: error: ‘fin’ was not declared in this scope
fin>>n>>m;
^~~
user.cpp:12:2: error: ‘priority_queue’ was not declared in this scope
priority_queue <pair<int,int>,greater <int,int> q;
^~~~~~~~~~~~~~
user.cpp:12:18: error: ‘pair’ was not declared in this scope
priority_queue <pair<int,int>,greater <int,int> q;
^~~~
user.cpp:12:18: note: suggested alternative:
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from user.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:194:12: note: ‘std::pair’
struct pair
^~~~
user.cpp:12:23: error: expected primary-expression before ‘int’
priority_queue <pair<int,int>,greater <int,int> q;
^~~
user.cpp:13:2: error: ‘vector’ was not declared in this scope
vector<int>distante(n+1,10000);
^~~~~~
user.cpp:13:2: note: suggested alternative:
In file included from /usr/include/c++/6/vector:64:0,
from user.cpp:2:
/usr/include/c++/6/bits/stl_vector.h:214:11: note: ‘std::vector’
class vector : protected _Vector_base<_Tp, _Alloc>
^~~~~~
user.cpp:13:9: error: expected primary-expression before ‘int’
vector<int>distante(n+1,10000);
^~~
user.cpp:14:13: error: invalid types ‘int[int]’ for array subscript
distante[0]=0;
^
user.cpp:15:3: error: ‘q’ was not declared in this scope
q.push(make_pair(0, 0));
^
user.cpp:15:24: error: ‘make_pair’ was not declared in this scope
q.push(make_pair(0, 0));
^
user.cpp:15:24: note: suggested alternative:
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !