Borderou de evaluare (job #2306194)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 21 decembrie 2018 18:59:59
Problema Range minimum query Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:2:20: error: expected ')' before ']' token #define N(x,y) (a[x]<a[y]?x:y) ^ main.c:11:18: note: in expansion of macro 'N' b[i][j]=N(b[i][j-1]],b[i+(1<<(j-1))][j-1]); ^ main.c:2:20: error: expected ';' before ']' token #define N(x,y) (a[x]<a[y]?x:y) ^ main.c:11:18: note: in expansion of macro 'N' b[i][j]=N(b[i][j-1]],b[i+(1<<(j-1))][j-1]); ^ main.c:2:20: error: expected statement before ']' token #define N(x,y) (a[x]<a[y]?x:y) ^ main.c:11:18: note: in expansion of macro 'N' b[i][j]=N(b[i][j-1]],b[i+(1<<(j-1))][j-1]); ^ main.c:2:21: error: expected expression before '<' token #define N(x,y) (a[x]<a[y]?x:y) ^ main.c:11:18: note: in expansion of macro 'N' b[i][j]=N(b[i][j-1]],b[i+(1<<(j-1))][j-1]); ^ main.c:11:29: error: expected statement before ']' token b[i][j]=N(b[i][j-1]],b[i+(1<<(j-1))][j-1]); ^ main.c:2:27: note: in definition of macro 'N' #define N(x,y) (a[x]<a[y]?x:y) ^ main.c:2:28: error: expected expression before ':' token #define N(x,y) (a[x]<a[y]?x:y) ^ main.c:11:18: note: in expansion of macro 'N' b[i][j]=N(b[i][j-1]],b[i+(1<<(j-1))][j-1]); ^ main.c:2:30: error: expected statement before ')' token #define N(x,y) (a[x]<a[y]?x:y) ^ main.c:11:18: note: in expansion of macro 'N' b[i][j]=N(b[i][j-1]],b[i+(1<<(j-1))][j-1]); ^ main.c:6:5: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("rmq.in","r",stdin),freopen("rmq.out","w",stdout),scanf("%d%d",&n,&m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:6:33: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("rmq.in","r",stdin),freopen("rmq.out","w",stdout),scanf("%d%d",&n,&m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:6:63: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] Non zero exit status: 1

Ceva nu functioneaza?