Facing some errors in c++ : <p>I am writing a program in c++11 and I have faced some problems. I am new to c++11 programming, while I used to develop in c earlier, but I want to be familiar with the new facilities of c++. </p>

<p>I will present you below the contentious part of code explaining where are the errors and what kind of them I get.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;ctime&gt;
#include &lt;cstdio&gt;
#include &lt;cstring&gt;
#include &lt;cstdlib&gt;
#include &lt;vector&gt;
#include &lt;map&gt;
#include &lt;algorithm&gt;

using namespace std;

// A struct describing a product.
typedef struct Products
{
    string category;
    string name;
    float price;
} Product;

inline void scenario1(int num_cashiers)
{
    extern vector&lt;Product&gt; products; // It is a vector(a pseudo-second dimension) of products which will be used for each customer
    extern vector&lt;vector&lt;Product&gt; products&gt; customers; // A vector containing all customers
    vector&lt;vector&lt;vector&lt;Product&gt; products&gt; customers&gt; cashiers(num_cashiers); // A vector describing the supermarket cashiers declaring a queue of customers for each cashier

    ...

}
</code></pre>

<p>Error 1: At the second line of the function scenario1(int num_cashiers): template argument 1 is invalid</p>

<p>Error 2: At the second line of the function scenario1(int num_cashiers): template argument 2 is invalid</p>

<p>Error 3: At the second line of the function scenario1(int num_cashiers): invalid type in declaration before ';' token</p>

<p>Error 4: At the third line of the function scenario1(int num_cashiers): template argument 1 is invalid</p>

<p>Error 5: At the third line of the function scenario1(int num_cashiers): template argument 2 is invalid</p>

<p>Error 6: At the third line of the function scenario1(int num_cashiers): template argument 1 is invalid //Same error again</p>

<p>Error 7: At the third line of the function scenario1(int num_cashiers): template argument 2 is invalid //Same error again</p>

<p>Error 8: At the third line of the function scenario1(int num_cashiers): invalid type in declaration before '(' token</p>

<p>So, where am I wrong and what do I have to do to fix the errors?</p>

<p>I would appreciate any help!</p>
