Borderou de evaluare (job #1105041)

Utilizator andrei_diaconuAndrei Diaconu andrei_diaconu Data 11 februarie 2014 13:22:57
Problema Maxd Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:176:6: error: incompatible types in assignment of ‘int’ to ‘unsigned int [4948]’ p=1; ^ user.cpp:178:18: error: lvalue required as increment operand while (2 * ++p <= 50000) ^ user.cpp:179:17: error: invalid operands of types ‘int’ and ‘unsigned int [4948]’ to binary ‘operator*’ prime[2*p]=1; ^ user.cpp:185:14: error: incompatible types in assignment of ‘int’ to ‘unsigned int [4948]’ p=1; ^ user.cpp:188:18: error: incompatible types in assignment of ‘long int’ to ‘unsigned int [4948]’ for(p=i*2; p<50000; p+=i) ^ user.cpp:188:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(p=i*2; p<50000; p+=i) ^ user.cpp:188:34: error: incompatible types in assignment of ‘long int’ to ‘unsigned int [4948]’ for(p=i*2; p<50000; p+=i) ^ user.cpp:189:24: error: invalid types ‘bool [50000][unsigned int [4948]]’ for array subscript prime[p]=1; ^ user.cpp:194:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=1;((long)p[j]*p[j])<=x;j++){ ^

Ceva nu functioneaza?