Borderou de evaluare (job #2562945)
Utilizator | Data | 29 februarie 2020 20:24:57 | |
---|---|---|---|
Problema | Dir | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:36:16: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
vector < index > Ad[NMAX];
^
main.cpp:36:16: note: expected a type, got 'index'
main.cpp:36:16: error: template argument 2 is invalid
main.cpp: In function 'void Path(int&, int)':
main.cpp:69:11: error: expected ';' before 'val'
index val; val.i = k;
^~~
main.cpp:69:14: error: statement cannot resolve address of overloaded function
index val; val.i = k;
^
main.cpp:69:16: error: 'val' was not declared in this scope
index val; val.i = k;
^~~
main.cpp:71:16: error: request for member 'push_back' in 'Ad[parent]', which is of non-class type 'int'
Ad[parent].push_back( val );
^~~~~~~~~
main.cpp: In function 'void Paths(int)':
main.cpp:93:17: error: request for member 'size' in 'Ad[nod]', which is of non-class type 'int'
if( Ad[nod].size() == 0 )
^~~~
main.cpp:101:33: error: request for member 'size' in 'Ad[nod]', which is of non-class type 'int'
for( int j = 0; j < Ad[nod].size(); ++j )
^~~~
main.cpp:103:26: error: invalid types 'int[int]' for array subscript
int w = Ad[nod][j].i;
^
main.cpp: In function 'void Solve()':
main.cpp:126:21: error: request for member 'begin' in 'Ad[i]', which is of non-class type 'int'
sort( Ad[i].begin(), Ad[i].end() );
^~~~~
main.cpp:126:36: error: request for member 'end' in 'Ad[i]', which is of non-class type 'int'
sort( Ad[i].begin(), Ad[i].end() );
^~~
main.cpp:138:31: error: request for member 'size' in 'Ad[0]', which is of non-class type 'int'
for( int i = 0; i < Ad[0].size(); ++i )
^~~~
main.cpp:139:23: error: invalid types 'int[int]' for array subscript
Paths( Ad[0][i].i );
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !