Borderou de evaluare (job #1647314)
Utilizator | Data | 10 martie 2016 19:56:04 | |
---|---|---|---|
Problema | Custi | 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:25:11: error: invalid initialization of reference of type ‘int&’ from expression of type ‘short int’
read(n);
^
user.cpp:11:13: error: in passing argument 1 of ‘void read(int&)’
inline void read(int &nr)
^
user.cpp:26:46: error: invalid initialization of reference of type ‘int&’ from expression of type ‘short int’
for(i=1;i<=n;i++) for(j=1;j<=n;j++) {read(x);m[i][j]=x+m[i][j-1];}
^
user.cpp:11:13: error: in passing argument 1 of ‘void read(int&)’
inline void read(int &nr)
^
user.cpp:24:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buff,1,22000,stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !