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_39659033_9289.cpp:1:3: error: invalid preprocessing directive #Loop
    1 | # Loop until the input starts with 0
      |   ^~~~
0_0_39659033_9289.cpp:3:7: error: invalid preprocessing directive #Read
    3 |     # Read the first integer N, which indicates how many integers follow, and the rest of the line
      |       ^~~~
0_0_39659033_9289.cpp:8:7: error: invalid preprocessing directive #Split
    8 |     # Split the line into a list of strings, then convert the first string to an integer for N
      |       ^~~~~
0_0_39659033_9289.cpp:12:7: error: invalid preprocessing directive #Convert
   12 |     # Convert the rest of the strings to integers and sum them
      |       ^~~~~~~
0_0_39659033_9289.cpp:13:42: error: stray '#' in program
   13 |     numbers = list(map(int, parts[1:]))  # parts[1:] gets all elements except the first one (N)
      |                                          ^
0_0_39659033_9289.cpp:16:7: error: invalid preprocessing directive #Print
   16 |     # Print the sum for this test case
      |       ^~~~~
0_0_39659033_9289.cpp:2:1: error: expected unqualified-id before 'while'
    2 | while True:
      | ^~~~~


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-09-28 15:25:19, Gzip enabled