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 with Values[ i ]^ do begin Writeln( nick ); Writeln( jid ); Writeln( githubUrl ); Writeln( role ); Writeln( '---------------------------------' ); end; 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 ] ); with res[ i ]^ do begin nick := GenerateNick(); jid := 'жид хуид'; githubUrl := 'https://b...content-available-to-author-only...t.com/' + res[ i ]^.nick; role := RandomRole(); end; end; Fill := res; end; procedure Clear( var values : Coders ); var i : integer; begin for i := 1 to MaxMembers do dispose( values[ i ] ); end; var CodingTeam : Coders; begin randomize;; CodingTeam := Fill(); Output( CodingTeam ); Clear ( CodingTeam ); end.
Standard input is empty
ONONFFNV жид хуид https://b...content-available-to-author-only...t.com/ONONFFNV admin --------------------------------- EVVVVVRR жид хуид https://b...content-available-to-author-only...t.com/EVVVVVRR member --------------------------------- VEEERRVV жид хуид https://b...content-available-to-author-only...t.com/VEEERRVV moderator --------------------------------- ROERONRO жид хуид https://b...content-available-to-author-only...t.com/ROERONRO guest --------------------------------- ENFROVFE жид хуид https://b...content-available-to-author-only...t.com/ENFROVFE member --------------------------------- NVONOFRE жид хуид https://b...content-available-to-author-only...t.com/NVONOFRE moderator --------------------------------- VONREFNV жид хуид https://b...content-available-to-author-only...t.com/VONREFNV member --------------------------------- FNVRNNVO жид хуид https://b...content-available-to-author-only...t.com/FNVRNNVO member --------------------------------- VVOFROVR жид хуид https://b...content-available-to-author-only...t.com/VVOFROVR admin --------------------------------- OREEREVR жид хуид https://b...content-available-to-author-only...t.com/OREEREVR guest --------------------------------- OORRENFV жид хуид https://b...content-available-to-author-only...t.com/OORRENFV member --------------------------------- ENNEVFVF жид хуид https://b...content-available-to-author-only...t.com/ENNEVFVF member --------------------------------- EFNVEEFO жид хуид https://b...content-available-to-author-only...t.com/EFNVEEFO moderator --------------------------------- FEFOFNFF жид хуид https://b...content-available-to-author-only...t.com/FEFOFNFF member --------------------------------- RROFOERO жид хуид https://b...content-available-to-author-only...t.com/RROFOERO guest --------------------------------- ONFERFEO жид хуид https://b...content-available-to-author-only...t.com/ONFERFEO member --------------------------------- VVRVRNOR жид хуид https://b...content-available-to-author-only...t.com/VVRVRNOR member --------------------------------- VNNERVEO жид хуид https://b...content-available-to-author-only...t.com/VNNERVEO moderator --------------------------------- VRFNOVNE жид хуид https://b...content-available-to-author-only...t.com/VRFNOVNE owner --------------------------------- EORFNFNO жид хуид https://b...content-available-to-author-only...t.com/EORFNFNO guest --------------------------------- REREVEFE жид хуид https://b...content-available-to-author-only...t.com/REREVEFE owner --------------------------------- NNNFOOVN жид хуид https://b...content-available-to-author-only...t.com/NNNFOOVN moderator --------------------------------- EFFFOVNV жид хуид https://b...content-available-to-author-only...t.com/EFFFOVNV moderator --------------------------------- FFRVEEEN жид хуид https://b...content-available-to-author-only...t.com/FFRVEEEN guest --------------------------------- VVFONFVF жид хуид https://b...content-available-to-author-only...t.com/VVFONFVF admin --------------------------------- FFVFVFNR жид хуид https://b...content-available-to-author-only...t.com/FFVFVFNR member --------------------------------- NNRVVFEF жид хуид https://b...content-available-to-author-only...t.com/NNRVVFEF guest --------------------------------- FNRVVVON жид хуид https://b...content-available-to-author-only...t.com/FNRVVVON admin --------------------------------- OFNNOOVE жид хуид https://b...content-available-to-author-only...t.com/OFNNOOVE admin --------------------------------- VVENNENV жид хуид https://b...content-available-to-author-only...t.com/VVENNENV admin --------------------------------- EOFRORVF жид хуид https://b...content-available-to-author-only...t.com/EOFRORVF guest --------------------------------- RNFNERVR жид хуид https://b...content-available-to-author-only...t.com/RNFNERVR member --------------------------------- FNNERRVF жид хуид https://b...content-available-to-author-only...t.com/FNNERRVF owner --------------------------------- NVNNREVV жид хуид https://b...content-available-to-author-only...t.com/NVNNREVV admin --------------------------------- NRNOVOVO жид хуид https://b...content-available-to-author-only...t.com/NRNOVOVO guest --------------------------------- FEEEERNR жид хуид https://b...content-available-to-author-only...t.com/FEEEERNR admin --------------------------------- OOEFFEFN жид хуид https://b...content-available-to-author-only...t.com/OOEFFEFN moderator --------------------------------- ROFNFORN жид хуид https://b...content-available-to-author-only...t.com/ROFNFORN admin --------------------------------- VRRRNVVO жид хуид https://b...content-available-to-author-only...t.com/VRRRNVVO admin --------------------------------- ONRVFFOE жид хуид https://b...content-available-to-author-only...t.com/ONRVFFOE moderator --------------------------------- VNEFRNRE жид хуид https://b...content-available-to-author-only...t.com/VNEFRNRE guest --------------------------------- NRFVNNEO жид хуид https://b...content-available-to-author-only...t.com/NRFVNNEO member --------------------------------- ORRFONEO жид хуид https://b...content-available-to-author-only...t.com/ORRFONEO member --------------------------------- NNOVNFVF жид хуид https://b...content-available-to-author-only...t.com/NNOVNFVF admin --------------------------------- ONRVRNFF жид хуид https://b...content-available-to-author-only...t.com/ONRVRNFF member --------------------------------- NNRROFVR жид хуид https://b...content-available-to-author-only...t.com/NNRROFVR admin --------------------------------- OOORREEE жид хуид https://b...content-available-to-author-only...t.com/OOORREEE owner --------------------------------- FOROEEFR жид хуид https://b...content-available-to-author-only...t.com/FOROEEFR guest --------------------------------- ONEVEFVF жид хуид https://b...content-available-to-author-only...t.com/ONEVEFVF owner --------------------------------- NNRFVEER жид хуид https://b...content-available-to-author-only...t.com/NNRFVEER owner ---------------------------------