fork download
  1. import java.util.Scanner;
  2. class t{
  3. public static void main(String[] args){
  4.  
  5. Scanner scan=new Scanner(System.in);
  6. while(scan.hasNext()){
  7.  
  8. String input=scan.nextLine();
  9. String a=input.trim("@");
  10. System.out.println(a);
  11.  
  12. }
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘import’ does not name a type
prog.cpp:3:8: error: expected ‘:’ before ‘static’
prog.cpp:3:25: error: ‘String’ has not been declared
prog.cpp:3:34: error: expected ‘,’ or ‘...’ before ‘args’
prog.cpp:14:1: error: expected ‘;’ after class definition
prog.cpp: In static member function ‘static void t::main(int*)’:
prog.cpp:5:1: error: ‘Scanner’ was not declared in this scope
prog.cpp:5:9: error: expected ‘;’ before ‘scan’
prog.cpp:6:7: error: ‘scan’ was not declared in this scope
prog.cpp:8:2: error: ‘String’ was not declared in this scope
prog.cpp:8:9: error: expected ‘;’ before ‘input’
prog.cpp:9:9: error: expected ‘;’ before ‘a’
prog.cpp:10:2: error: ‘System’ was not declared in this scope
prog.cpp:10:21: error: ‘a’ was not declared in this scope
stdout
Standard output is empty