Borderou de evaluare (job #2296160)
Utilizator | Data | 4 decembrie 2018 15:42:10 | |
---|---|---|---|
Problema | Trapez | 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:60:28: error: request for member 'x' in 'perechi[(++ nr)]', which is of non-class type 'double'
perechi[++ nr].x = (double)(x[i] - x[j]) / (y[i] - y[j]);
^
main.cpp:53:15: warning: unused variable 'a' [-Wunused-variable]
long long a, b, sum = 0;
^
main.cpp:53:18: warning: unused variable 'b' [-Wunused-variable]
long long a, b, sum = 0;
^
main.cpp:50:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trapez.in", "r", stdin);
^
main.cpp:51:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trapez.out", "w", stdout);
^
main.cpp:54:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:56:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x[i], &y[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !