0_0_20504386_14642.cpp:25:1: error: 'list' does not name a type
list<node> li;
^
0_0_20504386_14642.cpp: In function 'int main()':
0_0_20504386_14642.cpp:36:18: error: 'mem' was not declared in this scope
mem(vis,0);
^
0_0_20504386_14642.cpp:42:13: error: 'li' was not declared in this scope
li.push_back(node(l,w));
^
0_0_20504386_14642.cpp:45:9: error: 'li' was not declared in this scope
li.sort();
^
0_0_20504386_14642.cpp:50:13: error: 'list' was not declared in this scope
list<node>::iterator p=li.begin();
^
0_0_20504386_14642.cpp:50:22: error: expected primary-expression before '>' token
list<node>::iterator p=li.begin();
^
0_0_20504386_14642.cpp:50:34: error: missing template arguments before 'p'
list<node>::iterator p=li.begin();
^
0_0_20504386_14642.cpp:51:22: error: expected primary-expression before '>' token
list<node>::iterator pre;
^
0_0_20504386_14642.cpp:51:34: error: missing template arguments before 'pre'
list<node>::iterator pre;
^
0_0_20504386_14642.cpp:52:24: error: 'p' was not declared in this scope
int clen=(*p).len,cwei=(*p).wei;
^
0_0_20504386_14642.cpp:53:13: error: 'pre' was not declared in this scope
pre=p;
^
0_0_20504386_14642.cpp:58:46: error: 'cwei' was not declared in this scope
if((*p).len>=clen&&(*p).wei>=cwei)
^
|