Borderou de evaluare (job #1719180)

Utilizator DjokValeriu Motroi Djok Data 19 iunie 2016 12:53:32
Problema Symmetricgraph2 Status done
Runda Algoritmiada 2016 Runda 4 Seniori Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:27: error: ‘int clone [100005]’ redeclared as different kind of symbol int t[100005],clone[100005],dp[100005],d1[100005],d2[100005]; ^ In file included from /usr/include/sched.h:43:0, from /usr/include/pthread.h:25, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:33, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/sstream:38, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from user.cpp:1: /usr/include/i386-linux-gnu/bits/sched.h:83:12: error: previous declaration of ‘int clone(int (*)(void*), void*, int, void*, ...)’ extern int clone (int (*__fn) (void *__arg), void *__child_stack, ^ user.cpp: In function ‘void get_tata()’: user.cpp:79:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(d1[x]==d2[p->nod]) clone[x]=p->nod,aux.push_back(x); ^ user.cpp:79:39: error: assignment of read-only location ‘*(clone + ((sizetype)x))’ if(d1[x]==d2[p->nod]) clone[x]=p->nod,aux.push_back(x); ^ user.cpp:79:39: error: cannot convert ‘int’ to ‘int(int (*)(void*), void*, int, void*, ...)throw ()’ in assignment user.cpp:93:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(d2[x]==d1[p->nod]) clone[x]=p->nod; ^ user.cpp:93:39: error: assignment of read-only location ‘*(clone + ((sizetype)x))’ if(d2[x]==d1[p->nod]) clone[x]=p->nod; ^ user.cpp:93:39: error: cannot convert ‘int’ to ‘int(int (*)(void*), void*, int, void*, ...)throw ()’ in assignment user.cpp:98:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] clone[1]=n; clone[n]=1; ^ user.cpp:98:13: error: assignment of read-only location ‘*(clone + 1u)’ clone[1]=n; clone[n]=1; ^ user.cpp:98:13: error: cannot convert ‘int’ to ‘int(int (*)(void*), void*, int, void*, ...)throw ()’ in assignment user.cpp:98:24: warning: pointer to a function used in arithmetic [-Wpointer-arith] clone[1]=n; clone[n]=1; ^ user.cpp:98:25: error: assignment of read-only location ‘*(clone + ((sizetype)n))’ clone[1]=n; clone[n]=1; ^ user.cpp:98:25: error: cannot convert ‘int’ to ‘int(int (*)(void*), void*, int, void*, ...)throw ()’ in assignment user.cpp:106:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] int x=it,y=clone[it];

Ceva nu functioneaza?