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_38812656_26173.cpp:9:7: error: missing terminating " character
    9 | scanf("%d
      |       ^~~
0_0_38812656_26173.cpp:10:1: error: missing terminating " character
   10 | ",&m);
      | ^~~~~~
0_0_38812656_26173.cpp:15:8: error: missing terminating " character
   15 | printf("
      |        ^
0_0_38812656_26173.cpp:16:1: error: missing terminating " character
   16 | ");
      | ^~~
0_0_38812656_26173.cpp:30:8: error: missing terminating " character
   30 | printf("
      |        ^
0_0_38812656_26173.cpp:31:1: error: missing terminating " character
   31 | ");
      | ^~~
0_0_38812656_26173.cpp: In function 'int main()':
0_0_38812656_26173.cpp:8:1: error: 'scanf' was not declared in this scope
    8 | scanf("%d ",&n);
      | ^~~~~
0_0_38812656_26173.cpp:11:1: error: expected primary-expression before 'for'
   11 | for(i=0;i<n;i++)
      | ^~~
0_0_38812656_26173.cpp:11:16: error: expected ';' before ')' token
   11 | for(i=0;i<n;i++)
      |                ^
      |                ;
0_0_38812656_26173.cpp:17:1: error: expected primary-expression before 'for'
   17 | for(i=0;i<n;i++)
      | ^~~
0_0_38812656_26173.cpp:17:16: error: expected ';' before ')' token
   17 | for(i=0;i<n;i++)
      |                ^
      |                ;
0_0_38812656_26173.cpp:29:1: error: 'printf' was not declared in this scope
   29 | printf("%d ",a[i]);
      | ^~~~~~
0_0_38812656_26173.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | int main()
0_0_38812656_26173.cpp:32:1: error: expected primary-expression before 'return'
   32 | return 0;
      | ^~~~~~


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-26 10:29:24, Gzip enabled