Borderou de evaluare (job #1997982)
Utilizator | Data | 5 iulie 2017 23:52:28 | |
---|---|---|---|
Problema | Nunta | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:2:50: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
void fibo( short int n, short int a ,short int &b )
^
user.c: In function ‘main’:
user.c:17:7: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘short int *’ [-Wformat=]
scanf("%d",&n);
^
user.c:22:5: warning: implicit declaration of function ‘fibo’ [-Wimplicit-function-declaration]
fibo(n,a,b);
^
user.c:15:20: warning: unused variable ‘fib2’ [-Wunused-variable]
char fib1[500],fib2[500];
^
user.c:15:10: warning: unused variable ‘fib1’ [-Wunused-variable]
char fib1[500],fib2[500];
^
user.c:13:13: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("nunta.in","r",stdin);
^
user.c:14:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("nunta.out","w",stdout);
^
user.c:17:12: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !