Borderou de evaluare (job #1251073)
Utilizator | Data | 28 octombrie 2014 21:58:06 | |
---|---|---|---|
Problema | Spirala | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:22: error: expression list treated as compound expression in initializer [-fpermissive]
int fscanf(f,"%d",&m);
^
user.cpp:9:22: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:9:22: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp:9:22: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
user.cpp:11:13: error: redeclaration of ‘int fscanf’
int fscanf(f,"%d",&n);
^
user.cpp:9:6: error: ‘int fscanf’ previously declared here
int fscanf(f,"%d",&m);
^
user.cpp:14:30: error: expression list treated as compound expression in initializer [-fpermissive]
int fscanf(f,"%d",&a[i][j]);
^
user.cpp:14:30: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:14:30: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp:14:30: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
user.cpp:14:8: warning: unused variable ‘fscanf’ [-Wunused-variable]
int fscanf(f,"%d",&a[i][j]);
^
user.cpp:74:27: error: expression list treated as compound expression in initializer [-fpermissive]
int fprintf(g,"da \n %d",q);
^
user.cpp:74:27: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:74:27: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp:74:5: warning: unused variable ‘fprintf’ [-Wunused-variable]
int fprintf(g,"da \n %d",q);
^
user.cpp:76:35: error: expression list treated as compound expression in initializer [-fpermissive]
int fprintf(g,"\n nu \n %d %d",l,y);
^
user.cpp:76:35: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:76:35: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp:76:35: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp:76:5: warning: unused variable ‘fprintf’ [-Wunused-variable]
int fprintf(g,"\n nu \n %d %d",l,y);
^
user.cpp:77:13: error: invalid conversion from ‘FILE* {aka _IO_FILE*}’ to ‘int’ [-fpermissive]
int fclose(f);
^
user.cpp:78:13: error: redeclaration of ‘int fclose’
int fclose(g);
^
user.cpp:77:5: error: ‘int fclose’ previously declared here
int fclose(f);
^
user.cpp:9:6: warning: unused variable ‘fscanf’ [-Wunused-variable]
int fscanf(f,"%d",&m);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !