#include <iostream> using namespace std; void inptA (int **A, int n, int m) { for (int i=0; i<n; i++) { for (int j=0; j<m; j++) { cin >> A[i][j]; } } } int main() { int n = 5; int m = 3; int **A = new int *[n]; for (int i=0; i<n; i++) { A[i] = new int [m]; } intpA (A, n, m); return 0; } 

Gives an error message:

 main.cpp: In function 'int main()': main.cpp:82:19: error: 'intpA' was not declared in this scope intpA (A, n, m); 

Closed due to the fact that off-topic participants Harry , HolyBlackCat , freim , 0xdb , Sergey Gornostaev on March 18 at 4:45 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Harry, HolyBlackCat, freim, 0xdb, Sergey Gornostaev
If the question can be reformulated according to the rules set out in the certificate , edit it .

    2 answers 2

    This is a common typo in the variable name.

    You have declared a function called inptA , and in the call to it you use the name intpA .

    The reason for this error is that you use the abbreviated form of the word input to name a function for no reason.

    It would be much better if you used the non-abbreviated word input in the function naming:

     void inputA (int **A, int n, int m) 

    In this case, your code would be more readable and clear, and would allow you to avoid this kind of typos.

      Careful to be. Your function is called in pt A, and you call it in tp A.