Borderou de evaluare (job #1465857)

Utilizator buru_wirelessWire Less buru_wireless Data 28 iulie 2015 09:33:04
Problema Ccount Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:6:13: error: "(" may not appear in macro parameter list #define SET((_x)) (known[_x >> 3] |= 1 << (_x & 7)) ^ user.c:7:13: error: "(" may not appear in macro parameter list #define GET((_x)) (known[_x >> 3] & 1 << (_x & 7)) ^ user.c:9:1: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] static unsigned char known[NMAX >> 3 + 1]; ^ user.c: In function ‘main’: user.c:22:9: warning: implicit declaration of function ‘SET’ [-Wimplicit-function-declaration] SET(p); ^ user.c:26:11: error: ‘tail’ undeclared (first use in this function) queue[tail++] = n; ^ user.c:26:11: note: each undeclared identifier is reported only once for each function it appears in user.c:27:12: error: ‘head’ undeclared (first use in this function) while (head < tail) { ^ user.c:29:9: warning: implicit declaration of function ‘GET’ [-Wimplicit-function-declaration] if (GET(k) == 0 && k > 2) { ^ user.c:14:18: warning: variable ‘h’ set but not used [-Wunused-but-set-variable] int n, k, p, h, t, r = 0; ^ user.c: At top level: user.c:9:22: warning: ‘known’ defined but not used [-Wunused-variable] static unsigned char known[NMAX >> 3 + 1]; ^ user.c: In function ‘main’: user.c:16:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("ccount.in", "r", stdin); ^ user.c:17:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("ccount.out", "w", stdout); ^ user.c:19:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &k); ^ user.c:21:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &p); ^

Ceva nu functioneaza?