#111
NrFact
Să se scrie un program care citește un șir de n
numere naturale şi determină numărul din şir care are număr maxim de factori primi.
Problema | NrFact | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #29595380 | Utilizator | |
Fișier | nrfact.cpp | Dimensiune | 1.26 KB |
Data încărcării | 11 Mai 2021, 12:00 | Scor / rezultat | Eroare de compilare |
nrfact.cpp: In function 'void Inserare(nod*&, char*)': nrfact.cpp:23:26: error: 'struct nod' has no member named 'st' Inserare(R->st , x); ^ nrfact.cpp:23:31: error: 'x' was not declared in this scope Inserare(R->st , x); ^ nrfact.cpp:25:26: error: 'struct nod' has no member named 'dr' Inserare(R->dr , x); ^ nrfact.cpp:25:31: error: 'x' was not declared in this scope Inserare(R->dr , x); ^ nrfact.cpp:31:12: error: 'struct nod' has no member named 'st' R->st = NULL; ^ nrfact.cpp:32:12: error: 'struct nod' has no member named 'dr' R->dr = NULL; ^ nrfact.cpp: In function 'void afisare(nod*)': nrfact.cpp:37:8: error: 'R' was not declared in this scope g<<R->nume<<" "; ^ nrfact.cpp: At global scope: nrfact.cpp:41:6: error: variable or field 'ok' declared void void ok=0; ^ nrfact.cpp: In function 'void Cautare(nod*, char*)': nrfact.cpp:48:3: error: 'ok' was not declared in this scope ok=1; ^ nrfact.cpp:50:15: error: 'struct nod' has no member named 'info' if(strcmp(R->info,x)<0) ^ nrfact.cpp:50:20: error: 'x' was not declared in this scope if(strcmp(R->info,x)<0) ^ nrfact.cpp:51:21: error: 'struct nod' has no member named 'st' return Cautare(R->st , x); ^ nrfact.cpp:51:27: error: return-statement with a value, in function returning 'void' [-fpermissive] return Cautare(R->st , x); ^ nrfact.cpp:53:21: error: 'struct nod' has no member named 'dr' return Cautare(R->dr , x); ^ nrfact.cpp:53:27: error: return-statement with a value, in function returning 'void' [-fpermissive] return Cautare(R->dr , x); ^ nrfact.cpp: In function 'void cautareperlitara(nod*, char)': nrfact.cpp:57:30: error: 'nume' was not declared in this scope if(toupper(l)!=toupper(p-nume[0])) ^ nrfact.cpp:62:31: error: too few arguments to function 'void cautareperlitara(nod*, char)' cautareperlitara(p->as); ^ nrfact.cpp:55:6: note: declared here void cautareperlitara(nod *p, char l) ^ nrfact.cpp:63:31: error: too few arguments to function 'void cautareperlitara(nod*, char)' cautareperlitara(p->ad); ^ nrfact.cpp:55:6: note: declared here void cautareperlitara(nod *p, char l) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NrFact face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.