Problem lazy_robot
User StormyGood
Submission Time 2025-10-16 12:02:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lazy_robot.cpp: In function ‘int main()’:
lazy_robot.cpp:7:10: error: ‘len’ was not declared in this scope; did you mean ‘mblen’?
7 | int b = len(a);
| ^~~
| mblen
lazy_robot.cpp:8:18: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
8 | string c = a[b-1];
| ^