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_13401890_8652.cpp:1:7: error: expected nested-name-specifier before 'System'
 using System;
       ^
0_0_13401890_8652.cpp:2:7: error: expected nested-name-specifier before 'System'
 using System.Collections.Generic;
       ^
0_0_13401890_8652.cpp:3:7: error: expected nested-name-specifier before 'System'
 using System.Linq;
       ^
0_0_13401890_8652.cpp:4:7: error: expected nested-name-specifier before 'System'
 using System.Text;
       ^
0_0_13401890_8652.cpp:10:26: error: 'string' has not been declared
         static void Main(string[] args)
                          ^
0_0_13401890_8652.cpp:10:35: error: expected ',' or '...' before 'args'
         static void Main(string[] args)
                                   ^
0_0_13401890_8652.cpp:21:5: error: expected ';' after class definition
     }
     ^
0_0_13401890_8652.cpp: In static member function 'static void ConsoleApplication2::Program::Main(int*)':
0_0_13401890_8652.cpp:12:13: error: 'string' was not declared in this scope
             string str ;
             ^
0_0_13401890_8652.cpp:13:20: error: 'str' was not declared in this scope
             while((str=Console .ReadLine ())!=null) 
                    ^
0_0_13401890_8652.cpp:13:24: error: 'Console' was not declared in this scope
             while((str=Console .ReadLine ())!=null) 
                        ^
0_0_13401890_8652.cpp:13:47: error: 'null' was not declared in this scope
             while((str=Console .ReadLine ())!=null) 
                                               ^
0_0_13401890_8652.cpp:15:24: error: expected primary-expression before ']' token
                 string[] num = str.Split(' ');
                        ^
0_0_13401890_8652.cpp:16:35: error: 'Convert' was not declared in this scope
                 Console.WriteLine(Convert.ToInt32(num[0]) + Convert.ToInt32(num[1]));
                                   ^
0_0_13401890_8652.cpp:16:51: error: 'num' was not declared in this scope
                 Console.WriteLine(Convert.ToInt32(num[0]) + Convert.ToInt32(num[1]));
                                                   ^


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