Borderou de evaluare (job #846026)

Utilizator suzanicaSuzanica Mihu suzanica Data 1 ianuarie 2013 12:43:47
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:1:17: error: cstdio: No such file or directory user.c:2:20: error: algorithm: No such file or directory user.c:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘namespace’ user.c: In function ‘main’: user.c:10: warning: implicit declaration of function ‘freopen’ user.c:10: error: ‘stdin’ undeclared (first use in this function) user.c:10: error: (Each undeclared identifier is reported only once user.c:10: error: for each function it appears in.) user.c:11: error: ‘stdout’ undeclared (first use in this function) user.c:14: warning: implicit declaration of function ‘scanf’ user.c:14: warning: incompatible implicit declaration of built-in function ‘scanf’ user.c:14: warning: format ‘%d’ expects type ‘int *’, but argument 2 has type ‘long int *’ user.c:15: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:15: note: use option -std=c99 or -std=gnu99 to compile your code user.c:17: warning: format ‘%d’ expects type ‘int *’, but argument 2 has type ‘long int *’ user.c:20: warning: implicit declaration of function ‘sort’ user.c:22: error: redefinition of ‘i’ user.c:15: note: previous definition of ‘i’ was here user.c:22: error: ‘for’ loop initial declarations are only allowed in C99 mode user.c:22: warning: implicit declaration of function ‘printf’ user.c:22: warning: incompatible implicit declaration of built-in function ‘printf’ user.c:22: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’ user.c:13: warning: unused variable ‘x’

Ceva nu functioneaza?