Borderou de evaluare (job #2257505)
Utilizator | Data | 10 octombrie 2018 09:44:18 | |
---|---|---|---|
Problema | Tsunami | 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:31:56: error: no matching function for call to ‘fill(long long unsigned int [1003][1003], long long unsigned int&, long long unsigned int&, long long unsigned int&)’
for(j=1;j<=m;j++)if(a[i][j]==0)fill(a,i,j,h);
^
user.cpp:7:6: note: candidate: void fill(int (*)[1003], int, int, int)
void fill(int a[1003][1003],int i,int j,int h){
^~~~
user.cpp:7:6: note: no known conversion for argument 1 from ‘long long unsigned int [1003][1003]’ to ‘int (*)[1003]’
In file included from /usr/include/c++/6/vector:65:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:86,
from user.cpp:1:
/usr/include/c++/6/bits/stl_bvector.h:398:3: note: candidate: void std::fill(std::_Bit_iterator, std::_Bit_iterator, const bool&)
fill(_Bit_iterator __first, _Bit_iterator __last, const bool& __x)
^~~~
/usr/include/c++/6/bits/stl_bvector.h:398:3: note: candidate expects 3 arguments, 4 provided
In file included from /usr/include/c++/6/deque:66:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:68,
from user.cpp:1:
/usr/include/c++/6/bits/deque.tcc:949:5: note: candidate: template<class _Tp> void std::fill(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, const _Tp&)
fill(const _Deque_iterator<_Tp, _Tp&, _Tp*>& __first,
^~~~
/usr/include/c++/6/bits/deque.tcc:949:5: note: template argument deduction/substitution failed:
user.cpp:31:56: note: mismatched types ‘const std::_Deque_iterator<_Tp, _Tp&, _Tp*>’ and ‘long long unsigned int [1003][1003]’
for(j=1;j<=m;j++)if(a[i][j]==0)fill(a,i,j,h);
^
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52,
from user.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h:724:5: note: candidate: template<class _ForwardIterator, class _Tp> void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&)
fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
^~~~
/usr/include/c++/6/bits/stl_algobase.h:724:5: note: template argument deduction/substitution failed:
user.cpp:31:56: note: deduced conflicting types for parameter ‘_ForwardIterator’ (‘long long unsigned int (*)[1003]’ and ‘long long unsigned int’)
for(j=1;j<=m;j++)if(a[i][j]==0)fill(a,i,j,h);
^
user.cpp:30:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(i=1;i<=n;i++)
^~~
user.cpp:33:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
g<<nr;
^
user.cpp:24:38: warning: unused variable ‘s’ [-Wunused-variable]
unsigned long long n,m,h,i,j,s=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !