error: ‘was’ was not declared in this scope