Borderou de evaluare (job #1146946)
Utilizator | Data | 19 martie 2014 14:06:40 | |
---|---|---|---|
Problema | Eliminare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In static member function ‘static void Test::start(int)’:
user.cpp:263:51: error: no matching function for call to ‘Test::printData(int&, int&, std::vector<int>&, std::vector<std::pair<int, int> >&, std::ofstream)’
printData(n, m, value, e, ofstream("test.out"));
^
user.cpp:263:51: note: candidate is:
user.cpp:206:14: note: static void Test::printData(int, int, std::vector<int>, std::vector<std::pair<int, int> >&, std::ostream&)
static void printData(int n, int m, vector<int> value, vector< pair<int, int> > &e,ostream& out) {
^
user.cpp:206:14: note: no known conversion for argument 5 from ‘std::ofstream {aka std::basic_ofstream<char>}’ to ‘std::ostream& {aka std::basic_ostream<char>&}’
user.cpp: In function ‘int main()’:
user.cpp:279:59: error: no matching function for call to ‘Test::readData(std::ifstream)’
tie(n, m, v, e) = Test::readData(ifstream("eliminare.in"));
^
user.cpp:279:59: note: candidate is:
user.cpp:217:66: note: static std::tuple<int, int, std::vector<int, std::allocator<int> >, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > > Test::readData(std::istream&)
static tuple<int, int, vector<int>, vector< pair<int, int> > > readData(istream& in) {
^
user.cpp:217:66: note: no known conversion for argument 1 from ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘std::istream& {aka std::basic_istream<char>&}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !