#941
Urare
În preajma Crăciunului toţi suntem sau redevenim copii.
Scrie un program care afişează pe ecran o urare pentru cei dragi ţie!
Problema | Urare | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #30811101 | Utilizator | |
Fișier | urare.cpp | Dimensiune | 940 B |
Data încărcării | 21 Septembrie 2021, 11:03 | Scor / rezultat | Eroare de compilare |
urare.cpp:4:1: error: expected ',' or ';' before 'int' int rad (int nod) ^ urare.cpp: In function 'int main()': urare.cpp:12:10: error: 'n' was not declared in this scope fin>>n>>m; ^ urare.cpp:12:13: error: 'm' was not declared in this scope fin>>n>>m; ^ urare.cpp:13:10: error: 'i' was not declared in this scope for (i=1; i<=m; i++) ^ urare.cpp:15:14: error: 'cod' was not declared in this scope fin>>cod>>x>>y; ^ urare.cpp:15:19: error: 'x' was not declared in this scope fin>>cod>>x>>y; ^ urare.cpp:15:22: error: 'y' was not declared in this scope fin>>cod>>x>>y; ^ urare.cpp:18:25: error: 'rad' was not declared in this scope int rx=rad(x); ^ urare.cpp:21:17: error: 'fout' was not declared in this scope fout<<"DA\n"; ^ urare.cpp:23:17: error: 'fout' was not declared in this scope fout<<"NU\n"; ^ urare.cpp:27:25: error: 'rad' was not declared in this scope int rx=rad(x); ^ urare.cpp:31:21: error: 't' was not declared in this scope if (t[rx]==t[ry]) ^ urare.cpp:36:21: error: 't' was not declared in this scope if (t[rx]>t[ry]) ^ urare.cpp:40:21: error: 't' was not declared in this scope if (t[rx]<t[ry]) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Urare 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ă.