Borderou de evaluare (job #2424380)
Utilizator | Data | 22 mai 2019 22:23:06 | |
---|---|---|---|
Problema | Retea2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:22:13: error: 'pair' was not declared in this scope
std::set < pair< double, int> > S;
^~~~
main.cpp:22:13: 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 main.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:194:12: note: 'std::pair'
struct pair
^~~~
main.cpp:22:30: error: template argument 1 is invalid
std::set < pair< double, int> > S;
^
main.cpp:22:30: error: template argument 2 is invalid
main.cpp:22:30: error: template argument 3 is invalid
main.cpp:22:32: error: expected unqualified-id before '>' token
std::set < pair< double, int> > S;
^
main.cpp:27:33: error: 'make_pair' was not declared in this scope
graph.push_back(make_pair(x, y));
^
main.cpp:27:33: 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 main.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:497:5: note: 'std::make_pair'
make_pair(_T1&& __x, _T2&& __y)
^~~~~~~~~
main.cpp:36:3: error: 'S' was not declared in this scope
S.insert(make_pair(dist[i], i));
^
main.cpp:36:32: error: 'make_pair' was not declared in this scope
S.insert(make_pair(dist[i], i));
^
main.cpp:36:32: 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 main.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:497:5: note: 'std::make_pair'
make_pair(_T1&& __x, _T2&& __y)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !