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_32994604_30046.cpp:1:7: error: expected nested-name-specifier before 'System'
 using System.Linq;
       ^
0_0_32994604_30046.cpp:4:22: error: 'string' has not been declared
     static void Main(string[] args)
                      ^
0_0_32994604_30046.cpp:4:31: error: expected ',' or '...' before 'args'
     static void Main(string[] args)
                               ^
0_0_32994604_30046.cpp:8:1: error: expected ';' after class definition
 }
 ^
0_0_32994604_30046.cpp: In static member function 'static void Program::Main(int*)':
0_0_32994604_30046.cpp:6:9: error: 'Console' was not declared in this scope
         Console.WriteLine(Console.ReadLine().Split(' ').Select(c => int.Parse(c)).Sum());
         ^
0_0_32994604_30046.cpp:6:64: error: 'c' was not declared in this scope
         Console.WriteLine(Console.ReadLine().Split(' ').Select(c => int.Parse(c)).Sum());
                                                                ^
0_0_32994604_30046.cpp:6:67: error: expected primary-expression before '>' token
         Console.WriteLine(Console.ReadLine().Split(' ').Select(c => int.Parse(c)).Sum());
                                                                   ^
0_0_32994604_30046.cpp:6:69: error: expected primary-expression before 'int'
         Console.WriteLine(Console.ReadLine().Split(' ').Select(c => int.Parse(c)).Sum());
                                                                     ^


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-07-03 18:06:40, Gzip enabled