0_0_28225067_20087.cpp: In function 'int bfs()':
0_0_28225067_20087.cpp:11:11: error: 'bottle' was not declared in this scope
queue<bottle> q;
^
0_0_28225067_20087.cpp:11:17: error: template argument 1 is invalid
queue<bottle> q;
^
0_0_28225067_20087.cpp:11:17: error: template argument 2 is invalid
0_0_28225067_20087.cpp:11:20: error: invalid type in declaration before ';' token
queue<bottle> q;
^
0_0_28225067_20087.cpp:18:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(a);
^
0_0_28225067_20087.cpp:20:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty()){
^
0_0_28225067_20087.cpp:21:15: error: request for member 'front' in 'q', which is of non-class type 'int'
a = q.front();
^
0_0_28225067_20087.cpp:22:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_28225067_20087.cpp:41:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(b);
^
0_0_28225067_20087.cpp:59:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(b);
^
0_0_28225067_20087.cpp:77:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(b);
^
0_0_28225067_20087.cpp:95:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(b);
^
0_0_28225067_20087.cpp:113:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(b);
^
0_0_28225067_20087.cpp:131:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(b);
^
|