#264
MaxCif
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 | #54069171 | Utilizator | |
Fișier | maxcif.cpp | Dimensiune | 408 B |
Data încărcării | 19 Noiembrie 2024, 09:24 | Scor / rezultat | Eroare de compilare |
maxcif.cpp:8:5: error: stray '\342' in program ifstream fin(“maxcif.in”); ^ maxcif.cpp:8:5: error: stray '\200' in program maxcif.cpp:8:5: error: stray '\234' in program maxcif.cpp:8:5: error: stray '\342' in program maxcif.cpp:8:5: error: stray '\200' in program maxcif.cpp:8:5: error: stray '\235' in program maxcif.cpp:9:5: error: stray '\342' in program ofstream fout(“maxcif.out”); ^ maxcif.cpp:9:5: error: stray '\200' in program maxcif.cpp:9:5: error: stray '\234' in program maxcif.cpp:9:5: error: stray '\342' in program maxcif.cpp:9:5: error: stray '\200' in program maxcif.cpp:9:5: error: stray '\235' in program maxcif.cpp:13:2: error: stray '\342' in program for (i=9; i>=0; i—) ^ maxcif.cpp:13:2: error: stray '\200' in program maxcif.cpp:13:2: error: stray '\224' in program maxcif.cpp:20:10: error: stray '\342' in program fout<<i<<” “; ^ maxcif.cpp:20:10: error: stray '\200' in program maxcif.cpp:20:10: error: stray '\235' in program maxcif.cpp:20:10: error: stray '\342' in program maxcif.cpp:20:10: error: stray '\200' in program maxcif.cpp:20:10: error: stray '\234' in program maxcif.cpp: In function 'int main()': maxcif.cpp:8:21: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin(“maxcif.in”); ^ maxcif.cpp:8:21: error: 'maxcif' was not declared in this scope maxcif.cpp:9:22: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout(“maxcif.out”); ^ maxcif.cpp:11:9: error: 't' was not declared in this scope t[x]++; ^ maxcif.cpp:13:18: warning: for increment expression has no effect [-Wunused-value] for (i=9; i>=0; i—) ^ maxcif.cpp:15:12: error: 't' was not declared in this scope if(t[i]>=maxi) ^ maxcif.cpp:19:12: error: 't' was not declared in this scope if(t[i]==maxi) ^ maxcif.cpp:20:26: error: expected primary-expression before ';' token fout<<i<<” “; ^ maxcif.cpp:7:9: warning: unused variable 't10' [-Wunused-variable] int t10={0},i,x,maxi; ^
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ă.