What's wrong with my code? How can I fix it? C++
<pre><code>    #include &lt;iostream&gt;
    #include &lt;vector&gt;
    using namespace std;

    int main(){

    vector&lt;string&gt; row(7, "0");
    char input;
    int pos;

    cin &gt;&gt; input;
    cin &gt;&gt; pos;

    if(input == 'X')
        row[pos] = '1';

    //ascii value of 1 is 49

    if(row[pos] - 49 == 0)
        cout &lt;&lt; "Correct";

    return 0;
    }
</code></pre>

<p>I keep getting an error at my last <code>if</code> statement.  Any ideas why it's not working, and how I can fix it?  By the way, <code>row</code> <strong>has</strong> to be a string vector, I can't make it any other type.</p>

<p>I want <code>row[pos]</code> to take the character in <code>row</code> at the position <code>pos</code></p>
