#264
Se dau mai multe numere naturale formate din exact o cifră. Determinaţi cifrele cu număr maxim de apariţii.
Problema | MaxCif | Operații I/O |
![]() maxcif.in /maxcif.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52705930 | Utilizator | |
Fișier | maxcif.cpp | Dimensiune | 456 B |
Data încărcării | 07 Octombrie 2024, 16:40 | Scor / rezultat | Eroare de compilare |
maxcif.cpp:6:1: error: stray '\342' in program ifstream fin(“maxcif.in”); ^ maxcif.cpp:6:1: error: stray '\200' in program maxcif.cpp:6:1: error: stray '\234' in program maxcif.cpp:6:1: error: stray '\342' in program maxcif.cpp:6:1: error: stray '\200' in program maxcif.cpp:6:1: error: stray '\235' in program maxcif.cpp:7:1: error: stray '\342' in program ofstream fout(“maxcif.out”); ^ maxcif.cpp:7:1: error: stray '\200' in program maxcif.cpp:7:1: error: stray '\234' in program maxcif.cpp:7:1: error: stray '\342' in program maxcif.cpp:7:1: error: stray '\200' in program maxcif.cpp:7:1: error: stray '\235' in program maxcif.cpp:26:9: error: stray '\342' in program fout<<i<<” “; ^ maxcif.cpp:26:9: error: stray '\200' in program maxcif.cpp:26:9: error: stray '\235' in program maxcif.cpp:26:9: error: stray '\342' in program maxcif.cpp:26:9: error: stray '\200' in program maxcif.cpp:26:9: error: stray '\234' in program maxcif.cpp:6:17: error: 'maxcif' was not declared in this scope ifstream fin(“maxcif.in”); ^ maxcif.cpp:7:18: error: 'maxcif' was not declared in this scope ofstream fout(“maxcif.out”); ^ maxcif.cpp: In function 'int main()': maxcif.cpp:14:14: error: 'v' was not declared in this scope while(fin>>v[n]) ^ maxcif.cpp:16:9: error: 'u' was not declared in this scope u[v[n]]++; ^ maxcif.cpp:21:12: error: 'u' was not declared in this scope if(u[i]>imax) ^ maxcif.cpp:24:3: error: expected primary-expression before 'or' token or(int i=0; i<10; i++) ^ maxcif.cpp:24:6: error: expected primary-expression before 'int' or(int i=0; i<10; i++) ^ maxcif.cpp:24:6: error: expected ')' before 'int' maxcif.cpp:24:15: error: 'i' was not declared in this scope or(int i=0; i<10; i++) ^ maxcif.cpp:24:24: error: expected ';' before ')' token or(int i=0; i<10; i++) ^ maxcif.cpp:12:5: warning: unused variable 'v100001' [-Wunused-variable] int v100001,u10={0},n=0,imax=-1; ^ maxcif.cpp:12:13: warning: unused variable 'u10' [-Wunused-variable] int v100001,u10={0},n=0,imax=-1; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MaxCif 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ă.