Borderou de evaluare (job #1284628)

Utilizator Axel6470Irimia Alex Axel6470 Data 6 decembrie 2014 17:46:51
Problema Range minimum query Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:4:1: error: unknown type name ‘using’ using namespace std; ^ user.c:4:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘std’ using namespace std; ^ user.c: In function ‘main’: user.c:37:9: warning: implicit declaration of function ‘min’ [-Wimplicit-function-declaration] rmq[i][j]= min( rmq[i-1][j] , rmq[i-1][j+l] ); ^ user.c:49:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",min(rmq[l][x],rmq[l][x+sh]) ); ^ user.c:16:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("rmq.in","r",stdin); ^ user.c:17:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("rmq.out","w",stdout); ^ user.c:21:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&n,&m); ^ user.c:24:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld ",&a[i]); ^ user.c:44:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&x,&y); ^

Ceva nu functioneaza?