Să se scrie un program care citește un cuvânt și îl afișează după interschimbarea primei vocale cu ultima consoană.
Problema | InterschimbareLitere | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54012387 | Utilizator | |
Fișier | interschimbarelitere.cpp | Dimensiune | 960 B |
Data încărcării | 17 Noiembrie 2024, 20:41 | Scor / rezultat | Eroare de compilare |
interschimbarelitere.cpp:11:5: error: stray '\342' in program while(ch[i]!=‘\0’) ^ interschimbarelitere.cpp:11:5: error: stray '\200' in program interschimbarelitere.cpp:11:5: error: stray '\230' in program interschimbarelitere.cpp:11:5: error: stray '\' in program interschimbarelitere.cpp:11:5: error: stray '\342' in program interschimbarelitere.cpp:11:5: error: stray '\200' in program interschimbarelitere.cpp:11:5: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\230' in program interschimbarelitere.cpp:13:9: error: stray '\342' in program interschimbarelitere.cpp:13:9: error: stray '\200' in program interschimbarelitere.cpp:13:9: error: stray '\231' in program interschimbarelitere.cpp:25:9: error: stray '\342' in program while(ch[i]!=‘\0’) ^ interschimbarelitere.cpp:25:9: error: stray '\200' in program interschimbarelitere.cpp:25:9: error: stray '\230' in program interschimbarelitere.cpp:25:9: error: stray '\' in program interschimbarelitere.cpp:25:9: error: stray '\342' in program interschimbarelitere.cpp:25:9: error: stray '\200' in program interschimbarelitere.cpp:25:9: error: stray '\231' in program interschimbarelitere.cpp:37:5: error: stray '\342' in program cout << “IMPOSIBIL”; ^ interschimbarelitere.cpp:37:5: error: stray '\200' in program interschimbarelitere.cpp:37:5: error: stray '\234' in program interschimbarelitere.cpp:37:5: error: stray '\342' in program interschimbarelitere.cpp:37:5: error: stray '\200' in program interschimbarelitere.cpp:37:5: error: stray '\235' in program interschimbarelitere.cpp:1:1: error: 'include' does not name a type include <bits/stdc++.h> ^ interschimbarelitere.cpp: In function 'int main()': interschimbarelitere.cpp:6:5: error: 'cin' was not declared in this scope cin >> ch; ^ interschimbarelitere.cpp:13:22: error: 'a' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:40: error: 'A' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:58: error: 'e' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:76: error: 'E' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:112: error: 'I' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:130: error: 'o' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:148: error: 'O' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:166: error: 'u' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:13:184: error: 'U' was not declared in this scope if(ch[i]==‘a’ || ch[i]==‘A’ || ch[i]==‘e’ || ch[i]==‘E’ || ch[i]==‘i’ || ch[i]==‘I’ || ch[i]==‘o’ || ch[i]==‘O’ || ch[i]==‘u’ || ch[i]==‘U’) ^ interschimbarelitere.cpp:28:17: error: 'cout' was not declared in this scope cout << cons; ^ interschimbarelitere.cpp:30:17: error: 'cout' was not declared in this scope cout << voc; ^ interschimbarelitere.cpp:32:17: error: 'cout' was not declared in this scope cout << ch[i]; ^ interschimbarelitere.cpp:37:5: error: 'cout' was not declared in this scope cout << “IMPOSIBIL”; ^ interschimbarelitere.cpp:37:16: error: 'IMPOSIBIL' was not declared in this scope cout << “IMPOSIBIL”; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InterschimbareLitere 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ă.