Borderou de evaluare (job #1139799)
Utilizator | Data | 11 martie 2014 14:59:16 | |
---|---|---|---|
Problema | Roata | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:37: error: conflicting declaration ‘int p’
int c[100001],o[100001],p[100001],n,p,x,i;
^
user.cpp:3:25: error: ‘p’ has a previous declaration as ‘int p [100001]’
int c[100001],o[100001],p[100001],n,p,x,i;
^
user.cpp: In function ‘int main()’:
user.cpp:7:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int (*)[100001]’ [-Wformat=]
fscanf(f,"%d%d",&n,&p);
^
user.cpp:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(i=1;i<=p;i++){fscanf(f,"%d",&x);p[i]=x;t+=x;}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !