Problem topical
User G
Submission Time 2024-03-03 22:52:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topical.cpp: In function ‘int main()’:
topical.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<vector<int>> r;
| ^~~~~~
topical.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include<iostream>
+++ |+#include <vector>
2 | using namespace std;
topical.cpp:7:16: error: expected primary-expression before ‘int’
7 | vector<vector<int>> r;
| ^~~
topical.cpp:8:16: error: expected primary-expression before ‘int’
8 | vector<vector<int>> u;
| ^~~
topical.cpp:9:9: error: expected primary-expression before ‘int’
9 | vector<int> p(k,0);
| ^~~
topical.cpp:11:29: error: ‘r’ was not declared in this scope
11 | for(int j;j<k;j++) cin >> r[i][j];
| ^
topical.cpp:14: