const MaxMembers = 50; type RoleType = ( guest, member, moderator, admin, owner ); Coder = record nick : string; jid : string; githubUrl : string; role : RoleType; end; CoderPtr = ^ Coder; Coders = array[ 1..MaxMembers ] of CoderPtr; procedure Output( Values : Coders ); var i : integer; begin for i := 1 to MaxMembers do begin Writeln( Values[ i ]^.nick ); Writeln( Values[ i ]^.jid ); Writeln( Values[ i ]^.githubUrl ); Writeln( Values[ i ]^.role ); Writeln( '---------------------------------' ); end; end; function GenerateNick() : string; var i : integer; c : integer; s : array[0..5] of char = ( 'F', 'O', 'R', 'N', 'E', 'V' ); r : string; begin r := ''; for i := 1 to 8 do r := r + s[ random( 6 ) ]; GenerateNick := r; end; function RandomRole: RoleType; begin RandomRole := RoleType(Random(Succ(Ord(High(RoleType))))); end; function Fill(): Coders; var i : integer; Forevers : set of 'A'..'Z'; res : Coders; begin randomize; for i := 1 to MaxMembers do begin New( res[ i ] ); res[ i ]^.nick := GenerateNick(); res[ i ]^.jid := 'жид хуид'; res[ i ]^.githubUrl := 'https://b...content-available-to-author-only...t.com/' + res[ i ]^.nick; res[ i ]^.role := RandomRole(); end; Fill := res; end; var CodingTeam : Coders; begin randomize;; CodingTeam := Fill(); Output( CodingTeam ); end.
Standard input is empty
NFONRNNO жид хуид https://b...content-available-to-author-only...t.com/NFONRNNO moderator --------------------------------- NRVORFFE жид хуид https://b...content-available-to-author-only...t.com/NRVORFFE member --------------------------------- FFRNNVVN жид хуид https://b...content-available-to-author-only...t.com/FFRNNVVN admin --------------------------------- ROVVEFEO жид хуид https://b...content-available-to-author-only...t.com/ROVVEFEO member --------------------------------- EFFFRVEF жид хуид https://b...content-available-to-author-only...t.com/EFFFRVEF member --------------------------------- EONFFORV жид хуид https://b...content-available-to-author-only...t.com/EONFFORV member --------------------------------- EVONRNNE жид хуид https://b...content-available-to-author-only...t.com/EVONRNNE owner --------------------------------- FNNFNEON жид хуид https://b...content-available-to-author-only...t.com/FNNFNEON member --------------------------------- EENOFFFO жид хуид https://b...content-available-to-author-only...t.com/EENOFFFO member --------------------------------- VNNOVOOO жид хуид https://b...content-available-to-author-only...t.com/VNNOVOOO member --------------------------------- RVVVNNVV жид хуид https://b...content-available-to-author-only...t.com/RVVVNNVV owner --------------------------------- RVEEFFEE жид хуид https://b...content-available-to-author-only...t.com/RVEEFFEE owner --------------------------------- ONOOVFOR жид хуид https://b...content-available-to-author-only...t.com/ONOOVFOR moderator --------------------------------- OEFFOOEO жид хуид https://b...content-available-to-author-only...t.com/OEFFOOEO guest --------------------------------- EOOFFVVE жид хуид https://b...content-available-to-author-only...t.com/EOOFFVVE admin --------------------------------- RROVENVF жид хуид https://b...content-available-to-author-only...t.com/RROVENVF owner --------------------------------- FROEFRVV жид хуид https://b...content-available-to-author-only...t.com/FROEFRVV owner --------------------------------- VVVOFOOE жид хуид https://b...content-available-to-author-only...t.com/VVVOFOOE member --------------------------------- ORNNENEV жид хуид https://b...content-available-to-author-only...t.com/ORNNENEV member --------------------------------- NRVREOVE жид хуид https://b...content-available-to-author-only...t.com/NRVREOVE owner --------------------------------- ONVOFREF жид хуид https://b...content-available-to-author-only...t.com/ONVOFREF moderator --------------------------------- ONEREVRR жид хуид https://b...content-available-to-author-only...t.com/ONEREVRR member --------------------------------- FVEERVRO жид хуид https://b...content-available-to-author-only...t.com/FVEERVRO member --------------------------------- FFFFVEFF жид хуид https://b...content-available-to-author-only...t.com/FFFFVEFF moderator --------------------------------- VRFOEVVF жид хуид https://b...content-available-to-author-only...t.com/VRFOEVVF moderator --------------------------------- NVEEEONN жид хуид https://b...content-available-to-author-only...t.com/NVEEEONN moderator --------------------------------- NROVERRN жид хуид https://b...content-available-to-author-only...t.com/NROVERRN admin --------------------------------- VEEEEONE жид хуид https://b...content-available-to-author-only...t.com/VEEEEONE owner --------------------------------- NVROONOV жид хуид https://b...content-available-to-author-only...t.com/NVROONOV moderator --------------------------------- OFEOFRRO жид хуид https://b...content-available-to-author-only...t.com/OFEOFRRO moderator --------------------------------- RERVOVRF жид хуид https://b...content-available-to-author-only...t.com/RERVOVRF admin --------------------------------- EFOVFORF жид хуид https://b...content-available-to-author-only...t.com/EFOVFORF owner --------------------------------- RVOOFENV жид хуид https://b...content-available-to-author-only...t.com/RVOOFENV moderator --------------------------------- VNNRFVNO жид хуид https://b...content-available-to-author-only...t.com/VNNRFVNO admin --------------------------------- FFFVNONE жид хуид https://b...content-available-to-author-only...t.com/FFFVNONE owner --------------------------------- VEVRVFRE жид хуид https://b...content-available-to-author-only...t.com/VEVRVFRE guest --------------------------------- VORFFFVO жид хуид https://b...content-available-to-author-only...t.com/VORFFFVO admin --------------------------------- RRRNOFEN жид хуид https://b...content-available-to-author-only...t.com/RRRNOFEN admin --------------------------------- VRRFFNRF жид хуид https://b...content-available-to-author-only...t.com/VRRFFNRF guest --------------------------------- VRRFVENE жид хуид https://b...content-available-to-author-only...t.com/VRRFVENE admin --------------------------------- NVNOROVN жид хуид https://b...content-available-to-author-only...t.com/NVNOROVN admin --------------------------------- NVOENRRR жид хуид https://b...content-available-to-author-only...t.com/NVOENRRR member --------------------------------- NOOVNVFR жид хуид https://b...content-available-to-author-only...t.com/NOOVNVFR member --------------------------------- OFOVNRFR жид хуид https://b...content-available-to-author-only...t.com/OFOVNRFR moderator --------------------------------- OFVVVNFO жид хуид https://b...content-available-to-author-only...t.com/OFVVVNFO owner --------------------------------- EFOFOREN жид хуид https://b...content-available-to-author-only...t.com/EFOFOREN member --------------------------------- NFNVEONE жид хуид https://b...content-available-to-author-only...t.com/NFNVEONE guest --------------------------------- OEVFRVVV жид хуид https://b...content-available-to-author-only...t.com/OEVFRVVV admin --------------------------------- FNVFVOON жид хуид https://b...content-available-to-author-only...t.com/FNVFVOON admin --------------------------------- VFNVOVFR жид хуид https://b...content-available-to-author-only...t.com/VFNVOVFR member ---------------------------------