Borderou de evaluare (job #1229419)
Utilizator | Data | 17 septembrie 2014 09:50:54 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:14: error: ‘pair’ was not declared in this scope
bool compare(pair<int,int> x,pair<int,int> y)
^
user.cpp:6:14: note: suggested alternative:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_pair.h:96:12: note: ‘std::pair’
struct pair
^
user.cpp:6:19: error: expected primary-expression before ‘int’
bool compare(pair<int,int> x,pair<int,int> y)
^
user.cpp:6:23: error: expected primary-expression before ‘int’
bool compare(pair<int,int> x,pair<int,int> y)
^
user.cpp:6:30: error: ‘pair’ was not declared in this scope
bool compare(pair<int,int> x,pair<int,int> y)
^
user.cpp:6:30: note: suggested alternative:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_pair.h:96:12: note: ‘std::pair’
struct pair
^
user.cpp:6:35: error: expected primary-expression before ‘int’
bool compare(pair<int,int> x,pair<int,int> y)
^
user.cpp:6:39: error: expected primary-expression before ‘int’
bool compare(pair<int,int> x,pair<int,int> y)
^
user.cpp:6:45: error: expression list treated as compound expression in initializer [-fpermissive]
bool compare(pair<int,int> x,pair<int,int> y)
^
user.cpp:7:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
user.cpp:10:1: error: ‘priority_queue’ does not name a type
priority_queue<pair<int,int>,vector<pair<int,int> >,compare>q;
^
user.cpp:11:1: error: ‘vector’ does not name a type
vector<pair<int,int>> v[50001];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !