Borderou de evaluare (job #2021082)
Utilizator | Data | 12 septembrie 2017 17:29:44 | |
---|---|---|---|
Problema | Tramvai | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read()’:
user.cpp:47:28: error: ‘ls1’ was not declared in this scope
scanf("%lf%lf%lf%lf", &ls1, &ls2, &lf1, &lf2);
^
user.cpp:47:34: error: ‘ls2’ was not declared in this scope
scanf("%lf%lf%lf%lf", &ls1, &ls2, &lf1, &lf2);
^
user.cpp:47:40: error: ‘lf1’ was not declared in this scope
scanf("%lf%lf%lf%lf", &ls1, &ls2, &lf1, &lf2);
^
user.cpp:47:46: error: ‘lf2’ was not declared in this scope
scanf("%lf%lf%lf%lf", &ls1, &ls2, &lf1, &lf2);
^
user.cpp:36:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:40:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%lf%lf", &X1, &Y1, &X2, &Y2);
^
user.cpp: In function ‘int main()’:
user.cpp:71:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("tramvai.in", "r", stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !