in the file, the first number describes the number of numbers, the written program does not work. the program is compiled, but there is no result
#include <fstream> #include <iostream> #include <cstring> using namespace std; int main() { ifstream inp; inp.open("input.txt"); int N; inp>>N; int mass[N]; for(int i=0; i<N; ++i) { inp >> mass[i]; cout << mass[i]; } inp.close(); return 0; }