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_37312846_15251.cpp:15:11: error: stray '@' in program
     always@(posedge Clk) begin  // 分频,要用模法战胜魔法,使得分频足够随机,足够均匀
           ^
0_0_37312846_15251.cpp:16:9: error: missing terminating ' character
         Counter = Counter + 8'b00000001;
         ^
0_0_37312846_15251.cpp:17:9: error: missing terminating ' character
         if (Counter%3==0) begin State = State+2'b01; end
         ^
0_0_37312846_15251.cpp:18:9: error: missing terminating ' character
         if (Counter%5==0) begin State = State+2'b01; end
         ^
0_0_37312846_15251.cpp:19:9: error: missing terminating ' character
         if (Counter%7==0) begin State = State+2'b01; end
         ^
0_0_37312846_15251.cpp:20:9: error: missing terminating ' character
         if (Counter%11==0) begin State = State+2'b01; end
         ^
0_0_37312846_15251.cpp:23:11: error: stray '@' in program
     always@(A or B or K or State) begin
           ^
0_0_37312846_15251.cpp:25:13: error: missing terminating ' character
             2'b00: C = A+B;
             ^
0_0_37312846_15251.cpp:26:13: error: missing terminating ' character
             2'b01: C = A-B;
             ^
0_0_37312846_15251.cpp:27:13: error: missing terminating ' character
             2'b10: C = A*B;
             ^
0_0_37312846_15251.cpp:28:13: error: missing terminating ' character
             2'b11: C = A/B;
             ^
0_0_37312846_15251.cpp:30:9: error: missing terminating ' character
         if ((K==2'b01) && (A<B)) begin
         ^
0_0_37312846_15251.cpp:31:13: error: missing terminating ' character
             C = 8'b00000000-C;
             ^
0_0_37312846_15251.cpp:32:13: error: missing terminating ' character
             Sign = 1'b1;
             ^
0_0_37312846_15251.cpp:34:13: error: missing terminating ' character
             Sign = 1'b0;
             ^
0_0_37312846_15251.cpp:38:13: error: missing terminating ' character
             2'b00: begin
             ^
0_0_37312846_15251.cpp:57:17: error: missing terminating ' character
                 Who = 4'b0001;
                 ^
0_0_37312846_15251.cpp:59:13: error: missing terminating ' character
             2'b01: begin
             ^
0_0_37312846_15251.cpp:78:17: error: missing terminating ' character
                 Who = 4'b0010;
                 ^
0_0_37312846_15251.cpp:80:13: error: missing terminating ' character
             2'b10: begin
             ^
0_0_37312846_15251.cpp:100:17: error: missing terminating ' character
                 Who = 4'b0100;
                 ^
0_0_37312846_15251.cpp:102:13: error: missing terminating ' character
             2'b11: begin
             ^
0_0_37312846_15251.cpp:122:17: error: missing terminating ' character
                 Who = 4'b1000;
                 ^
0_0_37312846_15251.cpp:1:1: error: 'module' does not name a type
 module test(A,B,K,Clk,Led,Sign,Who);
 ^
0_0_37312846_15251.cpp:2:5: error: 'input' does not name a type
     input [3:0] A, B;
     ^
0_0_37312846_15251.cpp:3:5: error: 'input' does not name a type
     input [1:0] K;
     ^
0_0_37312846_15251.cpp:4:5: error: 'input' does not name a type
     input Clk;
     ^
0_0_37312846_15251.cpp:5:5: error: 'output' does not name a type
     output [6:0] Led;
     ^
0_0_37312846_15251.cpp:6:5: error: 'output' does not name a type
     output Sign;
     ^
0_0_37312846_15251.cpp:7:5: error: 'output' does not name a type
     output [3:0] Who;
     ^
0_0_37312846_15251.cpp:8:5: error: 'reg' does not name a type
     reg [6:0] Led;
     ^
0_0_37312846_15251.cpp:9:5: error: 'reg' does not name a type
     reg Sign;
     ^
0_0_37312846_15251.cpp:10:5: error: 'reg' does not name a type
     reg [3:0] Who;
     ^
0_0_37312846_15251.cpp:11:5: error: 'reg' does not name a type
     reg [7:0] C;
     ^
0_0_37312846_15251.cpp:12:5: error: 'reg' does not name a type
     reg [1:0] State;
     ^
0_0_37312846_15251.cpp:13:5: error: 'reg' does not name a type
     reg [7:0] Counter;
     ^
0_0_37312846_15251.cpp:15:12: error: expected constructor, destructor, or type conversion before '(' token
     always@(posedge Clk) begin  // 分频,要用模法战胜魔法,使得分频足够随机,足够均匀
            ^
0_0_37312846_15251.cpp:41:21: error: expected unqualified-id before numeric constant
                     4'b0001: Led = 7'b0110000;
                     ^
0_0_37312846_15251.cpp:42:21: error: expected unqualified-id before numeric constant
                     4'b0010: Led = 7'b1101101;
                     ^
0_0_37312846_15251.cpp:43:21: error: expected unqualified-id before numeric constant
                     4'b0011: Led = 7'b1111001;
                     ^
0_0_37312846_15251.cpp:44:21: error: expected unqualified-id before numeric constant
                     4'b0100: Led = 7'b0110011;
                     ^
0_0_37312846_15251.cpp:45:21: error: expected unqualified-id before numeric constant
                     4'b0101: Led = 7'b1011011;
                     ^
0_0_37312846_15251.cpp:46:21: error: expected unqualified-id before numeric constant
                     4'b0110: Led = 7'b1011111;
                     ^
0_0_37312846_15251.cpp:47:21: error: expected unqualified-id before numeric constant
                     4'b0111: Led = 7'b1110000;
                     ^
0_0_37312846_15251.cpp:48:21: error: expected unqualified-id before numeric constant
                     4'b1000: Led = 7'b1111111;
                     ^
0_0_37312846_15251.cpp:49:21: error: expected unqualified-id before numeric constant
                     4'b1001: Led = 7'b1111011;
                     ^
0_0_37312846_15251.cpp:50:21: error: expected unqualified-id before numeric constant
                     4'b1010: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:51:21: error: expected unqualified-id before numeric constant
                     4'b1011: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:52:21: error: expected unqualified-id before numeric constant
                     4'b1100: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:53:21: error: expected unqualified-id before numeric constant
                     4'b1101: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:54:21: error: expected unqualified-id before numeric constant
                     4'b1110: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:55:21: error: expected unqualified-id before numeric constant
                     4'b1111: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:56:17: error: 'endcase' does not name a type
                 endcase
                 ^
0_0_37312846_15251.cpp:62:21: error: expected unqualified-id before numeric constant
                     4'b0001: Led = 7'b0110000;
                     ^
0_0_37312846_15251.cpp:63:21: error: expected unqualified-id before numeric constant
                     4'b0010: Led = 7'b1101101;
                     ^
0_0_37312846_15251.cpp:64:21: error: expected unqualified-id before numeric constant
                     4'b0011: Led = 7'b1111001;
                     ^
0_0_37312846_15251.cpp:65:21: error: expected unqualified-id before numeric constant
                     4'b0100: Led = 7'b0110011;
                     ^
0_0_37312846_15251.cpp:66:21: error: expected unqualified-id before numeric constant
                     4'b0101: Led = 7'b1011011;
                     ^
0_0_37312846_15251.cpp:67:21: error: expected unqualified-id before numeric constant
                     4'b0110: Led = 7'b1011111;
                     ^
0_0_37312846_15251.cpp:68:21: error: expected unqualified-id before numeric constant
                     4'b0111: Led = 7'b1110000;
                     ^
0_0_37312846_15251.cpp:69:21: error: expected unqualified-id before numeric constant
                     4'b1000: Led = 7'b1111111;
                     ^
0_0_37312846_15251.cpp:70:21: error: expected unqualified-id before numeric constant
                     4'b1001: Led = 7'b1111011;
                     ^
0_0_37312846_15251.cpp:71:21: error: expected unqualified-id before numeric constant
                     4'b1010: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:72:21: error: expected unqualified-id before numeric constant
                     4'b1011: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:73:21: error: expected unqualified-id before numeric constant
                     4'b1100: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:74:21: error: expected unqualified-id before numeric constant
                     4'b1101: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:75:21: error: expected unqualified-id before numeric constant
                     4'b1110: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:76:21: error: expected unqualified-id before numeric constant
                     4'b1111: Led = 7'b0000001;
                     ^
0_0_37312846_15251.cpp:77:17: error: 'endcase' does not name a type
                 endcase
                 ^
0_0_37312846_15251.cpp:82:17: error: expected unqualified-id before 'case'
                 case(C[3:0])
                 ^
0_0_37312846_15251.cpp:84:21: error: expected unqualified-id before numeric constant
                     4'b0001: Led = 7'b0110000;
                     ^
0_0_37312846_15251.cpp:85:21: error: expected unqualified-id before numeric constant
        


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 17:38:05, Gzip enabled