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_27546240_13818.cpp:1:11: error: #include expects "FILENAME" or <FILENAME>
 #include  
           ^
0_0_27546240_13818.cpp: In function 'int main()':
0_0_27546240_13818.cpp:6:14: error: 'scanf' was not declared in this scope
 scanf("%d",&n);
              ^
0_0_27546240_13818.cpp:9:6: error: expected ';' before 'a'
      a[i][0]=1;      
      ^
0_0_27546240_13818.cpp:9:15: error: expected ')' before ';' token
      a[i][0]=1;      
               ^
0_0_27546240_13818.cpp:11:6: error: expected ';' before 'for'
      for(j=1;j<=i;j++)
      ^
0_0_27546240_13818.cpp:11:6: error: expected primary-expression before 'for'
0_0_27546240_13818.cpp:11:6: error: expected ')' before 'for'
0_0_27546240_13818.cpp:14:4: error: expected ';' before '{' token
    { for(j=0;j<=i;j++)
    ^
0_0_27546240_13818.cpp:14:4: error: expected primary-expression before '{' token
0_0_27546240_13818.cpp:14:4: error: expected ')' before '{' token
0_0_27546240_13818.cpp:15:28: error: 'printf' was not declared in this scope
        printf("%5d",a[i][j]);
                            ^
0_0_27546240_13818.cpp:16:17: error: 'printf' was not declared in this scope
      printf("\n");
                 ^


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-25 18:57:13, Gzip enabled