Borderou de evaluare (job #2134297)
Utilizator | Data | 17 februarie 2018 20:14:05 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int)’:
user.cpp:10:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<v[q].size(); i++)
^
user.cpp:12:13: error: ‘k’ was not declared in this scope
tsort[++k] = q;
^
user.cpp: In function ‘void dfsinv(int)’:
user.cpp:17:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<inv[q].size(); i++)
^
user.cpp:19:9: error: ‘cnt’ was not declared in this scope
sol[cnt].push_back(q);
^
user.cpp: In function ‘int main()’:
user.cpp:40:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<sol[i].size(); j++) cout << sol[i][j] << " ";
^
user.cpp:23:9: warning: unused variable ‘k’ [-Wunused-variable]
int k = 0, cnt = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !