{ "args": "", "askedAt": "2026-10-03T14:25:22+00:00", "compiler": "mojo_1_1_0", "firstItem": "manual/snippet/manual-parameters-index-4", "key": "0fea3ee15b9a131d65668ebc6e73b6a0a16473f6aa3a7a1f802921f7e7ec0403", "mode": "run", "raw": { "buildResult": { "code": 1, "compilationOptions": [ "build", "/app/example.mojo" ], "downloads": [], "execTime": 171, "executableFilename": "/nosym/tmp/compiler-explorer-compilernRfWl9/example", "inputFilename": "example.mojo", "instructionSet": "amd64", "okToCache": true, "processExecutionResultTime": 0.06060499884188175, "stderr": [ { "tag": { "column": 1, "file": "example.mojo", "line": 2, "severity": 3, "text": "error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant" }, "text": ":2:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant" }, { "text": "var small_vec = SIMD[DType.float32, 4](1.0, 2.0, 3.0, 4.0)" }, { "text": "^" }, { "tag": { "column": 1, "file": "example.mojo", "line": 5, "severity": 3, "text": "error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant" }, "text": ":5:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant" }, { "text": "var big_vec = SIMD[DType.float16, 32](1.0)" }, { "text": "^" }, { "tag": { "column": 1, "file": "example.mojo", "line": 8, "severity": 3, "text": "error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant" }, "text": ":8:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant" }, { "text": "var bigger_vec = (big_vec + big_vec).cast[DType.float32]()" }, { "text": "^" }, { "tag": { "column": 1, "file": "example.mojo", "line": 9, "severity": 3, "text": "error: backtick identifier must not be empty; add content between the backticks" }, "text": ":9:1: error: backtick identifier must not be empty; add content between the backticks" }, { "text": "```" }, { "text": "^" }, { "tag": { "column": 3, "file": "example.mojo", "line": 9, "severity": 3, "text": "error: unterminated backtick identifier" }, "text": ":9:3: error: unterminated backtick identifier" }, { "text": "```" }, { "text": " ^" }, { "text": "/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module" } ], "stdout": [], "timedOut": false, "truncated": false }, "code": -1, "didExecute": false, "execTime": 320, "okToCache": false, "queueTime": 5, "stderr": [ { "text": "Build failed" } ], "stdout": [], "timedOut": false }, "result": { "asm": null, "buildStderr": ":2:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar small_vec = SIMD[DType.float32, 4](1.0, 2.0, 3.0, 4.0)\n^\n:5:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar big_vec = SIMD[DType.float16, 32](1.0)\n^\n:8:1: error: global variables are not supported; move this into a function body or use 'comptime' to declare a constant\nvar bigger_vec = (big_vec + big_vec).cast[DType.float32]()\n^\n:9:1: error: backtick identifier must not be empty; add content between the backticks\n```\n^\n:9:3: error: unterminated backtick identifier\n```\n ^\n/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module", "compiled": false, "executed": false, "exitCode": -1, "stderr": "Build failed", "stdout": "", "timedOut": false }, "seconds": 0.53, "sourceSha256": "e445444f987c9e76d43a21ac448f849a1526868d14b85e5f2afe56be968ef08d", "stdin": "" }