NEWBEE Q error: 'WiFi' was not declared in this scope

I linked to the Sparkfun WiFly library which works with the chip you are using.

The Arduino WiFi Library is downloaded from this page (http://arduino.cc/en/Main/ArduinoWiFiShield) and only works with the Arduino-branded WiFi Shield.