0
Help fix the errors, please
Code in c++ embeded
4 Answers
+ 2
You missing a opening curly brace at the beginning
+ 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