Borderou de evaluare (job #2203606)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 12 mai 2018 18:53:40
Problema Tri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool cmpA(int, int)’: user.cpp:32:75: error: ‘atan2’ was not declared in this scope return atan2(P[a].second - P[pivot].second,P[a].first - P[pivot].first) < atan2(P[b].second - P[pivot].second,P[b].first - P[pivot].first); ^ user.cpp: In function ‘int main()’: user.cpp:35:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&N); ^ user.cpp:37:51: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&P[i].first,&P[i].second); ^ user.cpp:55:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&M); ^ user.cpp:58:53: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d %d",&tmp[0],&tmp[1],&tmp[2]); ^

Ceva nu functioneaza?