0_0_24957392_3362.cpp:1:1: error: expected unqualified-id before '<' token
<html>
^
0_0_24957392_3362.cpp:8:4: error: 'var' does not name a type
var box_y = 0;
^
0_0_24957392_3362.cpp:9:4: error: 'var' does not name a type
var box_width = 1500;
^
0_0_24957392_3362.cpp:10:4: error: 'var' does not name a type
var box_height = 600;
^
0_0_24957392_3362.cpp:12:4: error: 'var' does not name a type
var ball_x = 0;
^
0_0_24957392_3362.cpp:13:4: error: 'var' does not name a type
var ball_y = 100;
^
0_0_24957392_3362.cpp:14:4: error: 'var' does not name a type
var ball_radius = 10;
^
0_0_24957392_3362.cpp:15:4: error: 'var' does not name a type
var ball_vx = 30;
^
0_0_24957392_3362.cpp:16:4: error: 'var' does not name a type
var ball_vy = -30;
^
0_0_24957392_3362.cpp:18:4: error: 'var' does not name a type
var g = 10; //note
^
0_0_24957392_3362.cpp:19:4: error: 'var' does not name a type
var rate = 0.9;
^
0_0_24957392_3362.cpp:21:4: error: 'var' does not name a type
var bound_left = box_x + ball_radius;
^
0_0_24957392_3362.cpp:22:4: error: 'var' does not name a type
var bound_right = box_x + box_width - ball_radius;
^
0_0_24957392_3362.cpp:23:4: error: 'var' does not name a type
var bound_top = box_y + ball_radius;
^
0_0_24957392_3362.cpp:24:4: error: 'var' does not name a type
var bound_bottom = box_y + box_height - ball_radius;
^
0_0_24957392_3362.cpp:26:4: error: 'var' does not name a type
var ctx;
^
0_0_24957392_3362.cpp:27:4: error: 'var' does not name a type
var interval;
^
0_0_24957392_3362.cpp:28:4: error: 'function' does not name a type
function init1() {
^
0_0_24957392_3362.cpp:33:4: error: 'function' does not name a type
function init() {
^
0_0_24957392_3362.cpp:41:4: error: 'function' does not name a type
function move_ball() {
^
0_0_24957392_3362.cpp:50:4: error: 'function' does not name a type
function move_and_check() {
^
0_0_24957392_3362.cpp:78:4: error: 'document' does not name a type
document.onclick=function(ev){
^
0_0_24957392_3362.cpp:88:3: error: expected unqualified-id before '<' token
</script>
^
|