prog.cpp: In function ‘int main()’:
prog.cpp:3:3: error: ‘cout’ was not declared in this scope
cout << "Ile elementow ma tablica?\n n = ";
^~~~
prog.cpp:4:3: error: ‘cin’ was not declared in this scope
cin >> n;
^~~
prog.cpp:6:32: error: ‘endl’ was not declared in this scope
cout << "Podaj elementy:" << endl;
^~~~
prog.cpp:9:27: error: ‘wyliczKoszt’ was not declared in this scope
cout << wyliczKoszt(L, n) << endl;
^
prog.cpp:11:17: error: ‘system’ was not declared in this scope
system("pause");
^