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_19989155_30828.cpp:4:6: error: expected nested-name-specifier before '&' token
 using namespace std;
      ^
0_0_19989155_30828.cpp:4:21: error: expected identifier before '&' token
 using namespace std;
                     ^
0_0_19989155_30828.cpp:4:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;
                          ^
0_0_19989155_30828.cpp:4:27: error: 'std' does not name a type
 using namespace std;
                           ^
0_0_19989155_30828.cpp:5:5: error: 'nbsp' declared as reference but not initialized
 int main(){
     ^
0_0_19989155_30828.cpp: In function 'int main()':
0_0_19989155_30828.cpp:6:29: error: 'nbsp' declared as reference but not initialized
     int n,m,w;
                             ^
0_0_19989155_30828.cpp:6:34: error: 'n' was not declared in this scope
     int n,m,w;
                                  ^
0_0_19989155_30828.cpp:6:36: error: 'm' was not declared in this scope
     int n,m,w;
                                    ^
0_0_19989155_30828.cpp:6:38: error: 'w' was not declared in this scope
     int n,m,w;
                                      ^
0_0_19989155_30828.cpp:8:31: error: 'cin' was not declared in this scope
     while(cin>>n>>m){
                               ^
0_0_19989155_30828.cpp:8:31: note: suggested alternative:
In file included from 0_0_19989155_30828.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
0_0_19989155_30828.cpp:9:56: error: 'nbsp' declared as reference but not initialized
         double av1=0,av2=0,av3=0;
                                                        ^
0_0_19989155_30828.cpp:9:61: error: 'av1' was not declared in this scope
         double av1=0,av2=0,av3=0;
                                                             ^
0_0_19989155_30828.cpp:9:67: error: 'av2' was not declared in this scope
         double av1=0,av2=0,av3=0;
                                                                   ^
0_0_19989155_30828.cpp:9:73: error: 'av3' was not declared in this scope
         double av1=0,av2=0,av3=0;
                                                                         ^
0_0_19989155_30828.cpp:10:53: error: conflicting declaration 'int& nbsp'
         int sum=0;
                                                     ^
0_0_19989155_30828.cpp:9:56: note: previous declaration as 'double& nbsp'
         double av1=0,av2=0,av3=0;
                                                        ^
0_0_19989155_30828.cpp:10:58: error: 'sum' was not declared in this scope
         int sum=0;
                                                          ^
0_0_19989155_30828.cpp:11:56: error: redeclaration of 'double& nbsp'
         double q[5] ={0};
                                                        ^
0_0_19989155_30828.cpp:9:56: note: 'double& nbsp' previously declared here
         double av1=0,av2=0,av3=0;
                                                        ^
0_0_19989155_30828.cpp:11:61: error: 'q' was not declared in this scope
         double q[5] ={0};
                                                             ^
0_0_19989155_30828.cpp:11:71: error: expected primary-expression before '=' token
         double q[5] ={0};
                                                                       ^
0_0_19989155_30828.cpp:12:53: error: conflicting declaration 'int& nbsp'
         int avrage =0;
                                                     ^
0_0_19989155_30828.cpp:9:56: note: previous declaration as 'double& nbsp'
         double av1=0,av2=0,av3=0;
                                                        ^
0_0_19989155_30828.cpp:12:58: error: 'avrage' was not declared in this scope
         int avrage =0;
                                                          ^
0_0_19989155_30828.cpp:12:70: error: expected primary-expression before '=' token
         int avrage =0;
                                                                      ^
0_0_19989155_30828.cpp:13:56: error: redeclaration of 'double& nbsp'
         double a[50][5]    ={0};
                                                        ^
0_0_19989155_30828.cpp:9:56: note: 'double& nbsp' previously declared here
         double av1=0,av2=0,av3=0;
                                                        ^
0_0_19989155_30828.cpp:13:61: error: 'a' was not declared in this scope
         double a[50][5]    ={0};
                                                             ^
0_0_19989155_30828.cpp:13:88: error: expected primary-expression before '=' token
         double a[50][5]    ={0};
                                                                                        ^
0_0_19989155_30828.cpp:15:57: error: 'nbsp' declared as reference but not initialized
         for(int i=0;i<n;i++    ){    
                                                         ^
0_0_19989155_30828.cpp:15:62: error: 'i' was not declared in this scope
         for(int i=0;i<n;i++    ){    
                                                              ^
0_0_19989155_30828.cpp:15:69: error: expected ')' before ';' token
         for(int i=0;i<n;i++    ){    
                                                                     ^
0_0_19989155_30828.cpp:15:70: error: 'i' was not declared in this scope
         for(int i=0;i<n;i++    ){    
                                                                      ^
0_0_19989155_30828.cpp:15:92: error: expected primary-expression before ')' token
         for(int i=0;i<n;i++    ){    
                                                                                            ^
0_0_19989155_30828.cpp:20:57: error: 'nbsp' declared as reference but not initialized
         for(int u=0;u<n;u++){    //求n个学生的平均成绩
                                                         ^
0_0_19989155_30828.cpp:20:62: error: 'u' was not declared in this scope
         for(int u=0;u<n;u++){    //求n个学生的平均成绩
                                                              ^
0_0_19989155_30828.cpp:20:69: error: expected ')' before ';' token
         for(int u=0;u<n;u++){    //求n个学生的平均成绩
                                                                     ^
0_0_19989155_30828.cpp:20:70: error: 'u' was not declared in this scope
         for(int u=0;u<n;u++){    //求n个学生的平均成绩
                                                                      ^
0_0_19989155_30828.cpp:31:57: error: 'nbsp' declared as reference but not initialized
         for(int e=0;e<m;e++){    //求m门课的平均成绩
                                                         ^
0_0_19989155_30828.cpp:31:62: error: 'e' was not declared in this scope
         for(int e=0;e<m;e++){    //求m门课的平均成绩
                                                              ^
0_0_19989155_30828.cpp:31:69: error: expected ')' before ';' token
         for(int e=0;e<m;e++){    //求m门课的平均成绩
                                                                     ^
0_0_19989155_30828.cpp:31:70: error: 'e' was not declared in this scope
         for(int e=0;e<m;e++){    //求m门课的平均成绩
                                                                      ^
0_0_19989155_30828.cpp:45:57: error: 'nbsp' declared as reference but not initialized
         for(int w=0;w<n;w++){
                                                         ^
0_0_19989155_30828.cpp:45:69: error: expected ')' before ';' token
         for(int w=0;w<n;w++){
                                                                     ^
0_0_19989155_30828.cpp:54:49: error: 'cout' was not declared in


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-06 08:36:21, Gzip enabled