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_19238469_19874.cpp:2:7: error: expected nested-name-specifier before 'System'
 using System;
       ^
0_0_19238469_19874.cpp:3:7: error: expected nested-name-specifier before 'System'
 using System.Collections.Generic;
       ^
0_0_19238469_19874.cpp:9:10: error: expected ':' before 'static'
   public static void Main(string[] args)
          ^
0_0_19238469_19874.cpp:9:27: error: 'string' has not been declared
   public static void Main(string[] args)
                           ^
0_0_19238469_19874.cpp:9:36: error: expected ',' or '...' before 'args'
   public static void Main(string[] args)
                                    ^
0_0_19238469_19874.cpp:31:1: error: expected ';' after class definition
 }
 ^
0_0_19238469_19874.cpp: In static member function 'static void a1::Program::Main(int*)':
0_0_19238469_19874.cpp:11:4: error: 'List' was not declared in this scope
    List<string> s1=new List<string>();
    ^
0_0_19238469_19874.cpp:11:9: error: 'string' was not declared in this scope
    List<string> s1=new List<string>();
         ^
0_0_19238469_19874.cpp:11:17: error: 's1' was not declared in this scope
    List<string> s1=new List<string>();
                 ^
0_0_19238469_19874.cpp:11:24: error: 'List' does not name a type
    List<string> s1=new List<string>();
                        ^
0_0_19238469_19874.cpp:11:37: error: expected primary-expression before ')' token
    List<string> s1=new List<string>();
                                     ^
0_0_19238469_19874.cpp:12:17: error: 's2' was not declared in this scope
    List<string> s2=new List<string>();
                 ^
0_0_19238469_19874.cpp:12:24: error: 'List' does not name a type
    List<string> s2=new List<string>();
                        ^
0_0_19238469_19874.cpp:12:37: error: expected primary-expression before ')' token
    List<string> s2=new List<string>();
                                     ^
0_0_19238469_19874.cpp:13:11: error: expected ';' before 'str'
    string str="";
           ^
0_0_19238469_19874.cpp:14:4: error: 'str' was not declared in this scope
    str=Console.ReadLine();
    ^
0_0_19238469_19874.cpp:14:8: error: 'Console' was not declared in this scope
    str=Console.ReadLine();
        ^
0_0_19238469_19874.cpp:15:36: error: 'null' was not declared in this scope
    while((str=Console.ReadLine())!=null){
                                    ^
0_0_19238469_19874.cpp:17:12: error: expected primary-expression before ']' token
     string[] s=str.Split(' ');
            ^
0_0_19238469_19874.cpp:18:12: error: 's' was not declared in this scope
     s1.Add(s[0]);s2.Add(s[1]);
            ^
0_0_19238469_19874.cpp:21:36: error: 'null' was not declared in this scope
    while((str=Console.ReadLine())!=null){
                                    ^
0_0_19238469_19874.cpp:23:12: error: expected primary-expression before ']' token
     string[] a=s1.ToArray();
            ^
0_0_19238469_19874.cpp:24:12: error: expected primary-expression before ']' token
     string[] b=s2.ToArray();
            ^
0_0_19238469_19874.cpp:25:19: error: 'a' was not declared in this scope
     for(int i=0;i<a.Length;i++){
                   ^


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-04 17:35:43, Gzip enabled