Borderou de evaluare (job #1189562)

Utilizator UPB_Ciocan_Vlad_SilviuRetired But Dangerous UPB_Ciocan_Vlad_Silviu Data 23 mai 2014 10:32:31
Problema Matperm2 Status done
Runda Concursul National de Soft Grigore Moisil Lugoj, Clasele 11-12 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void initialize_next()’: user.cpp:25:13: error: reference to ‘next’ is ambiguous next[i][j] = make_pair(i, j); ^ user.cpp:20:7: note: candidates are: std::pair<int, int> next [1024][1024] point next[maxn][maxn], after[maxn][maxn], after_one_move_1[maxn][maxn], info[maxn][maxn]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^ user.cpp: In function ‘void compute_graph()’: user.cpp:32:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<perm_lines.size(); i++) { ^ user.cpp:38:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<perm_columns.size(); i++) { ^ user.cpp:44:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<moves.size(); i++) { ^ user.cpp:50:13: error: reference to ‘next’ is ambiguous next[ after[i][j].x ][ after[i][j].y ] = make_pair(i, j); ^ user.cpp:20:7: note: candidates are: std::pair<int, int> next [1024][1024] point next[maxn][maxn], after[maxn][maxn], after_one_move_1[maxn][maxn], info[maxn][maxn]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^ user.cpp: In function ‘void dfs(int, int)’: user.cpp:64:9: error: reference to ‘next’ is ambiguous dfs(next[x][y].x, next[x][y].y); ^ user.cpp:20:7: note: candidates are: std::pair<int, int> next [1024][1024] point next[maxn][maxn], after[maxn][maxn], after_one_move_1[maxn][maxn], info[maxn][maxn]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/bits/char_traits.h:39,

Ceva nu functioneaza?