Borderou de evaluare (job #2192171)

Utilizator felixiPuscasu Felix felixi Data 4 aprilie 2018 21:40:50
Problema Itree Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:27: error: ‘int ffs [100002]’ redeclared as different kind of symbol int gr[NMAX+2], ffs[NMAX+2]; ^ In file included from /usr/include/c++/6/cstring:42:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:48, from user.cpp:1: /usr/include/string.h:518:12: note: previous declaration ‘int ffs(int)’ extern int ffs (int __i) __THROW __attribute__ ((__const__)); ^~~ user.cpp: In function ‘void solve()’: user.cpp:20:50: warning: pointer to a function used in arithmetic [-Wpointer-arith] for( int i = 1; i <= N; ++i ) gr[i] = ffs[i] = 0; ^ user.cpp:20:54: error: assignment of read-only location ‘*(ffs + ((sizetype)i))’ for( int i = 1; i <= N; ++i ) gr[i] = ffs[i] = 0; ^ user.cpp:20:54: error: cannot convert ‘int’ to ‘int(int) throw ()’ in assignment user.cpp:27:16: warning: pointer to a function used in arithmetic [-Wpointer-arith] ++ffs[x]; ^ user.cpp:27:16: warning: ISO C++ forbids incrementing a pointer of type ‘int (*)(int) throw ()’ [-Wpointer-arith] user.cpp:27:16: error: lvalue required as increment operand user.cpp:29:16: warning: pointer to a function used in arithmetic [-Wpointer-arith] ++ffs[y]; ^ user.cpp:29:16: warning: ISO C++ forbids incrementing a pointer of type ‘int (*)(int) throw ()’ [-Wpointer-arith] user.cpp:29:16: error: lvalue required as increment operand user.cpp:32:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] if( ffs[i] == 1 ) ^ user.cpp:32:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if( ffs[i] == 1 ) ^

Ceva nu functioneaza?