Borderou de evaluare (job #2285854)
Utilizator | Data | 19 noiembrie 2018 13:37:30 | |
---|---|---|---|
Problema | Stalpi3 | 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:78:111: error: 'sqrt' was not declared in this scope
rez=rez+sqrt((double)d*d+(double)abs(a[sol[i].x].dist-b[sol[i].y].dist)*abs(a[sol[i].x].dist-b[sol[i].y].dist));
^
main.cpp:40:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("stalpi3.in","r",stdin);
^
main.cpp:41:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("stalpi3.out","w",stdout);
^
main.cpp:43:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&d);
^
main.cpp:45:64: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a[i].dist,&a[i].col),a[i].poz=i,k=max(k,a[i].col);
^
main.cpp:47:46: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&b[i].dist,&b[i].col),b[i].poz=i;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !