Problem guessproblem
User Craftless
Submission Time 2023-01-02 20:34:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guessproblem.cpp: In function ‘int32_t main()’:
guessproblem.cpp:17:16: error: expected identifier before string constant
17 | string arr = ["atm",
| ^~~~~
guessproblem.cpp:17:21: error: expected ‘]’ before ‘,’ token
17 | string arr = ["atm",
| ^
| ]
guessproblem.cpp: In lambda function:
guessproblem.cpp:17:21: error: expected ‘{’ before ‘,’ token
guessproblem.cpp: In function ‘int32_t main()’:
guessproblem.cpp:17:21: error: conversion from ‘main()::<lambda()>’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
guessproblem.cpp:18:1: error: expected unqualified-id before string constant
18 | "car",
| ^~~~~