Problem | veryeasymath |
---|---|
User | jmuzhen |
Submission Time | 2024-11-07 18:21:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
veryeasymath.cpp: In lambda function:
veryeasymath.cpp:15:15: error: expected ‘{’ before ‘=’ token
15 | [c, carry] = add_1_digit(x[i]);
| ^
veryeasymath.cpp: In function ‘std::string add_1(std::string)’:
veryeasymath.cpp:15:33: error: no match for ‘operator=’ (operand types are ‘add_1(std::string)::<lambda()>’ and ‘std::pair<char, bool>’)
15 | [c, carry] = add_1_digit(x[i]);
| ^
veryeasymath.cpp:15:13: note: candidate: ‘add_1(std::string)::<lambda()>& add_1(std::string)::<lambda()>::operator=(const add_1(std::string)::<lambda()>&)’ <deleted>
15 | [c, carry] = add_1_digit(x[i]);
| ^
veryeasymath.cpp:15:13: note: no known conversion for argument 1 from ‘std::pair<char, bool>’ to ‘const add_1(std::string)::<lambda()>&’
veryeasymath.cpp: In lambda function:
veryeasymath.cpp:18:14: error: expected ‘{’ before ‘=