Borderou de evaluare (job #1232075)

Utilizator thinkphpAdrian Statescu thinkphp Data 21 septembrie 2014 23:18:21
Problema Permut Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:2:16: error: expected ‘]’ before numeric constant #define MAXN 1 000 001 ^ user.c:7:9: note: in expansion of macro ‘MAXN’ int A[ MAXN ], ^ user.c:2:16: error: expected ‘]’ before numeric constant #define MAXN 1 000 001 ^ user.c:18:17: note: in expansion of macro ‘MAXN’ void sort(int X[MAXN]); ^ user.c:2:16: error: expected ‘]’ before numeric constant #define MAXN 1 000 001 ^ user.c:19:23: note: in expansion of macro ‘MAXN’ void qs(int,int,int X[MAXN]); ^ user.c:2:16: error: expected ‘]’ before numeric constant #define MAXN 1 000 001 ^ user.c:20:29: note: in expansion of macro ‘MAXN’ int partition(int,int,int X[MAXN]); ^ user.c: In function ‘read’: user.c:40:23: error: ‘A’ undeclared (first use in this function) scanf("%d", &A[ i ]); ^ user.c:40:23: note: each undeclared identifier is reported only once for each function it appears in user.c:44:23: error: ‘B’ undeclared (first use in this function) scanf("%d", &B[ i ]); ^ user.c: In function ‘solve’: user.c:55:6: warning: implicit declaration of function ‘sort’ [-Wimplicit-function-declaration] sort(A); ^ user.c:55:11: error: ‘A’ undeclared (first use in this function) sort(A); ^ user.c:57:11: error: ‘B’ undeclared (first use in this function) sort(B); ^ user.c:59:30: error: ‘R’ undeclared (first use in this function) for(i = 1; i <= n; i++) R[i] = 0; ^ user.c:68:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", sum); ^ user.c: At top level: user.c:2:16: error: expected ‘]’ before numeric constant

Ceva nu functioneaza?