#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 | #38469104 | Utilizator | |
Fișier | urare.cpp | Dimensiune | 4.28 KB |
Data încărcării | 11 Octombrie 2022, 11:46 | Scor / rezultat | Eroare de compilare |
urare.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ urare.cpp:1:7: error: 'System' has not been declared urare.cpp:9:20: error: expected ':' before 'int' public int a; ^ urare.cpp:10:21: error: expected ':' before 'int' private int b; ^ urare.cpp:11:23: error: expected ':' before 'int' protected int c; ^ urare.cpp:12:20: error: expected ':' before 'int' public int[] V; ^ urare.cpp:12:23: error: expected unqualified-id before '[' token public int[] V; ^ urare.cpp:14:20: error: expected ':' before 'A' public A() ^ urare.cpp:19:20: error: expected ':' before 'A' public A(int a, int b, int c) ^ urare.cpp:26:20: error: expected ':' before 'int' public int B ^ urare.cpp:30:13: error: expected ';' at end of member declaration } ^ urare.cpp:32:20: error: expected ':' before 'int' public int this[int i] ^ urare.cpp:32:24: error: expected unqualified-id before 'this' public int this[int i] ^ urare.cpp:192:1: error: expected '}' at end of input } ^ urare.cpp:192:1: error: expected unqualified-id at end of input urare.cpp:192:1: error: expected '}' at end of input urare.cpp:28:17: error: 'set' was not declared in this scope set { b = value; } ^ urare.cpp:28:21: error: expected '}' before '{' token set { b = value; } ^ urare.cpp:28:21: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization urare.cpp:28:21: error: expected ';' before '{' token urare.cpp: In constructor 'complex_numbers::Program::A::A(int, int, int)': urare.cpp:21:22: error: request for member 'a' in 'this', which is of pointer type 'complex_numbers::Program::A* const' (maybe you meant to use '->' ?) this.a = a; ^ urare.cpp:22:22: error: request for member 'b' in 'this', which is of pointer type 'complex_numbers::Program::A* const' (maybe you meant to use '->' ?) this.b = b; ^ urare.cpp:23:22: error: request for member 'c' in 'this', which is of pointer type 'complex_numbers::Program::A* const' (maybe you meant to use '->' ?) this.c = c; ^ urare.cpp: At global scope: urare.cpp:24:13: error: expected unqualified-id at end of input } ^ urare.cpp:24:13: error: expected '}' at end of input
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ă.