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_33510324_2599.cpp:1:7: error: expected nested-name-specifier before 'System'
 using System;
       ^
0_0_33510324_2599.cpp:5:12: error: expected ':' before 'static'
     public static void Main(string[] args)
            ^
0_0_33510324_2599.cpp:5:29: error: 'string' has not been declared
     public static void Main(string[] args)
                             ^
0_0_33510324_2599.cpp:5:38: error: expected ',' or '...' before 'args'
     public static void Main(string[] args)
                                      ^
0_0_33510324_2599.cpp:20:1: error: expected ';' after class definition
 }
 ^
0_0_33510324_2599.cpp: In static member function 'static void Program::Main(int*)':
0_0_33510324_2599.cpp:7:9: error: 'string' was not declared in this scope
         string line;
         ^
0_0_33510324_2599.cpp:9:9: error: 'Solver' was not declared in this scope
         Solver solver = new Solver();
         ^
0_0_33510324_2599.cpp:13:17: error: 'line' was not declared in this scope
         while ((line = Console.ReadLine()) != null)
                 ^
0_0_33510324_2599.cpp:13:24: error: 'Console' was not declared in this scope
         while ((line = Console.ReadLine()) != null)
                        ^
0_0_33510324_2599.cpp:13:47: error: 'null' was not declared in this scope
         while ((line = Console.ReadLine()) != null)
                                               ^
0_0_33510324_2599.cpp:15:17: error: expected primary-expression before 'int'
             N = int.Parse(line);
                 ^
0_0_33510324_2599.cpp:17:27: error: 'solver' was not declared in this scope
             Console.Write(solver.Question(N) + "\r\n\r\n");
                           ^
0_0_33510324_2599.cpp: At global scope:
0_0_33510324_2599.cpp:24:12: error: expected ':' before 'int'
     public int Question(int n)
            ^
0_0_33510324_2599.cpp:31:1: error: expected ';' after class definition
 }
 ^


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-11-29 09:31:26, Gzip enabled