Borderou de evaluare (job #2295845)
| Utilizator | Data | 3 decembrie 2018 23:18:38 | |
|---|---|---|---|
| Problema | Heapuri | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void stergere(int, int*, int)':
main.cpp:44:28: error: no matching function for call to 'swap(int&, int*&)'
swap(Heap[counter],Heap)
^
main.cpp:21:6: note: candidate: void swap(int&, int&) <near match>
void swap(int &a,int &b)
^~~~
main.cpp:21:6: note: conversion of argument 2 would be ill-formed:
main.cpp:44:28: error: invalid conversion from 'int*' to 'int' [-fpermissive]
swap(Heap[counter],Heap)
^
main.cpp:44:28: error: cannot bind rvalue '(int)Heap' to 'int&'
In file included from main.cpp:2:0:
/usr/include/c++/6/fstream:1073:5: note: candidate: template<class _CharT, class _Traits> void std::swap(std::basic_fstream<_CharT, _Traits>&, std::basic_fstream<_CharT, _Traits>&)
swap(basic_fstream<_CharT, _Traits>& __x,
^~~~
/usr/include/c++/6/fstream:1073:5: note: template argument deduction/substitution failed:
main.cpp:44:28: note: mismatched types 'std::basic_fstream<_CharT, _Traits>' and 'int'
swap(Heap[counter],Heap)
^
In file included from main.cpp:2:0:
/usr/include/c++/6/fstream:1066:5: note: candidate: template<class _CharT, class _Traits> void std::swap(std::basic_ofstream<_CharT, _Traits>&, std::basic_ofstream<_CharT, _Traits>&)
swap(basic_ofstream<_CharT, _Traits>& __x,
^~~~
/usr/include/c++/6/fstream:1066:5: note: template argument deduction/substitution failed:
main.cpp:44:28: note: mismatched types 'std::basic_ofstream<_CharT, _Traits>' and 'int'
swap(Heap[counter],Heap)
^
In file included from main.cpp:2:0:
/usr/include/c++/6/fstream:1059:5: note: candidate: template<class _CharT, class _Traits> void std::swap(std::basic_ifstream<_CharT, _Traits>&, std::basic_ifstream<_CharT, _Traits>&)
swap(basic_ifstream<_CharT, _Traits>& __x,
^~~~
/usr/include/c++/6/fstream:1059:5: note: template argument deduction/substitution failed:
main.cpp:44:28: note: mismatched types 'std::basic_ifstream<_CharT, _Traits>' and 'int'
swap(Heap[counter],Heap)
^
In file included from main.cpp:2:0:
/usr/include/c++/6/fstream:1052:5: note: candidate: template<class _CharT, class _Traits> void std::swap(std::basic_filebuf<_CharT, _Traits>&, std::basic_filebuf<_CharT, _Traits>&)
swap(basic_filebuf<_CharT, _Traits>& __x,
^~~~
/usr/include/c++/6/fstream:1052:5: note: template argument deduction/substitution failed:
main.cpp:44:28: note: mismatched types 'std::basic_filebuf<_CharT, _Traits>' and 'int'
swap(Heap[counter],Heap)
^
In file included from /usr/include/c++/6/string:52:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
