fork(2) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. vector<long> prices[100002];
  6. vector<long> dp[100002];
  7. int n,m;
  8. int main() {
  9. int t,i,j;
  10. long long p;
  11. cin>>t;
  12. while(t--) {
  13. cin>>n>>m;
  14.  
  15.  
  16. for(i=0;i<n;i++)
  17. for(j=0;j<m;j++) {
  18. cin>>p;
  19. prices[i].push_back(p);
  20. dp[i][j]=-1; //this line produces runtime error
  21. }
  22. }
  23. return 0;
  24. }
Runtime error #stdin #stdout 0s 5816KB
stdin
1
2 2
3 4
1 2
stdout
Standard output is empty