Borderou de evaluare (job #2581681)
Utilizator | Data | 15 martie 2020 17:03:04 | |
---|---|---|---|
Problema | Triunghi2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:73:5: error: expected ';' before 'return'
return 0;
^~~~~~
main.cpp:38:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("triunghi2.in","r",stdin);
^
main.cpp:39:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("triunghi2.out","w",stdout);
^
main.cpp:41:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:43:131: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d%d%d",&fields[i].v1.x ,&fields[i].v1.y ,&fields[i].v2.x ,&fields[i].v2.y ,&fields[i].v3.x ,&fields[i].v3.y);
^
main.cpp:46:44: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&waterBank.x,&waterBank.y);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !