Problem snack
User ZRDI
Submission Time 2024-03-01 15:02:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp: In function ‘int main()’:
snack.cpp:12:24: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} and ‘const char [2]’ to binary ‘operator-’
12 | a[i] = s[i]-"0";