Borderou de evaluare (job #1483932)
Utilizator | Data | 10 septembrie 2015 10:32:27 | |
---|---|---|---|
Problema | Vase | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:4:6: error: conflicting types for ‘c’
char c[100001];
^
user.c:3:15: note: previous declaration of ‘c’ was here
long long g,s,c,d,v[100001];
^
user.c: In function ‘main’:
user.c:13:8: error: incompatible types when assigning to type ‘char[100001]’ from type ‘long long int’
c=-s-v[x]/2,d=-s+v[x]/2;
^
user.c:13:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c=-s-v[x]/2,d=-s+v[x]/2;
^
user.c:15:8: error: incompatible types when assigning to type ‘char[100001]’ from type ‘long long int’
c=s-v[x]/2,d=s+v[x]/2;
^
user.c:15:17: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c=s-v[x]/2,d=s+v[x]/2;
^
user.c:18:8: error: invalid operands to binary + (have ‘char[100001]’ and ‘long long int’)
c+=v[i]/2,d+=v[i]/2;
^
user.c:18:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c+=v[i]/2,d+=v[i]/2;
^
user.c:20:8: error: invalid operands to binary - (have ‘char[100001]’ and ‘long long int’)
c-=v[i]/2,d-=v[i]/2;
^
user.c:20:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
c-=v[i]/2,d-=v[i]/2;
^
user.c:22:33: error: wrong type argument to unary minus
printf("%lld S\n%lld S\n",-c,-d);
^
user.c:24:9: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘char *’ [-Wformat=]
printf("%lld D\n%lld D\n",d,c);
^
user.c:26:35: error: wrong type argument to unary minus
printf("%lld S\n%lld D\n",-c,d);
^
user.c:6:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vase.in","r",stdin),freopen("vase.out","w",stdout),scanf("%d",&n);
^
user.c:6:38: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vase.in","r",stdin),freopen("vase.out","w",stdout),scanf("%d",&n);
^
user.c:6:67: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vase.in","r",stdin),freopen("vase.out","w",stdout),scanf("%d",&n);
^
user.c:8:12: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !