Borderou de evaluare (job #1227835)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 11 septembrie 2014 22:09:48
Problema Rubarba Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘double panta(std::pair<double, double>, std::pair<double, double>)’: user.cpp:60:22: error: ‘A’ was not declared in this scope return (double) (A.y - B.y) / (A.x - B.x); ^ user.cpp:60:28: error: ‘B’ was not declared in this scope return (double) (A.y - B.y) / (A.x - B.x); ^ user.cpp: In function ‘double Perp(std::pair<double, double>, std::pair<double, double>)’: user.cpp:64:14: error: ‘A’ was not declared in this scope if(panta(A, B) == INF) ^ user.cpp:64:17: error: ‘B’ was not declared in this scope if(panta(A, B) == INF) ^ user.cpp:66:31: error: ‘A’ was not declared in this scope return (double) 1 / panta(A, B); ^ user.cpp:66:34: error: ‘B’ was not declared in this scope return (double) 1 / panta(A, B); ^ user.cpp: In function ‘double solve(std::pair<double, double>*)’: user.cpp:74:32: error: ‘perp’ was not declared in this scope double Perp = perp(A, B); ^ user.cpp: In function ‘double panta(std::pair<double, double>, std::pair<double, double>)’: user.cpp:61:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘double Perp(std::pair<double, double>, std::pair<double, double>)’: user.cpp:67:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:91:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rubarba.in", "r", stdin); ^ user.cpp:92:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rubarba.out", "w", stdout); ^ user.cpp:93:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:95:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf %lf", &a[i].x, &a[i].y); ^

Ceva nu functioneaza?