Language: C++

var $x = function (xp, dc) { function c(f) { var g = ''; if (typeof f === 'string') { g = f; } var h = function (a) { var b = document.implementation.createHTMLDocument(''); var c = b.createRange(); c.selectNodeContents(b.documentElement); c.deleteContents(); b.documentElement.appendChild(c.createContextualFragment(a)); return b; }; if (0 <= navigator.userAgent.toLowerCase().indexOf('firefox')) { h = function (a) { var b = document.implementation.createDocumentType('html', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd'); var c = document.implementation.createDocument(null, 'html', b); var d = document.createRange(); d.selectNodeContents(document.documentElement); var e = c.adoptNode(d.createContextualFragment(a)); c.documentElement.appendChild(e); return c; }; } return h(g); } var m = [ ], r = null, n = null; var o = dc || document.documentElement; var p = o.ownerDocument; if (typeof dc === 'object' && typeof dc.nodeType === 'number') { if (dc.nodeType === 1 && dc.nodeName.toUpperCase() === 'HTML') { o = c(dc.innerHTML); p = o; } else if (dc.nodeType === 9) { o = dc.documentElement; p = dc; } } else if (typeof dc === 'string') { o = c(dc); p = o; } try { r = p.evaluate(xp, o, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0, l = r.snapshotLength; i < l; i++) m.push(r.snapshotItem(i)); } catch (e) { try { var q = p.evaluate(xp, o, null, XPathResult.ANY_TYPE, null); while (n = q.iterateNext()) m.push(n); } catch (e) { throw new Error(e.message); } } return m; };

$x('//*[@id="submit_language"]')[0].selectedIndex=4;

Compiler output:
a.cc:1:54: error: empty character constant
    1 | var $x = function (xp, dc) { function c(f) { var g = ''; if (typeof f === 'string') { g = f; } var h = function (a) { var b = document.implementation.createHTMLDocument(''); var c = b.createRange(); c.selectNodeContents(b.documentElement); c.deleteContents(); b.documentElement.appendChild(c.createContextualFragment(a)); return b; }; if (0 <= navigator.userAgent.toLowerCase().indexOf('firefox')) { h = function (a) { var b = document.implementation.createDocumentType('html', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd'); var c = document.implementation.createDocument(null, 'html', b); var d = document.createRange(); d.selectNodeContents(document.documentElement); var e = c.adoptNode(d.createContextualFragment(a)); c.documentElement.appendChild(e); return c; }; } return h(g); } var m = [ ], r = null, n = null; var o = dc || document.documentElement; var p = o.ownerDocument; if (typeof dc === 'object' && typeof dc.nodeType === 'number') { if (dc.nodeType === 1 && dc.nodeName.toUpperCase() === 'HTML') { o = c(dc.innerHTML); p = o; } else if (dc.nodeType === 9) { o = dc.documentElement; p = dc; } } else if (typeof dc === 'string') { o = c(dc); p = o; } try { r = p.evaluate(xp, o, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0, l = r.snapshotLength; i < l; i++) m.push(r.snapshotItem(i)); } catch (e) { try { var q = p.evaluate(xp, o, null, XPathResult.ANY_TYPE, null); while (n = q.iterateNext()) m.push(n); } catch (e) { throw new Error(e.message); } } return m; };
      |                                                      ^~
a.cc:1:75: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    1 | var $x = function (xp, dc) { function c(f) { var g = ''; if (typeof f === 'string') { g = f; } var h = function (a) { var b = document.implementation.createHTMLDocument(''); var c = b.createRange(); c.selectNodeContents(b.documentElement); c.deleteContents(); b.documentElement.appendChild(c.createContextualFragment(a)); return b; }; if (0 <= navigator.userAgent.toLowerCase().indexOf('firefox')) { h = function (a) { var b = document.implementation.createDocumentType('html', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd'); var c = document.implementation.createDocument(null, 'html', b); var d = document.createRange(); d.selectNodeContents(document.documentElement); var e = c.adoptNode(d.createContextualFragment(a)); c.documentElement.appendChild(e); return c; }; } return h(g); } var m = [ ], r = null, n = null; var o = dc || document.documentElement; var p = o.ownerDocument; if (typeof dc === 'object' && typeof dc.nodeType === 'number') { if (dc.nodeType === 1 && dc.nodeName.toUpperCase() === 'HTML') { o = c(dc.innerHTML); p = o; } else if (dc.nodeType === 9) { o = dc.documentElement; p = dc; } } else if (typeof dc === 'string') { o = c(dc); p = o; } try { r = p.evaluate(xp, o, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0, l = r.snapshotLength; i < l; i++) m.push(r.snapshotItem(i)); } catch (e) { try { var q = p.evaluate(xp, o, null, XPathResult.ANY_TYPE, null); while (n = q.iterateNext()) m.push(n); } catch (e) { throw new Error(e.message); } } return m; };
      |                                                                           ^~~~~~~~
a.cc:1:170: error: empty character constant
    1 | var $x = function (xp, dc) { function c(f) { var g = ''; if (typeof f === 'string') { g = f; } var h = function (a) { var b = document.implementation.createHTMLDocument(''); var c = b.createRange(); c.selectNodeContents(b.documentElement); c.deleteContents(); b.documentElement.appendChild(c.createContextualFragment(a)); return b; }; if (0 <= navigator.userAgent.toLowerCase().indexOf('firefox')) { h = function (a) { var b = document.implementation.createDocumentType('html', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd'); var c = document.implementation.createDocument(null, 'html', b); var d = document.createRange(); d.selectNodeContents(document.documentElement); var e = c.adoptNode(d.createContextualFragment(a)); c.documentElement.appendChild(e); return c; }; } return h(g); } var m = [ ], r = null, n = null; var o = dc || document.documentElement; var p = o.ownerDocument; if (typeof dc === 'object' && typeof dc.nodeType === 'number') { if (dc.nodeType === 1 && dc.nodeName.toUpperCase() === 'HTML') { o = c(dc.innerHTML); p = o; } else if (dc.nodeType === 9) { o = dc.documentElement; p = dc; } } else if (typeof dc === 'string') { o = c(dc); p = o; } try { r = p.evaluate(xp, o, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0, l = r.snapshotLength; i < l; i++) m.push(r.snapshotItem(i)); } catch (e) { try { var q = p.evaluate(xp, o, null, XPathResult.ANY_TYPE, null); while (n = q.iterateNext()) m.push(n); } catch (e) { throw new Error(e.message); } } return m; };
      |                                                                                                                                                                          ^~
a.cc:1:387: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    1 | var $x = function (xp, dc) { function c(f) { var g = ''; if (typeof f === 'string') { g = f; } var h = function (a) { var b = document.implementation.createHTMLDocument(''); var c = b.createRange(); c.selectNodeContents(b.documentElement); c.deleteContents(); b.documentElement.appendChild(c.createContextualFragment(a)); return b; }; if (0 <= navigator.userAgent.toLowerCase().indexOf('firefox')) { h = function (a) { var b = document.implementation.createDocumentType('html', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd'); var c = document.implementation.createDocument(null, 'html', b); var d = document.createRange(); d.selectNodeContents(document.documentElement); var e = c.adoptNode(d.createContextualFragment(a)); c.documentElement.appendChild(e); return c; }; } return h(g); } var m = [ ], r = null, n = null; var o = dc || document.documentElement; var p = o.ownerDocument; if (typeof dc === 'object' && typeof dc.nodeType === 'number') { if (dc.nodeType === 1 && dc.nodeName.toUpperCase() === 'HTML') { o = c(dc.innerHTML); p = o; } else if (dc.nodeType === 9) { o = dc.documentElement; p = dc; } } else if (typeof dc === 'string') { o = c(dc); p = o; } try { r = p.evaluate(xp, o, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0, l = r.snapshotLength; i < l; i++) m.push(r.snapshotItem(i)); } catch (e) { try { var q = p.evaluate(xp, o, null, XPathResult.ANY_TYPE, null); while (n = q.iterateNext()) m.push(n); } catch (e) { throw new Error(e.message); } } return m; };
      |                                                                                                                                                                                                                                                                                                                                                                                                   ^~~~~~~~~
a.cc:1:471: warning: multi-character character constant [-Wmultichar]
    1 | var $x = function (xp, dc) { function c(f) { var g = ''; if (typeof f === 'string') { g = f; } var h = function (a) { var b = document.implementation.createHTMLDocument(''); var c = b.createRange(); c.selectNodeContents(b.documentElement); c.deleteContents(); b.documentElement.appendChild(c.createContextualFragment(a)); return b; }; if (0 <= navigator.userAgent.toLowerCase().indexOf('firefox')) { h = function (a) { var b = document.implementation.createDocumentType('html', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd'); var c = document.implementation.createDocument(null, 'html', b); var d = document.createRange(); d.selectNodeContents(document.documentElement); var e = c.adoptNode(d.createContextualFragment(a)); c.documentElement.appendChild(e); return c; }; } return h(g); } var m = [ ], r = null, n = null; var o = dc || document.documentElement; var p = o.ownerDocument; if (typeof dc === 'object' && typeof dc.nodeType === 'number') { if (dc.nodeType === 1 && dc.nodeName.toUpperCase() === 'HTML') { o = c(dc.innerHTML); p = o; } else if (dc.nodeType === 9) { o = dc.documentElement; p = dc; } } else if (typeof dc === 'string') { o = c(dc); p = o; } try { r = p.evaluate(xp, o, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0, l = r.snapshotLength; i < l; i++) m.push(r.snapshotItem(i)); } catch (e) { try { var q = p.evaluate(xp, o, null, XPathResult.ANY_TYPE, null); while (n = q.iterateNext()) m.push(n); } catch (e) { throw new Error(e.message); } } return m; };
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^~~~~~
a.cc:1:479: warning: multi-character literal with 25 characters exceeds 'int' size of 4 bytes
    1 | var $x = function (xp, dc) { function c(f) { var g = ''; if (typeof f === 'string') { g = f; } var h = function (a) { var b = document.implementation.createHTMLDocument(''); var c = b.createRange(); c.selectNodeContents(b.documentElement); c.deleteContents(); b.documentElement.appendChild(c.createContextualFragment(a)); return b; }; if (0 <= navigator.userAgent.toLowerCase().indexOf('firefox')) { h = function (a) { var b = document.implementation.createDocumentType('html', '-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd'); var c = document.implementation.createDocument(null, 'html', b); var d = document.createRange(); d.selectNodeContents(document.documentElement); var e = c.adoptNode(d.createContextualFragment(a)); c.documentElement.appendChild(e); return c; }; } return h(g); } var m = [ ], r = null, n = null; var o = dc || document.documentElement; var p = o.ownerDocum