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_22633383_11299.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <stdio.h>
         ^
0_0_22633383_11299.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include <string.h>
         ^
0_0_22633383_11299.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include <algorithm>
         ^
0_0_22633383_11299.cpp:5:5: error: 'nbsp' declared as reference but not initialized
 int a[20];
     ^
0_0_22633383_11299.cpp:5:10: error: 'a' does not name a type
 int a[20];
          ^
0_0_22633383_11299.cpp:7:8: error: 'nbsp' declared as an 'inline' variable
 inline int abs(int x)
        ^
0_0_22633383_11299.cpp:7:8: error: redefinition of 'int& nbsp'
0_0_22633383_11299.cpp:5:5: note: 'int& nbsp' previously declared here
 int a[20];
     ^
0_0_22633383_11299.cpp:7:17: error: redefinition of 'int& nbsp'
 inline int abs(int x)
                 ^
0_0_22633383_11299.cpp:5:5: note: 'int& nbsp' previously declared here
 int a[20];
     ^
0_0_22633383_11299.cpp:7:34: error: expected ')' before ';' token
 inline int abs(int x)
                                  ^
0_0_22633383_11299.cpp:7:34: error: expected constructor, destructor, or type conversion before ';' token
0_0_22633383_11299.cpp:7:35: error: 'x' does not name a type
 inline int abs(int x)
                                   ^
0_0_22633383_11299.cpp:13:5: error: redefinition of 'int& nbsp'
 int main()
     ^
0_0_22633383_11299.cpp:5:5: note: 'int& nbsp' previously declared here
 int a[20];
     ^
0_0_22633383_11299.cpp: In function 'int main()':
0_0_22633383_11299.cpp:16:29: error: 'nbsp' declared as reference but not initialized
     int c, s, n, cas = 1;
                             ^
0_0_22633383_11299.cpp:16:34: error: 'c' was not declared in this scope
     int c, s, n, cas = 1;
                                  ^
0_0_22633383_11299.cpp:16:42: error: 's' was not declared in this scope
     int c, s, n, cas = 1;
                                          ^
0_0_22633383_11299.cpp:16:50: error: 'n' was not declared in this scope
     int c, s, n, cas = 1;
                                                  ^
0_0_22633383_11299.cpp:16:58: error: 'cas' was not declared in this scope
     int c, s, n, cas = 1;
                                                          ^
0_0_22633383_11299.cpp:16:67: error: expected primary-expression before '=' token
     int c, s, n, cas = 1;
                                                                   ^
0_0_22633383_11299.cpp:17:56: error: expected ')' before ';' token
     while(~scanf("%d %d", &c, &s))
                                                        ^
0_0_22633383_11299.cpp:17:56: error: expected ')' before ';' token
0_0_22633383_11299.cpp:19:56: error: 'a' was not declared in this scope
         memset(a, 0, sizeof(a));
                                                        ^
0_0_22633383_11299.cpp:19:63: error: expected ')' before ';' token
         memset(a, 0, sizeof(a));
                                                               ^
0_0_22633383_11299.cpp:20:56: error: expected primary-expression before '=' token
         n = (c << 1) - s;
                                                        ^
0_0_22633383_11299.cpp:20:70: error: expected ')' before ';' token
         n = (c << 1) - s;
                                                                      ^
0_0_22633383_11299.cpp:20:71: error: expected primary-expression before '<<' token
         n = (c << 1) - s;
                                                                       ^
0_0_22633383_11299.cpp:20:80: error: expected ';' before ')' token
         n = (c << 1) - s;
                                                                                ^
0_0_22633383_11299.cpp:20:89: error: wrong type argument to unary minus
         n = (c << 1) - s;
                                                                                         ^
0_0_22633383_11299.cpp:21:53: error: 'nbsp' declared as reference but not initialized
         int ave = 0;
                                                     ^
0_0_22633383_11299.cpp:21:58: error: 'ave' was not declared in this scope
         int ave = 0;
                                                          ^
0_0_22633383_11299.cpp:21:67: error: expected primary-expression before '=' token
         int ave = 0;
                                                                   ^
0_0_22633383_11299.cpp:22:57: error: 'nbsp' declared as reference but not initialized
         for(int i = n; i < (c << 1); i++)
                                                         ^
0_0_22633383_11299.cpp:22:62: error: 'i' was not declared in this scope
         for(int i = n; i < (c << 1); i++)
                                                              ^
0_0_22633383_11299.cpp:22:69: error: expected primary-expression before '=' token
         for(int i = n; i < (c << 1); i++)
                                                                     ^
0_0_22633383_11299.cpp:22:75: error: expected ')' before ';' token
         for(int i = n; i < (c << 1); i++)
                                                                           ^
0_0_22633383_11299.cpp:22:84: error: 'i' was not declared in this scope
         for(int i = n; i < (c << 1); i++)
                                                                                    ^
0_0_22633383_11299.cpp:22:91: error: expected primary-expression before '<' token
         for(int i = n; i < (c << 1); i++)
                                                                                           ^
0_0_22633383_11299.cpp:22:105: error: expected ')' before ';' token
         for(int i = n; i < (c << 1); i++)
                                                                                                         ^
0_0_22633383_11299.cpp:22:106: error: expected primary-expression before '<<' token
         for(int i = n; i < (c << 1); i++)
                                                                                                          ^
0_0_22633383_11299.cpp:22:115: error: expected ';' before ')' token
         for(int i = n; i < (c << 1); i++)
                                                                                                                   ^
0_0_22633383_11299.cpp:24:89: error: expected ')' before ';' token
             scanf("%d", &a[i]);
                                                                                         ^
0_0_22633383_11299.cpp:25:82: error: expected primary-expression before '+=' token
             ave += a[i];
                                                                                  ^
0_0_22633383_11299.cpp:28:49: error: 'sort' is not a member of 'std'
         std::sort(a, a + (c << 1));
                                                 ^
0_0_22633383_11299.cpp:28:66: error: expected ')' before ';' token
         std::sort(a, a + (c << 1));
                                                                  ^
0_0_22633383_11299.cpp:28:88: error: expected ')' before ';' token
         std::sort(a, a + (c << 1));
                                                                                        ^
0_0_22633383_11299.cpp:28:89: error: expected primary-expression before '<<' token
         std::sort(a, a + (c << 1));
                                                                                         ^
0_0_22633383_11299.cpp:28:98: error: expected ';' before ')' token
         std::sort(


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-10-02 01:48:26, Gzip enabled