Borderou de evaluare (job #1602324)

Utilizator gapdanPopescu George gapdan Data 16 februarie 2016 18:41:14
Problema AVD Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void DFS(int)’: user.cpp:23:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v[nod].size();++i) ^ user.cpp: In function ‘void verif()’: user.cpp:46:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<aux.size();++i) ^ user.cpp:61:11: error: no match for ‘operator=’ (operand types are ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ and ‘std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}’) it=s[nrc].find(val); ^ user.cpp:61:11: note: candidates are: In file included from /usr/include/c++/4.8/set:60:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_tree.h:228:12: note: std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(const std::_Rb_tree_const_iterator<int>&) struct _Rb_tree_const_iterator ^ /usr/include/c++/4.8/bits/stl_tree.h:228:12: note: no known conversion for argument 1 from ‘std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}’ to ‘const std::_Rb_tree_const_iterator<int>&’ /usr/include/c++/4.8/bits/stl_tree.h:228:12: note: std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(std::_Rb_tree_const_iterator<int>&&) /usr/include/c++/4.8/bits/stl_tree.h:228:12: note: no known conversion for argument 1 from ‘std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}’ to ‘std::_Rb_tree_const_iterator<int>&&’ user.cpp: In function ‘int main()’: user.cpp:118:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("avd.in","r",stdin); ^ user.cpp:119:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("avd.out","w",stdout); ^ user.cpp:120:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&T); ^ user.cpp:125:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:129:32: 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?