Borderou de evaluare (job #2853217)

Utilizator Antonia_onisoruantonia onisoru Antonia_onisoru Data 20 februarie 2022 00:36:14
Problema Romb Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:3: error: expected primary-expression before 'int' 11 | int x, y; | ^~~ main.cpp:11:3: error: expected '}' before 'int' main.cpp:10:13: note: to match this '{' 10 | double point{ | ^ main.cpp:12:1: error: expected declaration before '}' token 12 | }; | ^ main.cpp:15:3: error: 'point' does not name a type 15 | point maxX, minX; | ^~~~~ main.cpp:16:3: error: 'point' does not name a type 16 | point maxY, minY; | ^~~~~ main.cpp: In function 'bool inArea(Romb, int, int)': main.cpp:33:7: warning: unused variable 'area1' [-Wunused-variable] 33 | int area1, area2, a, b, c; | ^~~~~ main.cpp:33:14: warning: unused variable 'area2' [-Wunused-variable] 33 | int area1, area2, a, b, c; | ^~~~~ main.cpp:33:21: warning: unused variable 'a' [-Wunused-variable] 33 | int area1, area2, a, b, c; | ^ main.cpp:33:24: warning: unused variable 'b' [-Wunused-variable] 33 | int area1, area2, a, b, c; | ^ main.cpp:33:27: warning: unused variable 'c' [-Wunused-variable] 33 | int area1, area2, a, b, c; | ^ main.cpp: In function 'Romb computeCoord(double, double, double, double)': main.cpp:41:8: error: 'struct Romb' has no member named 'maxX' 41 | romb.maxX = x + dx / 2; | ^~~~ main.cpp:42:8: error: 'struct Romb' has no member named 'minX' 42 | romb.minX = x - dx / 2; | ^~~~ main.cpp:43:8: error: 'struct Romb' has no member named 'maxY' 43 | romb.maxY = y + dy / 2; | ^~~~ main.cpp:44:8: error: 'struct Romb' has no member named 'minY' 44 | romb.minY = y - dy / 2; | ^~~~ main.cpp:46:31: error: 'struct Romb' has no member named 'maxX' 46 | out<<"computeCoord: "<<romb.maxX<<" "<<romb.minX<<" "<<romb.maxY<<" "<<romb.minY<<'\n'; | ^~~~ main.cpp:46:47: error: 'struct Romb' has no member named 'minX' 46 | out<<"computeCoord: "<<romb.maxX<<" "<<romb.minX<<" "<<romb.maxY<<" "<<romb.minY<<'\n'; Non zero exit status: 1

Ceva nu functioneaza?