Borderou de evaluare (job #1673520)
Utilizator | Data | 3 aprilie 2016 21:39:39 | |
---|---|---|---|
Problema | Maxpal | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int calc(int, int)’:
user.cpp:80:25: error: invalid initialization of reference of type ‘int&’ from expression of type ‘short int’
int &ret = lgmax[st][dr];
^
user.cpp: In function ‘int main()’:
user.cpp:36:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
user.cpp:37:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;++i) fscanf(fin, "%d", v+i);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !