I'm getting the error message: "main.cpp: In function 'int main ()': main.cpp: 8: 16: error: lvalue required as left operand of assignment (-10)) / 76 = n-1; "
In the code snippet below, does anyone know why?
#include using namespace std; int main(){ int ano; cin>>ano; int passagem; int n; (ano-10)/76=n-1; passagem=(10+76)*(n-1); }'