Borderou de evaluare (job #3145005)

Utilizator daristyleBejan Darius-Ramon daristyle Data 11 august 2023 20:21:05
Problema Geometry Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:20: error: declaration does not declare anything [-fpermissive] 8 | #define short long long; | ^~~~ main.cpp:12:17: note: in expansion of macro 'short' 12 | short x, y; | ^~~~~ main.cpp:12:23: error: 'x' does not name a type 12 | short x, y; | ^ main.cpp: In member function 'bool Point::operator!=(const Point&) const': main.cpp:15:32: error: 'x' was not declared in this scope 15 | return x != other.x || y != other.y; | ^ main.cpp:15:43: error: 'const struct Point' has no member named 'x' 15 | return x != other.x || y != other.y; | ^ main.cpp:15:48: error: 'y' was not declared in this scope 15 | return x != other.x || y != other.y; | ^ main.cpp:15:59: error: 'const struct Point' has no member named 'y' 15 | return x != other.x || y != other.y; | ^ main.cpp: In member function 'bool Point::operator==(const Point&) const': main.cpp:19:32: error: 'x' was not declared in this scope 19 | return x == other.x && y == other.y; | ^ main.cpp:19:43: error: 'const struct Point' has no member named 'x' 19 | return x == other.x && y == other.y; | ^ main.cpp:19:48: error: 'y' was not declared in this scope 19 | return x == other.x && y == other.y; | ^ main.cpp:19:59: error: 'const struct Point' has no member named 'y' 19 | return x == other.x && y == other.y; | ^ main.cpp: In function 'std::ifstream& operator>>(std::ifstream&, Point&)': main.cpp:23:37: error: 'struct Point' has no member named 'x' 23 | fin >> self.x >> self.y; | ^ main.cpp:23:47: error: 'struct Point' has no member named 'y' 23 | fin >> self.x >> self.y; | ^ main.cpp: At global scope: main.cpp:40:60: error: too many initializers for 'const Point' 40 | const Point NO_INTERSECTION = {COORD_MAX + 1, COORD_MAX + 1}; | ^ main.cpp:41:55: error: too many initializers for 'const Point' 41 | const Point ALL_POINTS = {COORD_MAX + 2, COORD_MAX + 2}; | ^ main.cpp:8:20: error: declaration does not declare anything [-fpermissive] Non zero exit status: 1

Ceva nu functioneaza?