Problem | generosity |
---|---|
User | Daniel0liong |
Submission Time | 2024-03-06 17:09:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
generosity.cpp:3:1: error: ‘var’ does not name a type
3 | var stuff = document.getElementsByClassName("nav-link");
| ^~~
generosity.cpp:4:1: error: ‘var’ does not name a type
4 | var needed = 0;
| ^~~
generosity.cpp:5:1: error: expected unqualified-id before ‘for’
5 | for(let i = 0;i < stuff.length;i++){
| ^~~
generosity.cpp:5:15: error: ‘i’ does not name a type
5 | for(let i = 0;i < stuff.length;i++){
| ^
generosity.cpp:5:32: error: ‘i’ does not name a type
5 | for(let i = 0;i < stuff.length;i++){
| ^
generosity.cpp:9:1: error: ‘needed’ does not name a type
9 | needed.addEventListener("click", function(){
| ^~~~~~
generosity.cpp:11:2: error: expected unqualified-id before ‘)’ token
11 | });
| ^