{ "args": "", "askedAt": "2026-10-03T14:33:34+00:00", "compiler": "mojo_1_1_0", "firstItem": "quest/MQ-901/starter", "key": "5aa3d2bc8814f184ac623a22a7ebe3c8bc2e101d0bea54685c2b3bc34f2aca45", "mode": "run", "raw": { "buildResult": { "code": 1, "compilationOptions": [ "build", "/app/example.mojo" ], "downloads": [], "execTime": 223, "executableFilename": "/nosym/tmp/compiler-explorer-compiler4rHfrg/example", "inputFilename": "example.mojo", "instructionSet": "amd64", "okToCache": true, "processExecutionResultTime": 0.06723999977111816, "stderr": [ { "tag": { "column": 15, "file": "example.mojo", "line": 7, "severity": 3, "text": "error: invalid call to 'unsafe_alloc': failed to infer parameter 'type'" }, "text": ":7:15: error: invalid call to 'unsafe_alloc': failed to infer parameter 'type'" }, { "text": " var ptr = unsafe_alloc(1)" }, { "text": " ^~~~~~~~~~~~" }, { "text": "Imported from :1:" }, { "text": "Mojo/stdlib/std/memory/alloc.mojo:690:1: note: function declared here" }, { "text": "def unsafe_alloc[type: AnyType, /](count: Int, *, alignment: Int = Int((get_alignof type, _current_target()))) -> Pointer[type, MutUntrackedOrigin] # note - synthetic signature" }, { "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": 292, "okToCache": false, "queueTime": 6, "stderr": [ { "text": "Build failed" } ], "stdout": [], "timedOut": false }, "result": { "asm": null, "buildStderr": ":7:15: error: invalid call to 'unsafe_alloc': failed to infer parameter 'type'\n var ptr = unsafe_alloc(1)\n ^~~~~~~~~~~~\nImported from :1:\nMojo/stdlib/std/memory/alloc.mojo:690:1: note: function declared here\ndef unsafe_alloc[type: AnyType, /](count: Int, *, alignment: Int = Int((get_alignof type, _current_target()))) -> Pointer[type, MutUntrackedOrigin] # note - synthetic signature\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.51, "sourceSha256": "109987da24d7f82fba755eb7484aeba061a268dff6f1624582ebb7f49ad3079a", "stdin": "" }