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_26492391_21881.cpp: In function 'int main()':
0_0_26492391_21881.cpp:9:5: error: expected primary-expression before '|' token
     |   int m;
     ^
0_0_26492391_21881.cpp:9:9: error: expected primary-expression before 'int'
     |   int m;
         ^
0_0_26492391_21881.cpp:10:5: error: expected primary-expression before '|' token
     |   cin >> m;
     ^
0_0_26492391_21881.cpp:10:16: error: 'm' was not declared in this scope
     |   cin >> m;
                ^
0_0_26492391_21881.cpp:11:5: error: expected primary-expression before '|' token
     |   a[0] = 0;
     ^
0_0_26492391_21881.cpp:12:5: error: expected primary-expression before '|' token
     |   a[1] = 1;
     ^
0_0_26492391_21881.cpp:13:5: error: expected primary-expression before '|' token
     |   for(int i = 2; i <=41; i++){
     ^
0_0_26492391_21881.cpp:13:9: error: expected primary-expression before 'for'
     |   for(int i = 2; i <=41; i++){
         ^
0_0_26492391_21881.cpp:13:24: error: 'i' was not declared in this scope
     |   for(int i = 2; i <=41; i++){
                        ^
0_0_26492391_21881.cpp:16:5: error: expected primary-expression before '|' token
     |   cout << a[m] << endl;
     ^


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