Problema | uciv | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #32936308 | Utilizator | |
Fișier | uciv.cpp | Dimensiune | 289 B |
Data încărcării | 02 Decembrie 2021, 03:13 | Scor / rezultat | Eroare de compilare |
uciv.cpp:1:1: error: 'import' does not name a type import java.io.*; ^ uciv.cpp:2:1: error: 'import' does not name a type import java.util.Scanner; ^ uciv.cpp:5:12: error: expected ':' before 'static' public static void main(String[] args) ^ uciv.cpp:5:29: error: 'String' has not been declared public static void main(String[] args) ^ uciv.cpp:5:38: error: expected ',' or '...' before 'args' public static void main(String[] args) ^ uciv.cpp:13:1: error: expected ';' after class definition } ^ uciv.cpp: In static member function 'static void sum00::main(int*)': uciv.cpp:7:9: error: 'Scanner' was not declared in this scope Scanner sc = new Scanner(System.in); ^ uciv.cpp:7:17: error: expected ';' before 'sc' Scanner sc = new Scanner(System.in); ^ uciv.cpp:8:15: error: 'sc' was not declared in this scope int a=sc.nextInt(); ^ uciv.cpp:11:9: error: 'System' was not declared in this scope System.out.println(d%10); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema uciv 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ă.