Borderou de evaluare (job #1351951)
Utilizator | Data | 21 februarie 2015 11:46:24 | |
---|---|---|---|
Problema | Por Costel si Azerah | Status | done |
Runda | ONIS 2015, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:11: error: redeclaration of ‘int i’
int p=n,i=0;
^
user.cpp:23:10: error: ‘int i’ previously declared here
for(int i=0;i<t;i++){
^
user.cpp:20:10: warning: unused variable ‘x’ [-Wunused-variable]
int t,n,x,*s;
^
user.cpp:22:19: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&t);
^
user.cpp:24:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,s);
^
user.cpp:29:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",s+j);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !