#2404
Exact așa cum spuneam Alex e un băiat năzdrăvan! De data aceasta boacăna pe care a făcut-o l-a determinat pe profesorul de informatică să îi spună că nu va mai fi iertat și pentru această boacănă așa că îi dă de ales ori îl va asculta doar pe el și restul copiilor vor scăpa ori va dă test tuturor din clasă. Alex este conștient că nu trebuie să fie pedepsiți toți pentru greșeala lui așa ca decide ca doar el trebuie să răspundă! Profesorul complet degajat îi da problema:
Se dau două șiruri de câte n
valori notate A
și B
. Pentru fiecare pereche \( A_i B_i \) se calculează resturile împărțirii la 6669666
a lui \( {A_i}^{B_i} \). Ajutați-l pe Alex să determine suma acestor resturi.
Problema | Test | Operații I/O |
![]() test.in /test.out
|
---|---|---|---|
Limita timp | 0.04 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #45701036 | Utilizator | |
Fișier | test.cpp | Dimensiune | 2.16 KB |
Data încărcării | 19 Octombrie 2023, 12:09 | Scor / rezultat | Eroare de compilare |
test.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ test.cpp:1:7: error: 'System' has not been declared test.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ test.cpp:2:7: error: 'System' has not been declared test.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ test.cpp:2:13: error: expected unqualified-id before '.' token test.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ test.cpp:3:7: error: 'System' has not been declared test.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ test.cpp:3:13: error: expected unqualified-id before '.' token test.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ test.cpp:4:7: error: 'System' has not been declared test.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ test.cpp:4:13: error: expected unqualified-id before '.' token test.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ test.cpp:5:7: error: 'System' has not been declared test.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ test.cpp:5:13: error: expected unqualified-id before '.' token test.cpp:6:7: error: expected nested-name-specifier before 'System' using System.IO; ^ test.cpp:6:7: error: 'System' has not been declared test.cpp:6:13: error: expected ';' before '.' token using System.IO; ^ test.cpp:6:13: error: expected unqualified-id before '.' token test.cpp:13:13: error: expected unqualified-id before '[' token long[] a, b; ^ test.cpp:17:16: error: expected ':' before 'int' public int N { get { return n; } set { n = value; } } ^ test.cpp:17:61: error: expected ';' at end of member declaration public int N { get { return n; } set { n = value; } } ^ test.cpp:18:16: error: expected ':' before 'long' public long[] A { get { return a; } set { a = value; } } ^ test.cpp:18:20: error: expected unqualified-id before '[' token public long[] A { get { return a; } set { a = value; } } ^ test.cpp:98:1: error: expected '}' at end of input } ^ test.cpp:17:24: error: 'get' was not declared in this scope public int N { get { return n; } set { n = value; } } ^ test.cpp:17:28: error: expected '}' before '{' token public int N { get { return n; } set { n = value; } } ^ test.cpp:17:28: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization test.cpp:17:28: error: expected ';' before '{' token test.cpp:17:28: error: expected unqualified-id at end of input test.cpp:17:28: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Test 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ă.