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_34614891_7480.cpp:22:6: error: expected unqualified-id before 'for'
      for(int i=1;i<=n;i++) 
      ^
0_0_34614891_7480.cpp:22:18: error: 'i' does not name a type
      for(int i=1;i<=n;i++) 
                  ^
0_0_34614891_7480.cpp:22:23: error: 'i' does not name a type
      for(int i=1;i<=n;i++) 
                       ^
0_0_34614891_7480.cpp:23:21: error: 'j' does not name a type
         for(int j=1;j<=n;j++)
                     ^
0_0_34614891_7480.cpp:23:26: error: 'j' does not name a type
         for(int j=1;j<=n;j++)
                          ^
0_0_34614891_7480.cpp:25:5: error: expected unqualified-id before 'for'
     for(int l=1;l<=n;l++)
     ^
0_0_34614891_7480.cpp:25:17: error: 'l' does not name a type
     for(int l=1;l<=n;l++)
                 ^
0_0_34614891_7480.cpp:25:22: error: 'l' does not name a type
     for(int l=1;l<=n;l++)
                      ^
0_0_34614891_7480.cpp:26:21: error: 'r' does not name a type
         for(int r=l;r<=n;r++)
                     ^
0_0_34614891_7480.cpp:26:26: error: 'r' does not name a type
         for(int r=l;r<=n;r++)
                          ^
0_0_34614891_7480.cpp:38:5: error: 'cout' does not name a type
     cout<<ans;
     ^
0_0_34614891_7480.cpp:39:5: error: expected unqualified-id before 'return'
     return 0;
     ^
0_0_34614891_7480.cpp:40:1: error: expected declaration before '}' token
 }
 ^


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 20:31:14, Gzip enabled