Borderou de evaluare (job #1435245)

Utilizator DEFINEtelyEngineersUPB Pirtoaca Vasilescu Zamfiratos DEFINEtelyEngineers Data 12 mai 2015 16:57:33
Problema Sistem2 Status done
Runda acm_practice3 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Contactează autorul problemei: Eroare de compilare în evaluatorul problemei: /home/eval/infoarena/eval/temp/eval.cpp: In function ‘int main()’: /home/eval/infoarena/eval/temp/eval.cpp:53:14: error: reference to ‘prev’ is ambiguous urm[i]=i+1,prev[i]=i-1; ^ /home/eval/infoarena/eval/temp/eval.cpp:11:19: note: candidates are: int prev [32] int n,m,urm[nmax],prev[nmax],p[nmax],g[nmax],nr[nmax],H[nmax][nmax],G[nmax][nmax],l[nmax]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/vector:60, from /home/eval/infoarena/eval/temp/eval.cpp:3: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type) prev(_BidirectionalIterator __x, typename ^ /home/eval/infoarena/eval/temp/eval.cpp:54:9: error: reference to ‘prev’ is ambiguous urm[n]=prev[0]=0; ^ /home/eval/infoarena/eval/temp/eval.cpp:11:19: note: candidates are: int prev [32] int n,m,urm[nmax],prev[nmax],p[nmax],g[nmax],nr[nmax],H[nmax][nmax],G[nmax][nmax],l[nmax]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/vector:60, from /home/eval/infoarena/eval/temp/eval.cpp:3: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type) prev(_BidirectionalIterator __x, typename ^ /home/eval/infoarena/eval/temp/eval.cpp:81:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] error("Lipsa fisier iesire!",0); ^ /home/eval/infoarena/eval/temp/eval.cpp:85:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] error("Fisier incomplet!",0); ^ /home/eval/infoarena/eval/temp/eval.cpp:87:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] error("Nu e permutare",0); ^ /home/eval/infoarena/eval/temp/eval.cpp:92:29: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] error("Raspuns gresit!",0); ^ /home/eval/infoarena/eval/temp/eval.cpp:93:16: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] error("Ok!",10); ^ /home/eval/infoarena/eval/temp/eval.cpp:49:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sistem2.in","r",stdin); ^ /home/eval/infoarena/eval/temp/eval.cpp:50:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); ^ /home/eval/infoarena/eval/temp/eval.cpp:51:20: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(s,256,stdin); ^ /home/eval/infoarena/eval/temp/eval.cpp:58:21: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?