Problem digits2
User PrunJuice
Submission Time 2026-03-10 12:22:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

digits2.cpp: In function ‘int main()’:
digits2.cpp:31:20: error: ‘v3’ was not declared in this scope; did you mean ‘v2’?
31 | cin >> v3[i];
| ^~
| v2
digits2.cpp:35:17: error: ‘v3’ was not declared in this scope; did you mean ‘v2’?
35 | if (v3[i] < x2){
| ^~
| v2
digits2.cpp:39:27: error: no match for ‘operator+’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘long long int’)
39 | cnt = (x2 + k - v3[i]) * 2 * v2[0];
| ~~ ^ ~
| | |
| | long long int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,