Borderou de evaluare (job #2328812)
Utilizator | Data | 26 ianuarie 2019 10:52:36 | |
---|---|---|---|
Problema | Holiday | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:12: error: 'r' was not declared in this scope
for(d=b-a;r=c%d;c=d,d=r);
^
main.cpp:5:92: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("holiday.in","r",stdin),freopen("holiday.out","w",stdout),scanf("%d%d%d",&a,&b,&c);
^
main.cpp:5:92: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:5:92: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !