#2348
Caracterul mediu 1
C++
Să se determine caracterul mediu al caracterelor bune din sir .
Problema | Caracterul mediu 1 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.03 secunde | Limita memorie |
Total: 32 MB
/
Stivă 0.1 MB
|
Id soluție | #16212917 | Utilizator | |
Fișier | caracterul_mediu_1.cpp | Dimensiune | 599 B |
Data încărcării | 18 Iunie 2019, 10:58 | Scor / rezultat | Eroare de compilare |
caracterul_mediu_1.cpp:15:2: error: stray '\302' in program if (ch!=' ' && !strchr(vocale,ch) && !(ch>='A' && ch<='Z')) return 1; ^ caracterul_mediu_1.cpp:15:2: error: stray '\240' in program caracterul_mediu_1.cpp:15:2: error: stray '\302' in program caracterul_mediu_1.cpp:15:2: error: stray '\240' in program caracterul_mediu_1.cpp:17:2: error: stray '\302' in program else return 0; ^ caracterul_mediu_1.cpp:17:2: error: stray '\240' in program caracterul_mediu_1.cpp:17:2: error: stray '\302' in program caracterul_mediu_1.cpp:17:2: error: stray '\240' in program caracterul_mediu_1.cpp:25:2: error: stray '\302' in program cin.getline(s,201); ^ caracterul_mediu_1.cpp:25:2: error: stray '\240' in program caracterul_mediu_1.cpp:25:2: error: stray '\302' in program caracterul_mediu_1.cpp:25:2: error: stray '\240' in program caracterul_mediu_1.cpp:27:2: error: stray '\302' in program n=strlen(s); ^ caracterul_mediu_1.cpp:27:2: error: stray '\240' in program caracterul_mediu_1.cpp:27:2: error: stray '\302' in program caracterul_mediu_1.cpp:27:2: error: stray '\240' in program caracterul_mediu_1.cpp:29:2: error: stray '\302' in program for (i=0; i<n; ++i) ^ caracterul_mediu_1.cpp:29:2: error: stray '\240' in program caracterul_mediu_1.cpp:29:2: error: stray '\302' in program caracterul_mediu_1.cpp:29:2: error: stray '\240' in program caracterul_mediu_1.cpp:31:2: error: stray '\302' in program { ^ caracterul_mediu_1.cpp:31:2: error: stray '\240' in program caracterul_mediu_1.cpp:31:2: error: stray '\302' in program caracterul_mediu_1.cpp:31:2: error: stray '\240' in program caracterul_mediu_1.cpp:33:2: error: stray '\302' in program if (bun(s[i])) ^ caracterul_mediu_1.cpp:33:2: error: stray '\240' in program caracterul_mediu_1.cpp:33:2: error: stray '\302' in program caracterul_mediu_1.cpp:33:2: error: stray '\240' in program caracterul_mediu_1.cpp:33:2: error: stray '\302' in program caracterul_mediu_1.cpp:33:2: error: stray '\240' in program caracterul_mediu_1.cpp:33:2: error: stray '\302' in program caracterul_mediu_1.cpp:33:2: error: stray '\240' in program caracterul_mediu_1.cpp:35:2: error: stray '\302' in program { ^ caracterul_mediu_1.cpp:35:2: error: stray '\240' in program caracterul_mediu_1.cpp:35:2: error: stray '\302' in program caracterul_mediu_1.cpp:35:2: error: stray '\240' in program caracterul_mediu_1.cpp:35:2: error: stray '\302' in program caracterul_mediu_1.cpp:35:2: error: stray '\240' in program caracterul_mediu_1.cpp:35:2: error: stray '\302' in program caracterul_mediu_1.cpp:35:2: error: stray '\240' in program caracterul_mediu_1.cpp:37:2: error: stray '\302' in program ++contor; ^ caracterul_mediu_1.cpp:37:2: error: stray '\240' in program caracterul_mediu_1.cpp:37:2: error: stray '\302' in program caracterul_mediu_1.cpp:37:2: error: stray '\240' in program caracterul_mediu_1.cpp:37:2: error: stray '\302' in program caracterul_mediu_1.cpp:37:2: error: stray '\240' in program caracterul_mediu_1.cpp:37:2: error: stray '\302' in program caracterul_mediu_1.cpp:37:2: error: stray '\240' in program caracterul_mediu_1.cpp:37:2: error: stray '\302' in program caracterul_mediu_1.cpp:37:2: error: stray '\240' in program caracterul_mediu_1.cpp:37:2: error: stray '\302' in program caracterul_mediu_1.cpp:37:2: error: stray '\240' in program caracterul_mediu_1.cpp:39:2: error: stray '\302' in program suma+=(int)s[i]; ^ caracterul_mediu_1.cpp:39:2: error: stray '\240' in program caracterul_mediu_1.cpp:39:2: error: stray '\302' in program caracterul_mediu_1.cpp:39:2: error: stray '\240' in program caracterul_mediu_1.cpp:39:2: error: stray '\302' in program caracterul_mediu_1.cpp:39:2: error: stray '\240' in program caracterul_mediu_1.cpp:39:2: error: stray '\302' in program caracterul_mediu_1.cpp:39:2: error: stray '\240' in program caracterul_mediu_1.cpp:39:2: error: stray '\302' in program caracterul_mediu_1.cpp:39:2: error: stray '\240' in program caracterul_mediu_1.cpp:39:2: error: stray '\302' in program caracterul_mediu_1.cpp:39:2: error: stray '\240' in program caracterul_mediu_1.cpp:41:2: error: stray '\302' in program } ^ caracterul_mediu_1.cpp:41:2: error: stray '\240' in program caracterul_mediu_1.cpp:41:2: error: stray '\302' in program caracterul_mediu_1.cpp:41:2: error: stray '\240' in program caracterul_mediu_1.cpp:41:2: error: stray '\302' in program caracterul_mediu_1.cpp:41:2: error: stray '\240' in program caracterul_mediu_1.cpp:41:2: error: stray '\302' in program caracterul_mediu_1.cpp:41:2: error: stray '\240' in program caracterul_mediu_1.cpp:43:2: error: stray '\302' in program } ^ caracterul_mediu_1.cpp:43:2: error: stray '\240' in program caracterul_mediu_1.cpp:43:2: error: stray '\302' in program caracterul_mediu_1.cpp:43:2: error: stray '\240' in program caracterul_mediu_1.cpp:45:2: error: stray '\302' in program chmediu=(char)(suma/contor); ^ caracterul_mediu_1.cpp:45:2: error: stray '\240' in program caracterul_mediu_1.cpp:45:2: error: stray '\302' in program caracterul_mediu_1.cpp:45:2: error: stray '\240' in program caracterul_mediu_1.cpp:47:2: error: stray '\302' in program cout << chmediu; ^ caracterul_mediu_1.cpp:47:2: error: stray '\240' in program caracterul_mediu_1.cpp:47:2: error: stray '\302' in program caracterul_mediu_1.cpp:47:2: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Caracterul mediu 1 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ă.