Main.cc: In function ‘bool cmp(qj, qj)’: Main.cc:9:46: error: ‘struct qj’ has no member named ‘s’ return a . e != b . e ? a . e < b . e : a . s < b . s ; ^ Main.cc:9:54: error: ‘struct qj’ has no member named ‘s’ return a . e != b . e ? a . e < b . e : a . s < b . s ; ^ Main.cc: In function ‘int main()’: Main.cc:23:8: error: ‘qu’ was not declared in this scope if ( qu [i] . s < cur ) ^~ Main.cc:23:8: note: suggested alternative: ‘qj’ if ( qu [i] . s < cur ) ^~ qj