Borderou de evaluare (job #1716338)
Utilizator | Data | 12 iunie 2016 15:48:35 | |
---|---|---|---|
Problema | Calatorie interplanetara | 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:43:12: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’
r(v[i].n),r(v[i].h);
^
user.cpp:13:6: error: in passing argument 1 of ‘void r(int&)’
void r(int &nr)
^
user.cpp:43:22: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’
r(v[i].n),r(v[i].h);
^
user.cpp:13:6: error: in passing argument 1 of ‘void r(int&)’
void r(int &nr)
^
user.cpp:33:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("test.in","r",stdin);
^
user.cpp:34:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("test.out","w",stdout);
^
user.cpp:35:25: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(f,1,MAX,stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !