Language: C++

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

Compiler output:
a.cc:1:26: warning: missing terminating " character
    1 | browser.execute_script("""
      |                          ^
a.cc:1:26: error: missing terminating " character
a.cc:4:37: error: empty character constant
    4 |                             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:4:58: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    4 |                             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:4:153: error: empty character constant
    4 |                             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:4:370: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    4 |                             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:4:454: warning: multi-character character constant [-Wmultichar]
    4 |                             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:4:462: warning: multi-character literal with 25 characters exceeds 'int' size of 4 bytes
    4 |                             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 ===