Problem | veryeasymath |
---|---|
User | DoubleShaurya |
Submission Time | 2024-11-07 20:53:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
veryeasymath.cpp: In function ‘std::string checkNum(std::string, long long int)’:
veryeasymath.cpp:5:34: 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
5 | string a = str[str.size() - temp];
| ^
veryeasymath.cpp:12:48: error: lvalue required as left operand of assignment
12 | else if (stoi(a) = 9 && (str.size() - temp) > 0) {
| ^
veryeasymath.cpp:18:64: error: lvalue required as left operand of assignment
18 | else if (stoi(a) = 9 && (str.size() - temp) == 0 && str[0] != '9') {
| ^~~
veryeasymath.cpp:23:64: error: lvalue required as left operand of assignment
23 | else if (stoi(a) = 9 && (str.size() - temp) == 0 && str[