Help me in solving CPPFALL102 problem

My issue

help me in solving problem

My code

// Update the blanks below to print the first 3 characters of the String
// There is also a syntax error - try and fix it to debug the code

#include <bits/stdc++.h>
using namespace std;

int main() {
    variable var = "String";
    cout << var [0];
    cout << var [1];
    cout << var [2];
}

Learning course: Learn Programming and Problem Solving using C++
Problem Link: https://www.codechef.com/learn/course/sit-cpp-fall/SITFALL18/problems/CPPFALL102