Borderou de evaluare (job #2090844)

Utilizator Teodor.mTeodor Marchitan Teodor.m Data 18 decembrie 2017 19:44:54
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:8:1: error: unknown type name ‘bool’ bool prim[NMax]; ^ user.c:8:6: error: variably modified ‘prim’ at file scope bool prim[NMax]; ^ user.c: In function ‘Ciur’: user.c:15:15: error: ‘true’ undeclared (first use in this function) prim[i] = true; ^ user.c:15:15: note: each undeclared identifier is reported only once for each function it appears in user.c:18:15: error: ‘false’ undeclared (first use in this function) prim[i] = false; ^ user.c: In function ‘main’: user.c:36:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &n); ^

Ceva nu functioneaza?