Borderou de evaluare (job #1761192)
Utilizator | Data | 21 septembrie 2016 21:48:16 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:24: error: no match for ‘operator[]’ (operand types are ‘long int [100000]’ and ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’)
if(eticheta[ii]<=eticheta[i])
^
user.cpp:26:37: error: no match for ‘operator[]’ (operand types are ‘long int [100000]’ and ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’)
eticheta[i]=eticheta[ii];
^
user.cpp:27:26: error: no match for ‘operator[]’ (operand types are ‘long int [100000]’ and ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’)
else eticheta[ii]=eticheta[i];
^
user.cpp:14:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&n,&m);
^
user.cpp:17:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !