Problem | adjmatrix |
---|---|
User | proter1132 |
Submission Time | 2023-02-24 16:46:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:9:18: error: expected ‘,’ or ‘;’ before ‘(’ token
9 | vector<int> g(n)(n);
| ^
adjmatrix.cpp:13:7: error: no match for call to ‘(std::vector<int>) (int&)’
13 | g(i)(j) = 0;
| ^
adjmatrix.cpp:18:6: error: no match for call to ‘(std::vector<int>) (long long unsigned int&)’
18 | g(a)(b) = 1;
| ^
adjmatrix.cpp:19:6: error: no match for call to ‘(std::vector<int>) (long long unsigned int&)’
19 | g(b)(a) = 1;
| ^
adjmatrix.cpp:24:15: error: no match for call to ‘(std::vector<int>) (int&)’
24 | cout << g(i)(j);
| ^
adjmatrix.cpp:26:2: error: expected ‘}’ at end of input
26 | }
| ^
adjmatrix.cpp:7:1: note: to match this ‘{’
7 | {
| ^