Problem generosity
User penguin1234
Submission Time 2024-07-26 16:32:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

generosity.cpp:3:4: error: expected constructor, destructor, or type conversion before ‘(’ token
3 | $(document).ready(function(){
| ^
generosity.cpp:10:4: error: expected unqualified-id before ‘)’ token
10 | });
| ^
generosity.cpp:12:4: error: expected constructor, destructor, or type conversion before ‘(’ token
12 | $(window).bind('unload', function(){
| ^
generosity.cpp:15:4: error: expected unqualified-id before ‘)’ token
15 | });
| ^
generosity.cpp:17:3: error: ‘var’ does not name a type
17 | var editorNames = ['editorA', 'editorB', 'editorI', 'editor']
| ^~~
generosity.cpp:19:19: error: ‘i’ does not name a type
19 | for (let i = 0; i < editorNames.length; i += 1){
| ^
generosity.cpp:19:43: error: ‘i’ does not name a type
19 | for (let i = 0; i < editorNames.length; i += 1){
|