Borderou de evaluare (job #1485943)

Utilizator SilviuIIon Silviu SilviuI Data 13 septembrie 2015 13:58:29
Problema Interclasare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:24:26: error: too many arguments to function ‘int cauta(int, int, int)’ j=cauta(1,v1,t[i],sol); b[i]=j; ^ user.cpp:6:5: note: declared here int cauta(int st,int dr,int x) ^ user.cpp:29:26: error: too many arguments to function ‘int cauta(int, int, int)’ j=cauta(1,v2,v[i],sol); b[i]=j; ^ user.cpp:6:5: note: declared here int cauta(int st,int dr,int x) ^ user.cpp:16:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interclasare.in","r",stdin); ^ user.cpp:17:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interclasare.out","w",stdout); ^ user.cpp:18:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:19:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=1;i<=n;i++) scanf("%d",&t[i]); ^ user.cpp:20:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); ^ user.cpp:21:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=1;i<=m;i++) scanf("%d",&v[i]); ^

Ceva nu functioneaza?