#851
Email
Se dă o listă de adrese de email corecte ca structură. Să se determine câte adrese de email sunt asociate cu fiecare nume de domeniu.
Problema | Operații I/O |
email.in /email.out
|
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16201338 | Utilizator | |
Fișier | email.cpp | Dimensiune | 1.28 KB |
Data încărcării | 15 Iunie 2019, 13:38 | Scor / rezultat | 60 puncte |
email.cpp: In function 'int main()': email.cpp:20:32: warning: array subscript has type 'char' [-Wchar-subscripts] if(strcmp(domenii[i],p)==0) ^ email.cpp:29:22: warning: array subscript has type 'char' [-Wchar-subscripts] frecv[poz]++; ^ email.cpp:34:23: warning: array subscript has type 'char' [-Wchar-subscripts] if(frecv[i]<frecv[j]) ^ email.cpp:34:32: warning: array subscript has type 'char' [-Wchar-subscripts] if(frecv[i]<frecv[j]) ^ email.cpp:36:28: warning: array subscript has type 'char' [-Wchar-subscripts] aux=frecv[i]; ^ email.cpp:37:24: warning: array subscript has type 'char' [-Wchar-subscripts] frecv[i]=frecv[j] ; ^ email.cpp:37:33: warning: array subscript has type 'char' [-Wchar-subscripts] frecv[i]=frecv[j] ; ^ email.cpp:38:24: warning: array subscript has type 'char' [-Wchar-subscripts] frecv[j]=aux; ^ email.cpp:39:35: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(p,domenii[i]); ^ email.cpp:40:33: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(domenii[i],domenii[j]); ^ email.cpp:40:44: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(domenii[i],domenii[j]); ^ email.cpp:41:33: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(domenii[j],p); ^ email.cpp:43:28: warning: array subscript has type 'char' [-Wchar-subscripts] else if(frecv[i]==frecv[j]) ^ email.cpp:43:38: warning: array subscript has type 'char' [-Wchar-subscripts] else if(frecv[i]==frecv[j]) ^ email.cpp:44:36: warning: array subscript has type 'char' [-Wchar-subscripts] if(strcmp(domenii[i],domenii[j])>0) ^ email.cpp:44:47: warning: array subscript has type 'char' [-Wchar-subscripts] if(strcmp(domenii[i],domenii[j])>0) ^ email.cpp:46:39: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(p,domenii[i]); ^ email.cpp:47:37: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(domenii[i],domenii[j]); ^ email.cpp:47:48: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(domenii[i],domenii[j]); ^ email.cpp:48:37: warning: array subscript has type 'char' [-Wchar-subscripts] strcpy(domenii[j],p); ^ email.cpp:52:24: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<domenii[i]<<" "<<frecv[i]<<"\n"; ^ email.cpp:52:39: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<domenii[i]<<" "<<frecv[i]<<"\n"; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | ||
2 | 0 secunde | OK. | 20 | 20 | ||
3 | Depășit | Limita de timp depășită | 20 | 0 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | Depășit | Limita de timp depășită | 20 | 0 | ||
Punctaj total | 60 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Email 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ă.