Borderou de evaluare (job #1533643)

Utilizator aditzu7Adrian Capraru aditzu7 Data 22 noiembrie 2015 20:24:20
Problema Roata Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:1: error: ‘select’ does not name a type select v[100001]; ^ user.cpp:12:20: error: expected ‘)’ before ‘a’ int compare(select a,select b){ ^ user.cpp:12:29: error: expected ‘)’ before ‘b’ int compare(select a,select b){ ^ user.cpp:12:30: error: expression list treated as compound expression in initializer [-fpermissive] int compare(select a,select b){ ^ user.cpp:12:30: warning: left operand of comma operator is a reference, not call, to function ‘select’ [-Waddress] user.cpp:12:30: warning: left operand of comma operator has no effect [-Wunused-value] user.cpp:12:30: error: invalid conversion from ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ to ‘int’ [-fpermissive] user.cpp:12:31: error: expected ‘,’ or ‘;’ before ‘{’ token int compare(select a,select b){ ^ user.cpp: In function ‘int main()’: user.cpp:20:20: error: ‘v’ was not declared in this scope fscanf(f,"%d",&v[i].nr); ^ user.cpp:33:15: error: ‘v’ was not declared in this scope if(v[j].nr<mmin) {mmin=v[j].nr;w=j;} ^ user.cpp:36:28: error: ‘v’ was not declared in this scope fprintf(g,"%d ",v[w].i2); ^ user.cpp:41:22: error: ‘v’ was not declared in this scope for(i=1;i<=n;i++) if(v[i].nr>mmax){mmax=v[i].nr;w=i;} ^ user.cpp:43:7: error: ‘v’ was not declared in this scope sort (v+1,v+n+1,compare); ^ user.cpp:18:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&n,&p); ^

Ceva nu functioneaza?