Borderou de evaluare (job #2378036)
Utilizator | Data | 11 martie 2019 16:29:04 | |
---|---|---|---|
Problema | Inv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:24: error: redefinition of 'int x'
int x, ssol, sum,b,p,i,x,n,aib[1001*101];
^
main.cpp:6:5: note: 'int x' previously declared here
int x, ssol, sum,b,p,i,x,n,aib[1001*101];
^
main.cpp: In function 'int main()':
main.cpp:29:10: warning: unused variable 'm' [-Wunused-variable]
int n,m;
^
main.cpp:27:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("inv.in","r",stdin);
^
main.cpp:28:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("inv.out","w",stdout);
^
main.cpp:30:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:31:36: 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",&x);
^
main.cpp:39:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&p);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !