F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_24467607_28701.cpp:1:1: error: stray '\312' in program
 package Êý×ÖÀÛ¼Ó;
 ^
0_0_24467607_28701.cpp:1:1: error: stray '\375' in program
0_0_24467607_28701.cpp:1:1: error: stray '\327' in program
0_0_24467607_28701.cpp:1:1: error: stray '\326' in program
0_0_24467607_28701.cpp:1:1: error: stray '\300' in program
0_0_24467607_28701.cpp:1:1: error: stray '\333' in program
0_0_24467607_28701.cpp:1:1: error: stray '\274' in program
0_0_24467607_28701.cpp:1:1: error: stray '\323' in program
0_0_24467607_28701.cpp:1:1: error: 'package' does not name a type
0_0_24467607_28701.cpp:3:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_24467607_28701.cpp:8:9: error: expected ':' before 'sum'
  public sum(int n) {
         ^
0_0_24467607_28701.cpp:11:9: error: expected ':' before 'sum'
  public sum() {
         ^
0_0_24467607_28701.cpp:24:1: error: expected ';' after class definition
 }
 ^
0_0_24467607_28701.cpp: In constructor 'sum::sum(int)':
0_0_24467607_28701.cpp:9:8: error: request for member 'n' in '(sum*)this', which is of pointer type 'sum*' (maybe you meant to use '->' ?)
   this.n=n;
        ^
0_0_24467607_28701.cpp: In member function 'void sum::shuchu()':
0_0_24467607_28701.cpp:21:3: error: 'System' was not declared in this scope
   System.out.println(s);
   ^
0_0_24467607_28701.cpp: At global scope:
0_0_24467607_28701.cpp:26:1: error: expected unqualified-id before 'public'
 public class mysum {
 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-01 12:48:56, Gzip enabled