[Solved] Arduino Blynk Library- BlynkApi.h error

I receive this error when compiling a simple sketch for Arduino Uno.

C:\Users\userl\Documents\Arduino\libraries\blynk-library-0.4.7\src/Blynk/BlynkApi.h:78:9: note:   candidate expects 2 arguments, 0 provided



I tried using different releases of the Arduino Blynk library including the latest ( v0.4.8), but they appear to have the same problem.
The sketch is shown below.

#define BLYNK_PRINT SwSerial

#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11); // RX, TX
#include <BlynkSimpleStream.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "My Auth";

void setup()
  // Debug console

  // Blynk will work through Serial
  // Do not read or write this serial manually in your sketch
  Blynk.begin(Serial, auth);

void state(){
if (digitalRead(7) == HIGH)
  Blynk.virtualWrite(V7, 0);
  } // action B


void loop()

This is the error in your code, needs to be a pin from 0 to 127 (or 0 to 31 if you have shoddy hardware) and then a value.