BOOL question!

uncleared identifier TruckWeight? Why?

#include <stdio.h>

#include <objc/objc.h>

int main(int argc, const char * argv[]) {

BOOL isNotLegal = !((truckWeight > 0.0) && (truckWeight < 40000.0));

if (isNotLegal) {
    printf("TruckWeight is not within legal range.\n");
    


}}

The declaration of truckWeight is missing. You have to declare it before using it.