Borderou de evaluare (job #1261800)
Utilizator | Data | 12 noiembrie 2014 18:26:41 | |
---|---|---|---|
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:10: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:13:30: error: expression list treated as compound expression in initializer [-fpermissive]
int fscanf(f,"%d",&a[i][j]);
^
user.cpp:13:30: warning: left operand of comma operator has no effect [-Wunused-value]
user.cpp:13:30: warning: right operand of comma operator has no effect [-Wunused-value]
user.cpp:13:30: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
user.cpp:13:8: warning: unused variable ‘fscanf’ [-Wunused-variable]
int fscanf(f,"%d",&a[i][j]);
^
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 !