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;
        };
        var id = $x('//*[@id="loginUserID"]')[0].value="";          // Input id.
        var password = $x('//*[@id="loginPassword"]')[0].value="";  // Input password.
        var submit = $x('//*[@id="logininput"]')[0].click();

Compiler output:
a.cc:3:25: error: empty character constant
    3 |                 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); }
      |                         ^~
a.cc:3:46: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    3 |                 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); }
      |                                              ^~~~~~~~
a.cc:3:141: error: empty character constant
    3 |                 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); }
      |                                                                                                                                             ^~
a.cc:3:358: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    3 |                 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); }
      |                                                                                                                                                                                                                                                                                                                                                                      ^~~~~~~~~
a.cc:3:442: warning: multi-character character constant [-Wmultichar]
    3 |                 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); }
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^~~~~~
a.cc:3:450: warning: multi-character literal with 25 characters exceeds 'int' size of 4 bytes
    3 |                 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.snaps