Borderou de evaluare (job #1776739)
Utilizator | Data | 11 octombrie 2016 19:34:38 | |
---|---|---|---|
Problema | Pariuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:12: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
vector<pair>h[P];
^
user.cpp:8:12: error: expected a type, got ‘pair’
user.cpp:8:12: error: template argument 2 is invalid
user.cpp:8:17: error: invalid type in declaration before ‘;’ token
vector<pair>h[P];
^
user.cpp: In function ‘void Gasire(int, int)’:
user.cpp:13:12: error: request for member ‘size’ in ‘h[r]’, which is of non-class type ‘int’
k=h[r].size();
^
user.cpp:15:18: error: invalid types ‘int[int]’ for array subscript
if(h[r][i]==x)
^
user.cpp:17:15: error: invalid types ‘int[int]’ for array subscript
h[r][i]=h[r][k-1];
^
user.cpp:17:25: error: invalid types ‘int[int]’ for array subscript
h[r][i]=h[r][k-1];
^
user.cpp:19:14: error: request for member ‘pop_back’ in ‘h[r]’, which is of non-class type ‘int’
h[r].pop_back();
^
user.cpp:23:10: error: request for member ‘push_back’ in ‘h[r]’, which is of non-class type ‘int’
h[r].push_back(x);
^
user.cpp: In function ‘int main()’:
user.cpp:41:17: error: request for member ‘size’ in ‘h[i]’, which is of non-class type ‘int’
if(h[i].size()>0)
^
user.cpp:45:17: error: request for member ‘size’ in ‘h[i]’, which is of non-class type ‘int’
if(h[i].size()>0)
^
user.cpp:47:16: error: request for member ‘size’ in ‘h[i]’, which is of non-class type ‘int’
k=h[i].size();
^
user.cpp:49:25: error: invalid types ‘int[int]’ for array subscript
fout<<h[i][j]<<" "<<b[i]<<" ";
^
user.cpp:28:19: warning: unused variable ‘r’ [-Wunused-variable]
int i,j,x,y,s,r,k;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !