0

Help fix the errors, please

Code in c++ embeded

8th Mar 2022, 10:17 AM
Choncho
4 Answers
+ 3
Thank you very much Ipang and Simba , perfect now.
8th Mar 2022, 10:35 AM
Choncho
+ 2
You missing a opening curly brace at the beginning
8th Mar 2022, 10:23 AM
Simba
Simba - avatar
+ 2
Line 6: Add { as function body block start Line 9 ~ 11: New value for elements doesn't need to be inside a pair of curly brackets {}. This is not fatal, just unnecessarily done. arr[0] = 0 - arr[1]; arr[1] = 1 - arr[2]; arr[2] = 2 - arr[0]; Line 12: Remove } before the semicolon
8th Mar 2022, 10:30 AM
Ipang
8th Mar 2022, 10:18 AM
Choncho