Files
pplus-web/mojo/golden/b4c598603f4ed256919ee75eb3733498503999d42469f17bd9c104e4fdd1e986.json
T
2026-10-05 03:03:38 +00:00

106 lines
3.1 KiB
JSON

{
"args": "",
"askedAt": "2026-10-03T14:29:07+00:00",
"compiler": "mojo_1_1_0",
"firstItem": "quest/MQ-110/starter",
"key": "b4c598603f4ed256919ee75eb3733498503999d42469f17bd9c104e4fdd1e986",
"mode": "run",
"raw": {
"buildResult": {
"code": 1,
"compilationOptions": [
"build",
"/app/example.mojo"
],
"downloads": [],
"execTime": 232,
"executableFilename": "/nosym/tmp/compiler-explorer-compilernEH8gs/example",
"inputFilename": "example.mojo",
"instructionSet": "amd64",
"okToCache": true,
"processExecutionResultTime": 0.0755019998177886,
"stderr": [
{
"tag": {
"column": 14,
"file": "example.mojo",
"line": 3,
"severity": 3,
"text": "error: 'Int' does not implement the '__iter__' method"
},
"text": "<source>:3:14: error: 'Int' does not implement the '__iter__' method"
},
{
"text": " for r in readings:"
},
{
"text": " ^~~~~~~~"
},
{
"tag": {
"column": 28,
"file": "example.mojo",
"line": 9,
"severity": 3,
"text": "error: invalid call to 'total': unexpected argument"
},
"text": "<source>:9:28: error: invalid call to 'total': unexpected argument"
},
{
"text": " print(\"sum:\", total(3, 4, 5))"
},
{
"text": " ~~~~~ ^"
},
{
"tag": {
"column": 5,
"file": "example.mojo",
"line": 1,
"severity": 1,
"text": "note: function declared here"
},
"text": "<source>:1:5: note: function declared here"
},
{
"text": "def total(readings: Int) -> Int:"
},
{
"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": 319,
"okToCache": false,
"queueTime": 7,
"stderr": [
{
"text": "Build failed"
}
],
"stdout": [],
"timedOut": false
},
"result": {
"asm": null,
"buildStderr": "<source>:3:14: error: 'Int' does not implement the '__iter__' method\n for r in readings:\n ^~~~~~~~\n<source>:9:28: error: invalid call to 'total': unexpected argument\n print(\"sum:\", total(3, 4, 5))\n ~~~~~ ^\n<source>:1:5: note: function declared here\ndef total(readings: Int) -> Int:\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.54,
"sourceSha256": "255ca36d79616859364932001d384e995661ed3644cfc3b7b3edf5c23fef993d",
"stdin": ""
}