Advertisement
Guest User

Untitled

a guest
Jul 16th, 2016
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.89 KB | None | 0 0
  1.  
  2. -------------- Build: Debug in ppp12 (compiler: GNU GCC Compiler)---------------
  3.  
  4. g++ -I/usr/include/freetype2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_THREAD_SAFE -D_REENTRANT -std=c++14 -g -std=c++14 -c /home/username/codeblocks_proj/ppp12/Graph.cpp -o obj/Debug/Graph.o
  5. In file included from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:0:
  6. /home/username/codeblocks_proj/ppp12/Graph.h:89:2: error: ‘vector’ does not name a type
  7. vector<T*> v;
  8. ^
  9. /home/username/codeblocks_proj/ppp12/Graph.h:90:2: error: ‘vector’ does not name a type
  10. vector<T*> owned;
  11. ^
  12. /home/username/codeblocks_proj/ppp12/Graph.h: In destructor ‘Graph_lib::Vector_ref<T>::~Vector_ref()’:
  13. /home/username/codeblocks_proj/ppp12/Graph.h:102:34: error: ‘owned’ was not declared in this scope
  14. ~Vector_ref() { for (int i=0; i<owned.size(); ++i) delete owned[i]; }
  15. ^
  16. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘void Graph_lib::Vector_ref<T>::push_back(T&)’:
  17. /home/username/codeblocks_proj/ppp12/Graph.h:104:25: error: ‘v’ was not declared in this scope
  18. void push_back(T& s) { v.push_back(&s); }
  19. ^
  20. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘void Graph_lib::Vector_ref<T>::push_back(T*)’:
  21. /home/username/codeblocks_proj/ppp12/Graph.h:105:25: error: ‘v’ was not declared in this scope
  22. void push_back(T* p) { v.push_back(p); owned.push_back(p); }
  23. ^
  24. /home/username/codeblocks_proj/ppp12/Graph.h:105:41: error: ‘owned’ was not declared in this scope
  25. void push_back(T* p) { v.push_back(p); owned.push_back(p); }
  26. ^
  27. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘T& Graph_lib::Vector_ref<T>::operator[](int)’:
  28. /home/username/codeblocks_proj/ppp12/Graph.h:109:33: error: ‘v’ was not declared in this scope
  29. T& operator[](int i) { return *v[i]; }
  30. ^
  31. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘const T& Graph_lib::Vector_ref<T>::operator[](int) const’:
  32. /home/username/codeblocks_proj/ppp12/Graph.h:110:45: error: ‘v’ was not declared in this scope
  33. const T& operator[](int i) const { return *v[i]; }
  34. ^
  35. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘int Graph_lib::Vector_ref<T>::size() const’:
  36. /home/username/codeblocks_proj/ppp12/Graph.h:111:28: error: ‘v’ was not declared in this scope
  37. int size() const { return v.size(); }
  38. ^
  39. /home/username/codeblocks_proj/ppp12/Graph.h: At global scope:
  40. /home/username/codeblocks_proj/ppp12/Graph.h:119:24: error: expected ‘)’ before ‘<’ token
  41. Shape(initializer_list<Point> lst); // add() the Points to this Shape
  42. ^
  43. /home/username/codeblocks_proj/ppp12/Graph.h:158:2: error: ‘vector’ does not name a type
  44. vector<Point> points; // not used by all shapes
  45. ^
  46. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘void Graph_lib::Shape::add(Graph_lib::Point)’:
  47. /home/username/codeblocks_proj/ppp12/Graph.h:125:21: error: ‘points’ was not declared in this scope
  48. void add(Point p){ points.push_back(p); }
  49. ^
  50. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘void Graph_lib::Shape::set_point(int, Graph_lib::Point)’:
  51. /home/username/codeblocks_proj/ppp12/Graph.h:126:35: error: ‘points’ was not declared in this scope
  52. void set_point(int i, Point p) { points[i] = p; }
  53. ^
  54. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘Graph_lib::Point Graph_lib::Shape::point(int) const’:
  55. /home/username/codeblocks_proj/ppp12/Graph.h:143:36: error: ‘points’ was not declared in this scope
  56. Point point(int i) const { return points[i]; }
  57. ^
  58. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘int Graph_lib::Shape::number_of_points() const’:
  59. /home/username/codeblocks_proj/ppp12/Graph.h:144:44: error: ‘points’ was not declared in this scope
  60. int number_of_points() const { return int(points.size()); }
  61. ^
  62. /home/username/codeblocks_proj/ppp12/Graph.h: In constructor ‘Graph_lib::Rectangle::Rectangle(Graph_lib::Point, int, int)’:
  63. /home/username/codeblocks_proj/ppp12/Graph.h:192:61: error: ‘error’ was not declared in this scope
  64. if (h<=0 || w<=0) error("Bad rectangle: non-positive side");
  65. ^
  66. /home/username/codeblocks_proj/ppp12/Graph.h: In constructor ‘Graph_lib::Rectangle::Rectangle(Graph_lib::Point, Graph_lib::Point)’:
  67. /home/username/codeblocks_proj/ppp12/Graph.h:197:71: error: ‘error’ was not declared in this scope
  68. if (h<=0 || w<=0) error("Bad rectangle: first point is not top left");
  69. ^
  70. /home/username/codeblocks_proj/ppp12/Graph.h: At global scope:
  71. /home/username/codeblocks_proj/ppp12/Graph.h:238:24: error: expected ‘)’ before ‘<’ token
  72. Lines(initializer_list<Point> lst) : Shape{lst} { if (lst.size() % 2) error("odd number of points for Lines"); }
  73. ^
  74. /home/username/codeblocks_proj/ppp12/Graph.h:238:50: error: expected unqualified-id before ‘{’ token
  75. Lines(initializer_list<Point> lst) : Shape{lst} { if (lst.size() % 2) error("odd number of points for Lines"); }
  76. ^
  77. /home/username/codeblocks_proj/ppp12/Graph.h:245:22: error: ‘string’ does not name a type
  78. Text(Point x, const string& s) : lab{ s } { add(x); }
  79. ^
  80. /home/username/codeblocks_proj/ppp12/Graph.h:249:23: error: ‘string’ does not name a type
  81. void set_label(const string& s) { lab = s; }
  82. ^
  83. /home/username/codeblocks_proj/ppp12/Graph.h:250:2: error: ‘string’ does not name a type
  84. string label() const { return lab; }
  85. ^
  86. /home/username/codeblocks_proj/ppp12/Graph.h:258:2: error: ‘string’ does not name a type
  87. string lab; // label
  88. ^
  89. /home/username/codeblocks_proj/ppp12/Graph.h: In constructor ‘Graph_lib::Text::Text(Graph_lib::Point, const int&)’:
  90. /home/username/codeblocks_proj/ppp12/Graph.h:245:35: error: class ‘Graph_lib::Text’ does not have any field named ‘lab’
  91. Text(Point x, const string& s) : lab{ s } { add(x); }
  92. ^
  93. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘void Graph_lib::Text::set_label(const int&)’:
  94. /home/username/codeblocks_proj/ppp12/Graph.h:249:36: error: ‘lab’ was not declared in this scope
  95. void set_label(const string& s) { lab = s; }
  96. ^
  97. /home/username/codeblocks_proj/ppp12/Graph.h: At global scope:
  98. /home/username/codeblocks_proj/ppp12/Graph.h:267:70: error: ‘string’ has not been declared
  99. Axis(Orientation d, Point xy, int length, int nummber_of_notches=0, string label = "");
  100. ^
  101. /home/username/codeblocks_proj/ppp12/Graph.h:267:85: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
  102. Axis(Orientation d, Point xy, int length, int nummber_of_notches=0, string label = "");
  103. ^
  104. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘Graph_lib::Point Graph_lib::Ellipse::focus1() const’:
  105. /home/username/codeblocks_proj/ppp12/Graph.h:306:72: error: ‘sqrt’ was not declared in this scope
  106. Point focus1() const { return{ center().x + int(sqrt(double(w*w - h*h))), center().y }; }
  107. ^
  108. /home/username/codeblocks_proj/ppp12/Graph.h:306:87: error: could not convert ‘{<expression error>, Graph_lib::Ellipse::center().Graph_lib::Point::y}’ from ‘<brace-enclosed initializer list>’ to ‘Graph_lib::Point’
  109. Point focus1() const { return{ center().x + int(sqrt(double(w*w - h*h))), center().y }; }
  110. ^
  111. /home/username/codeblocks_proj/ppp12/Graph.h: In member function ‘Graph_lib::Point Graph_lib::Ellipse::focus2() const’:
  112. /home/username/codeblocks_proj/ppp12/Graph.h:307:72: error: ‘sqrt’ was not declared in this scope
  113. Point focus2() const { return{ center().x - int(sqrt(double(w*w - h*h))), center().y }; }
  114. ^
  115. /home/username/codeblocks_proj/ppp12/Graph.h:307:87: error: could not convert ‘{<expression error>, Graph_lib::Ellipse::center().Graph_lib::Point::y}’ from ‘<brace-enclosed initializer list>’ to ‘Graph_lib::Point’
  116. Point focus2() const { return{ center().x - int(sqrt(double(w*w - h*h))), center().y }; }
  117. ^
  118. /home/username/codeblocks_proj/ppp12/Graph.h: At global scope:
  119. /home/username/codeblocks_proj/ppp12/Graph.h:326:24: error: ‘string’ does not name a type
  120. Marked_polyline(const string& m) :mark(m) { }
  121. ^
  122. /home/username/codeblocks_proj/ppp12/Graph.h:329:2: error: ‘string’ does not name a type
  123. string mark;
  124. ^
  125. /home/username/codeblocks_proj/ppp12/Graph.h: In constructor ‘Graph_lib::Marked_polyline::Marked_polyline(const int&)’:
  126. /home/username/codeblocks_proj/ppp12/Graph.h:326:36: error: class ‘Graph_lib::Marked_polyline’ does not have any field named ‘mark’
  127. Marked_polyline(const string& m) :mark(m) { }
  128. ^
  129. /home/username/codeblocks_proj/ppp12/Graph.h: At global scope:
  130. /home/username/codeblocks_proj/ppp12/Graph.h:333:14: error: ‘string’ does not name a type
  131. Marks(const string& m) :Marked_polyline(m)
  132. ^
  133. /home/username/codeblocks_proj/ppp12/Graph.h: In constructor ‘Graph_lib::Mark::Mark(Graph_lib::Point, char)’:
  134. /home/username/codeblocks_proj/ppp12/Graph.h:338:43: error: ‘string’ was not declared in this scope
  135. Mark(Point xy, char c) : Marks(string(1,c)) {add(xy); }
  136. ^
  137. /home/username/codeblocks_proj/ppp12/Graph.h: At global scope:
  138. /home/username/codeblocks_proj/ppp12/Graph.h:361:37: error: ‘string’ does not name a type
  139. Suffix::Encoding get_encoding(const string& s);
  140. ^
  141. /home/username/codeblocks_proj/ppp12/Graph.h:364:18: error: ‘string’ has not been declared
  142. Image(Point xy, string s, Suffix::Encoding e = Suffix::none);
  143. ^
  144. /home/username/codeblocks_proj/ppp12/Graph.cpp: In member function ‘virtual void Graph_lib::Shape::draw_lines() const’:
  145. /home/username/codeblocks_proj/ppp12/Graph.cpp:8:32: error: ‘points’ was not declared in this scope
  146. if (color().visibility() && 1<points.size()) // draw sole pixel?
  147. ^
  148. /home/username/codeblocks_proj/ppp12/Graph.cpp: At global scope:
  149. /home/username/codeblocks_proj/ppp12/Graph.cpp:27:8: error: ‘pair’ does not name a type
  150. inline pair<double,double> line_intersect(Point p1, Point p2, Point p3, Point p4, bool& parallel)
  151. ^
  152. /home/username/codeblocks_proj/ppp12/Graph.cpp: In function ‘bool Graph_lib::line_segment_intersect(Graph_lib::Point, Graph_lib::Point, Graph_lib::Point, Graph_lib::Point, Graph_lib::Point&)’:
  153. /home/username/codeblocks_proj/ppp12/Graph.cpp:54:4: error: ‘pair’ was not declared in this scope
  154. pair<double,double> u = line_intersect(p1,p2,p3,p4,parallel);
  155. ^
  156. /home/username/codeblocks_proj/ppp12/Graph.cpp:54:4: note: suggested alternative:
  157. In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0,
  158. from /usr/include/c++/5/vector:60,
  159. from /home/username/codeblocks_proj/ppp12/Graph.h:6,
  160. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  161. /usr/include/c++/5/bits/stl_pair.h:96:12: note: ‘std::pair’
  162. struct pair
  163. ^
  164. /home/username/codeblocks_proj/ppp12/Graph.cpp:54:9: error: expected primary-expression before ‘double’
  165. pair<double,double> u = line_intersect(p1,p2,p3,p4,parallel);
  166. ^
  167. /home/username/codeblocks_proj/ppp12/Graph.cpp:55:20: error: ‘u’ was not declared in this scope
  168. if (parallel || u.first < 0 || u.first > 1 || u.second < 0 || u.second > 1) return false;
  169. ^
  170. /home/username/codeblocks_proj/ppp12/Graph.cpp:56:28: error: ‘u’ was not declared in this scope
  171. intersection.x = p1.x + u.first*(p2.x - p1.x);
  172. ^
  173. /home/username/codeblocks_proj/ppp12/Graph.cpp: In member function ‘void Graph_lib::Polygon::add(Graph_lib::Point)’:
  174. /home/username/codeblocks_proj/ppp12/Graph.cpp:66:68: error: ‘error’ was not declared in this scope
  175. if (p==point(np-1)) error("polygon point equal to previous point");
  176. ^
  177. /home/username/codeblocks_proj/ppp12/Graph.cpp:68:64: error: ‘line_intersect’ was not declared in this scope
  178. line_intersect(point(np-1),p,point(np-2),point(np-1),parallel);
  179. ^
  180. /home/username/codeblocks_proj/ppp12/Graph.cpp:70:53: error: ‘error’ was not declared in this scope
  181. error("two polygon points lie in a straight line");
  182. ^
  183. /home/username/codeblocks_proj/ppp12/Graph.cpp:74:19: error: no matching function for call to ‘Graph_lib::Point::Point(int, int)’
  184. Point ignore(0,0);
  185. ^
  186. In file included from /home/username/codeblocks_proj/ppp12/Graph.h:5:0,
  187. from /home/username/codeblocks_proj/ppp12/Graph.cpp:1:
  188. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: Graph_lib::Point::Point()
  189. struct Point {
  190. ^
  191. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 0 arguments, 2 provided
  192. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(const Graph_lib::Point&)
  193. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  194. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate: constexpr Graph_lib::Point::Point(Graph_lib::Point&&)
  195. /home/username/codeblocks_proj/ppp12/Point.h:9:8: note: candidate expects 1 argument, 2 provided
  196. /home/username/codeblocks_proj/ppp12/Graph.cpp:76:32: error: ‘error’ was not declared in this scope
  197. error("intersect in polygon");
  198. ^
  199. /home/username/codeblocks_proj/ppp12/Graph.cpp: In member function ‘virtual void Graph_lib::Polygon::draw_lines() const’:
  200. /home/username/codeblocks_proj/ppp12/Graph.cpp:86:70: error: ‘error’ was not declared in this scope
  201. Process terminated with status 1 (0 minute(s), 0 second(s))
  202. 50 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement