Borderou de evaluare (job #1301999)

Utilizator ovidiuz98Zamfir Ovidiu ovidiuz98 Data 26 decembrie 2014 15:36:33
Problema GFact Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:3:1: error: unknown type name ‘using’ using namespace std; ^ user.c:3:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘std’ using namespace std; ^ user.c: In function ‘main’: user.c:24:5: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%ld%ld",&p,&q); ^ user.c:24:5: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 3 has type ‘long long int *’ [-Wformat=] user.c:47:5: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld",minim); ^ user.c:22:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("gfact.in","r",stdin); ^ user.c:23:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("gfact.out","w",stdout); ^ user.c:24:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&p,&q); ^

Ceva nu functioneaza?