Program:
#include <iostream>
using namespace std;
int main()
{
srand(123);
int vertices = 10;
string A[vertices][vertices];
for ( int i = 0; i < vertices; ++i )
{
for ( int j = 0; j < vertices; ++j )
{
A[i][j] = to_string{ rand()%100+1 };
}
}
return 0;
}
Solution: Change braces { .. } to parentheses ( .. )
No comments:
Post a Comment