#972
Pozitii
Se dă un șir de caractere. Să se determine câte vocale din șir sunt cuprinse între două consoane.
Problema | Pozitii | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #36016152 | Utilizator | |
Fișier | pozitii.cpp | Dimensiune | 317 B |
Data încărcării | 31 Martie 2022, 16:33 | Scor / rezultat | Eroare de compilare |
pozitii.cpp: In function 'int main()': pozitii.cpp:8:15: error: 'strlen' was not declared in this scope n=strlen(s); ^ pozitii.cpp:11:31: error: 'strchr' was not declared in this scope if(strchr("aeiou",s[i])!=0)&&strchr("aeiou",s[i+1])==0)&&strchr("aeiou",s[i+2]!=0)) ^ pozitii.cpp:11:44: error: expected ';' before '(' token if(strchr("aeiou",s[i])!=0)&&strchr("aeiou",s[i+1])==0)&&strchr("aeiou",s[i+2]!=0)) ^ pozitii.cpp:11:36: warning: statement has no effect [-Wunused-value] if(strchr("aeiou",s[i])!=0)&&strchr("aeiou",s[i+1])==0)&&strchr("aeiou",s[i+2]!=0)) ^ pozitii.cpp:11:38: error: label 'strchr' used but not defined if(strchr("aeiou",s[i])!=0)&&strchr("aeiou",s[i+1])==0)&&strchr("aeiou",s[i+2]!=0)) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Pozitii 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ă.