Borderou de evaluare (job #1880234)

Utilizator FlowstaticBejan Irina Flowstatic Data 15 februarie 2017 17:10:18
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int comp(const punct&, const punct&)’: user.cpp:15:26: error: ‘Aria’ was not declared in this scope return (Aria(a,mini,b) > 0); ^ user.cpp: At global scope: user.cpp:18:20: error: ‘a’ has not been declared double Aria(punct, a punct b, punct c) ^ user.cpp:18:28: error: expected ‘,’ or ‘...’ before ‘b’ double Aria(punct, a punct b, punct c) ^ user.cpp: In function ‘double Aria(punct, int)’: user.cpp:20:13: error: ‘a’ was not declared in this scope return (a.x - b.x) * (c.y - b.y) - (a.y - b.y) * (c.x - b.x); ^ user.cpp:20:19: error: ‘b’ was not declared in this scope return (a.x - b.x) * (c.y - b.y) - (a.y - b.y) * (c.x - b.x); ^ user.cpp:20:27: error: ‘c’ was not declared in this scope return (a.x - b.x) * (c.y - b.y) - (a.y - b.y) * (c.x - b.x); ^ user.cpp: In function ‘int main()’: user.cpp:26:10: error: ‘N’ was not declared in this scope fin>>N; ^ user.cpp:28:23: error: ‘INF’ was not declared in this scope mini.x = mini.y = INF; ^ user.cpp:41:28: error: ‘sort’ was not declared in this scope sort(pct+2,pct+N+1,comp); ^ user.cpp:48:56: error: cannot convert ‘punct’ to ‘int’ for argument ‘2’ to ‘double Aria(punct, int)’ while(po > 2 && Aria(st[po-2], st[po-1], pct[i])>=0) ^ user.cpp:55:25: error: ‘setprecision’ was not declared in this scope fout<<setprecision(6)<<fixed; ^ user.cpp:56:9: error: redeclaration of ‘int i’ int i; ^ user.cpp:25:9: error: ‘int i’ previously declared here int i,poz; ^ user.cpp: In function ‘int comp(const punct&, const punct&)’: user.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘double Aria(punct, int)’: user.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type] }

Ceva nu functioneaza?