Borderou de evaluare (job #1484098)
Utilizator | Data | 10 septembrie 2015 14:41:44 | |
---|---|---|---|
Problema | Shop | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘P’:
user.c:3:102: error: expected ‘)’ before ‘;’ token
long long P(long long x,long long n) { return !n?1:(n%2?x*P(x,(n-1)/2)*P(x,(n-1)/2):P(x,n/2)*P(x,n/2); }
^
user.c:3:104: error: expected ‘;’ before ‘}’ token
long long P(long long x,long long n) { return !n?1:(n%2?x*P(x,(n-1)/2)*P(x,(n-1)/2):P(x,n/2)*P(x,n/2); }
^
user.c: In function ‘main’:
user.c:5:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("shop.in","r",stdin),freopen("shop.out","w",stdout),scanf("%lld%lld%lld",&n,&c,&l);
^
user.c:5:41: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("shop.in","r",stdin),freopen("shop.out","w",stdout),scanf("%lld%lld%lld",&n,&c,&l);
^
user.c:5:70: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("shop.in","r",stdin),freopen("shop.out","w",stdout),scanf("%lld%lld%lld",&n,&c,&l);
^
user.c:7:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",a+i,b+i);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !