Borderou de evaluare (job #1757908)
Utilizator | Data | 16 septembrie 2016 02:40:06 | |
---|---|---|---|
Problema | Tree 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void DFS(int, int)’:
user.cpp:30:21: error: could not convert ‘sons’ from ‘std::set<int>’ to ‘bool’
if (sons)
^
user.cpp:31:5: error: expected primary-expression before ‘}’ token
}
^
user.cpp:31:5: error: expected ‘;’ before ‘}’ token
user.cpp:29:25: warning: unused variable ‘it2’ [-Wunused-variable]
for (const int &it2: G[it])
^
user.cpp:28:13: warning: unused variable ‘found’ [-Wunused-variable]
int found = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:43:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M);
^
user.cpp:46:31: 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 !