Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ➜ build git:(main) ✗ ninja -j1
- [1/9] Building CXX object CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o
- FAILED: CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o
- /Library/Developer/CommandLineTools/usr/bin/c++ -std=gnu++20 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -MD -MT CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o -MF CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o.d -o CMakeFiles/labyrinth.dir/code/is_path_to_freedom.cpp.o -c /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp
- In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:552:
- /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:122:14: error: arithmetic on a pointer to an incomplete type 'maze_cell'
- __i_ += __n;
- ~~~~ ^
- /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:117:38: note: in instantiation of member function 'std::__wrap_iter<maze_cell *>::operator+=' requested here
- {__wrap_iter __w(*this); __w += __n; return __w;}
- ^
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:44:29: note: in instantiation of member function 'std::__wrap_iter<maze_cell *>::operator+' requested here
- return data.begin() + row * columns + column;
- ^
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
- struct maze_cell;
- ^
- In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:552:
- /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:122:14: error: arithmetic on a pointer to an incomplete type 'const maze_cell'
- __i_ += __n;
- ~~~~ ^
- /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:117:38: note: in instantiation of member function 'std::__wrap_iter<const maze_cell *>::operator+=' requested here
- {__wrap_iter __w(*this); __w += __n; return __w;}
- ^
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:48:29: note: in instantiation of member function 'std::__wrap_iter<const maze_cell *>::operator+' requested here
- return data.begin() + row * columns + column;
- ^
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
- struct maze_cell;
- ^
- In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:576:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string_view:1027:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/functional:515:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
- /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/vector:546:53: error: arithmetic on a pointer to an incomplete type 'maze_cell'
- {return static_cast<size_type>(this->__end_ - this->__begin_);}
- ~~~~~~~~~~~~ ^
- /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/vector:1459:26: note: in instantiation of member function 'std::vector<maze_cell>::size' requested here
- _LIBCPP_ASSERT(__n < size(), "vector[] index out of bounds");
- ^
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:62:20: note: in instantiation of member function 'std::vector<maze_cell>::operator[]' requested here
- return data[index];
- ^
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
- struct maze_cell;
- ^
- In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:576:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string_view:1027:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/functional:515:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
- /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/vector:1460:12: error: subscript of pointer to incomplete type 'maze_cell'
- return this->__begin_[__n];
- ^~~~~~~~~~~~~~
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:62:20: note: in instantiation of member function 'std::vector<maze_cell>::operator[]' requested here
- return data[index];
- ^
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
- struct maze_cell;
- ^
- In file included from /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/is_path_to_freedom.cpp:2:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:576:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string_view:1027:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/functional:515:
- In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
- /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/vector:1470:12: error: subscript of pointer to incomplete type 'maze_cell'
- return this->__begin_[__n];
- ^~~~~~~~~~~~~~
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:66:20: note: in instantiation of member function 'std::vector<maze_cell>::operator[]' requested here
- return data[index];
- ^
- /Users/shreyasatre/studyspace/csc3380/csc3380-fall-2023-assignment4-SAtacker/code/labyrinth.hpp:17:8: note: forward declaration of 'maze_cell'
- struct maze_cell;
- ^
- 5 errors generated.
- ninja: build stopped: subcommand failed.
- ➜ build git:(main) ✗
Advertisement
Add Comment
Please, Sign In to add comment