In file included from /in/compile/mylist.h:68:0,
from /in/compile/maintest.cpp:5:
/in/mylist_impl.h:24:6: error: 'template<class T> class List' used without template parameters
void List::removeAll(){
^~~~
/in/mylist_impl.h: In function 'void removeAll()':
/in/mylist_impl.h:25:12: error: 'T' was not declared in this scope
Node_t<T>* itr = first;
^
/in/mylist_impl.h:25:13: error: template argument 1 is invalid
Node_t<T>* itr = first;
^
/in/mylist_impl.h:25:22: error: 'first' was not declared in this scope
Node_t<T>* itr = first;
^~~~~
/in/mylist_impl.h:25:22: note: suggested alternative: 'List'
Node_t<T>* itr = first;
^~~~~
List
/in/mylist_impl.h:27:17: error: type/value mismatch at argument 1 in template parameter list for 'template<class T> struct Node_t'
Node_t<T>* trans = itr;
^
/in/mylist_impl.h:27:17: note: expected a type, got 'T'
/in/mylist_impl.h:28:20: error: request for member 'next' in '* itr', which is of non-class type 'int'
itr = itr->next;
^~~~
/in/mylist_impl.h: At global scope:
/in/mylist_impl.h:35:6: error: 'template<class T> class List' used without template parameters
void List::copyFrom(const List &l){
^~~~
/in/mylist_impl.h:35:21: error: template placeholder type 'const List' must be followed by a simple declarator-id
void List::copyFrom(const List &l){
^~~~~
In file included from /in/compile/maintest.cpp:5:0:
/in/compile/mylist.h:19:7: note: 'template<class T> class List' declared here
class List{
^~~~
In file included from /in/compile/mylist.h:68:0,
from /in/compile/maintest.cpp:5:
/in/mylist_impl.h:35:33: error: 'auto' parameter not permitted in this context
void List::copyFrom(const List &l){
^
/in/mylist_impl.h: In function 'void copyFrom()':
/in/mylist_impl.h:36:10: error: 'isEmpty' was not declared in this scope
if (!isEmpty()){
^~~~~~~
/in/mylist_impl.h:40:9: error: invalid use of 'this' in non-member function
this = l;
^~~~
/in/mylist_impl.h:40:16: error: 'l' was not declared in this scope
this = l;
^
/in/mylist_impl.h: At global scope:
/in/mylist_impl.h:49:6: error: 'template<class T> class List' used without template parameters
bool List::isEmpty() const{
^~~~
/in/mylist_impl.h:49:22: error: non-member function 'bool isEmpty()' cannot have cv-qualifier
bool List::isEmpty() const{
^~~~~
/in/mylist_impl.h: In function 'bool isEmpty()':
/in/mylist_impl.h:50:9: error: 'first' was not declared in this scope
if (first == nullptr && last == nullptr)
^~~~~
/in/mylist_impl.h:50:9: note: suggested alternative: 'List'
if (first == nullptr && last == nullptr)
^~~~~
List
/in/mylist_impl.h:50:29: error: 'last' was not declared in this scope
if (first == nullptr && last == nullptr)
^~~~
/in/mylist_impl.h:50:29: note: suggested alternative: 'List'
if (first == nullptr && last == nullptr)
^~~~
List
/in/mylist_impl.h: At global scope:
/in/mylist_impl.h:57:6: error: 'template<class T> class List' used without template parameters
void List::insertBack(T val){
^~~~
/in/mylist_impl.h:57:23: error: variable or field 'insertBack' declared void
void List::insertBack(T val){
^
/in/mylist_impl.h:57:23: error: 'T' was not declared in this scope
/in/mylist_impl.h:64:1: error: 'T' does not name a type
T List::removeFront(){
^
/in/mylist_impl.h:78:14: error: 'T' was not declared in this scope
const Node_t<T>* List::returnFront() const{
^
/in/mylist_impl.h:78:15: error: template argument 1 is invalid
const Node_t<T>* List::returnFront() const{
^
/in/mylist_impl.h:78:18: error: 'template<class T> class List' used without template parameters
const Node_t<T>* List::returnFront() const{
^~~~
/in/mylist_impl.h:78:38: error: non-member function 'const int* returnFront()' cannot have cv-qualifier
const Node_t<T>* List::returnFront() const{
^~~~~
/in/mylist_impl.h: In function 'const int* returnFront()':
/in/mylist_impl.h:79:12: error: 'first' was not declared in this scope
return first;
^~~~~
/in/mylist_impl.h:79:12: note: suggested alternative: 'List'
return first;
^~~~~
List
/in/mylist_impl.h: In function 'bool isLarger(const List<int>&, const List<int>&)':
/in/mylist_impl.h:90:38: error: invalid conversion from 'const Node_t<int>*' to 'Node_t<int>*' [-fpermissive]
Node_t<int>* itr1 = a.returnFront();
~~~~~~~~~~~~~^~
/in/mylist_impl.h:91:38: error: invalid conversion from 'const Node_t<int>*' to 'Node_t<int>*' [-fpermissive]
Node_t<int>* itr2 = b.returnFront();
~~~~~~~~~~~~~^~
/in/mylist_impl.h: In function 'List<int> add(const List<int>&, const List<int>&)':
/in/mylist_impl.h:130:38: error: invalid conversion from 'const Node_t<int>*' to 'Node_t<int>*' [-fpermissive]
Node_t<int>* itr1 = a.returnFront();
~~~~~~~~~~~~~^~
/in/mylist_impl.h:131:38: error: invalid conversion from 'const Node_t<int>*' to 'Node_t<int>*' [-fpermissive]
Node_t<int>* itr2 = b.returnFront();
~~~~~~~~~~~~~^~
/in/mylist_impl.h:159:9: error: unused variable 'ad' [-Werror=unused-variable]
int ad = nb1 + nb2;
^~
/in/mylist_impl.h:163:1: error: no return statement in function returning non-void [-Werror=return-type]
}
^
/in/mylist_impl.h: In function 'bool isEmpty()':
/in/mylist_impl.h:54:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: all warnings being treated as errors
/in/compile/Makefile:10: recipe for target 'mylist' failed
make: *** [mylist] Error 1