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_34709734_18700.cpp:10:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_34709734_18700.cpp: In function 'int main()':
0_0_34709734_18700.cpp:12:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_34709734_18700.cpp:2:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_34709734_18700.cpp:14:7: error: 'cin' was not declared in this scope
 while(cin >> a >> b) {
       ^
0_0_34709734_18700.cpp:15:1: error: 'cout' was not declared in this scope
 cout << a + b << endl;
 ^
0_0_34709734_18700.cpp:15:18: error: 'endl' was not declared in this scope
 cout << a + b << endl;
                  ^
0_0_34709734_18700.cpp: At global scope:
0_0_34709734_18700.cpp:20:7: error: expected nested-name-specifier before 'System'
 using System;
       ^
0_0_34709734_18700.cpp:21:7: error: expected nested-name-specifier before 'System'
 using System.Collections.Generic;
       ^
0_0_34709734_18700.cpp:22:7: error: expected nested-name-specifier before 'System'
 using System.Linq;
       ^
0_0_34709734_18700.cpp:23:7: error: expected nested-name-specifier before 'System'
 using System.Text;
       ^
0_0_34709734_18700.cpp:24:7: error: expected nested-name-specifier before 'System'
 using System.Threading.Tasks;
       ^
0_0_34709734_18700.cpp:29:18: error: 'string' has not been declared
 static void Main(string[] args)
                  ^
0_0_34709734_18700.cpp:29:27: error: expected ',' or '...' before 'args'
 static void Main(string[] args)
                           ^
0_0_34709734_18700.cpp:41:1: error: expected ';' after class definition
 }
 ^
0_0_34709734_18700.cpp: In static member function 'static void csharp::Program::Main(int*)':
0_0_34709734_18700.cpp:31:1: error: 'string' was not declared in this scope
 string s;
 ^
0_0_34709734_18700.cpp:33:9: error: 's' was not declared in this scope
 while ((s = Console.ReadLine())!=null)
         ^
0_0_34709734_18700.cpp:33:13: error: 'Console' was not declared in this scope
 while ((s = Console.ReadLine())!=null)
             ^
0_0_34709734_18700.cpp:33:34: error: 'null' was not declared in this scope
 while ((s = Console.ReadLine())!=null)
                                  ^
0_0_34709734_18700.cpp:35:8: error: expected primary-expression before ']' token
 string[] str = s.Split(' ');
        ^
0_0_34709734_18700.cpp:36:5: error: 'Convert' was not declared in this scope
 a = Convert.ToInt32(str[0]);
     ^
0_0_34709734_18700.cpp:36:21: error: 'str' was not declared in this scope
 a = Convert.ToInt32(str[0]);
                     ^
0_0_34709734_18700.cpp: At global scope:
0_0_34709734_18700.cpp:44:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_34709734_18700.cpp:45:1: error: expected unqualified-id before 'public'
 public class Main {
 ^


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-23 05:52:19, Gzip enabled