Borderou de evaluare (job #2143159)
Utilizator | Data | 25 februarie 2018 17:11:20 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read()’:
user.cpp:24:9: error: ‘g’ was not declared in this scope
g[x].push_back(y);
^
user.cpp: In function ‘void dfs(int, int)’:
user.cpp:47:5: error: ‘niv’ was not declared in this scope
niv[nod] = niv[tata] + 1;
^
user.cpp:57:13: error: expected ‘;’ before ‘dfs’
dfs(*it,nod);
^
user.cpp: In function ‘void rezolvare()’:
user.cpp:76:5: error: ‘niv’ was not declared in this scope
niv[0] = -1;
^
user.cpp: In function ‘void afisare()’:
user.cpp:89:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<std::vector<int> >::size_type {aka long unsigned int}’ [-Wformat=]
printf("%d\n",componente.size());
^
user.cpp:91:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < componente.size(); i++)
^
user.cpp:93:70: error: expected primary-expression before ‘)’ token
for(vector <int >:: iterator it = componente[i].begin() ; it+)
^
user.cpp:93:70: error: expected ‘;’ before ‘)’ token
user.cpp:95:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<int>::size_type {aka long unsigned int}’ [-Wformat=]
printf(" nr de elemente %d \n",componente[i].size());
^
user.cpp: In function ‘void read()’:
user.cpp:17:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("biconexe.in","r",stdin);
^
user.cpp:18:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("biconexe.out","w",stdout);
^
user.cpp:19:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:23:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !