Borderou de evaluare (job #2227221)
Utilizator | Data | 31 iulie 2018 15:40:51 | |
---|---|---|---|
Problema | Prea Simplu! | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int ve(int, int)’:
user.cpp:61:19: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
cmmdc2(a,b,f,g);
^
user.cpp:41:6: note: initializing argument 3 of ‘void cmmdc2(int, int, int&, int&)’
void cmmdc2(int a,int b,int &f1,int &g1)
^~~~~~
user.cpp: In function ‘unsigned int getint()’:
user.cpp:19:40: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buf,maxb,1,fin),ptr=0;
^
user.cpp:24:40: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buf,maxb,1,fin),ptr=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !