#include <iostream>
#include <algorithm>
#include <cctype>
#include <string>
#include <vector>
using namespace std;
wyswietl( vector < string> & tab)
{
cout << "Zawartosc vectora :" << endl;
for ( int i= 0 ; i< tab.size ( ) ; i++ )
{
cout << tab[ i] << endl;
}
}
wczytaj( int & ile, vector < string> & tab)
{
int c= 0 ;
string tekst;
cout << "Podaj " << ile<< " napisow oddzielonych enterem" << endl;
for ( int i= - 1 ; i< ile; i++ )
{
getline( cin , tekst) ;
for ( int j= 0 ; j< tekst.length ( ) ; j++ )
{
if ( isalpha ( tekst[ j] ) ! = 0 )
{
c++ ;
}
}
if ( c== tekst.length ( ) )
{
tab.push_back ( tekst) ;
}
}
}
int main( )
{
int ile ;
vector < string > tab;
cout << "Ile napisow chcesz wczytac?" << endl;
cin >> ile;
wczytaj( ile, tab) ;
wyswietl( tab) ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8Y2N0eXBlPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgogCiAKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKIAp3eXN3aWV0bCh2ZWN0b3IgPHN0cmluZz4gJnRhYikKewogICAgY291dDw8Ilphd2FydG9zYyB2ZWN0b3JhIDoiPDxlbmRsOwogICAgZm9yKGludCBpPTA7IGk8dGFiLnNpemUoKTsgaSsrKQogICAgewogICAgICAgIGNvdXQ8PHRhYltpXTw8ZW5kbDsKICAgIH0KfQogCndjenl0YWooaW50ICZpbGUsIHZlY3RvciA8c3RyaW5nPiAmdGFiKQp7CiAgICBpbnQgYz0wOwogICAgc3RyaW5nIHRla3N0OwogICAgY291dDw8ICJQb2RhaiAiPDxpbGU8PCIgbmFwaXNvdyBvZGR6aWVsb255Y2ggZW50ZXJlbSI8PGVuZGw7CiAgICBmb3IoaW50IGk9LTE7IGk8aWxlOyBpKyspCiAgICB7CiAgICAgICAgZ2V0bGluZShjaW4sIHRla3N0KTsKICAgICAgICBmb3IgKGludCBqPTA7IGo8dGVrc3QubGVuZ3RoKCk7IGorKykKICAgICAgICB7CiAgICAgICAgICAgIGlmICggaXNhbHBoYSh0ZWtzdFtqXSkgIT0gMCkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgYysrOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmKGM9PXRla3N0Lmxlbmd0aCgpKQogICAgICAgIHsKICAgICAgICAgICAgdGFiLnB1c2hfYmFjayh0ZWtzdCk7CiAgICAgICAgfQogCiAgICB9Cn0KaW50IG1haW4oKQp7CiAgICBpbnQgaWxlIDsKICAgIHZlY3RvciA8IHN0cmluZyA+IHRhYjsKICAgIGNvdXQ8PCJJbGUgbmFwaXNvdyBjaGNlc3ogd2N6eXRhYz8iPDxlbmRsOwogICAgY2luPj5pbGU7CiAgICB3Y3p5dGFqKGlsZSwgdGFiKTsKICAgIHd5c3dpZXRsKHRhYik7CiAKfQ==
compilation info
prog.cpp:10:30: error: ISO C++ forbids declaration of 'wyswietl' with no type [-fpermissive]
wyswietl(vector <string> &tab)
^
prog.cpp:19:39: error: ISO C++ forbids declaration of 'wczytaj' with no type [-fpermissive]
wczytaj(int &ile, vector <string> &tab)
^
stdout