Borderou de evaluare (job #2734089)
Utilizator | Data | 31 martie 2021 13:00:53 | |
---|---|---|---|
Problema | Radio | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:33:66: error: 'sqrt' was not declared in this scope
dr=mat[v[l].x][v[l].y]+(int)sqrt((double)diff);
^
main.cpp:44:67: error: 'sqrt' was not declared in this scope
dr=(int)sqrt((double)(int)v[l].r*v[l].r-dist2d)+mat[v[l].x][v[l].y];
^
main.cpp:37:25: warning: unused variable 'diff' [-Wunused-variable]
int diff=(int)v[l].r*v[l].r-dist2d-(mat[v[l].x][v[l].y]-mat[i][j])*(mat[v[l].x][v[l].y]-mat[i][j]);
^~~~
main.cpp:11:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
{ freopen("radio.in", "r" , stdin);
^
main.cpp:12:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("radio.out", "w", stdout);
^
main.cpp:14:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &m, &n, &k);
^
main.cpp:17:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &mat[i][j]);
^
main.cpp:19:52: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%lf", &v[i].x, &v[i].y, &v[i].r);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !