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_27760801_1810.cpp:4:2: error: stray '#' in program
  int n, x,i,d;
  ^
0_0_27760801_1810.cpp:5:2: error: stray '#' in program
  for (;;)
  ^
0_0_27760801_1810.cpp:6:2: error: stray '#' in program
  {
  ^
0_0_27760801_1810.cpp:7:2: error: stray '#' in program
   scanf_s("%d", &n);
  ^
0_0_27760801_1810.cpp:7:8: error: stray '#' in program
   scanf_s("%d", &n);
        ^
0_0_27760801_1810.cpp:8:2: error: stray '#' in program
   if (n == 0)
  ^
0_0_27760801_1810.cpp:8:8: error: stray '#' in program
   if (n == 0)
        ^
0_0_27760801_1810.cpp:9:2: error: stray '#' in program
    break;
  ^
0_0_27760801_1810.cpp:9:8: error: stray '#' in program
    break;
        ^
0_0_27760801_1810.cpp:9:14: error: stray '#' in program
    break;
              ^
0_0_27760801_1810.cpp:10:2: error: stray '#' in program
   for (i = 0£¬x=0; i < n; i++)
  ^
0_0_27760801_1810.cpp:10:8: error: stray '#' in program
   for (i = 0£¬x=0; i < n; i++)
        ^
0_0_27760801_1810.cpp:10:1: error: stray '\243' in program
   for (i = 0£¬x=0; i < n; i++)
 ^
0_0_27760801_1810.cpp:10:1: error: stray '\254' in program
0_0_27760801_1810.cpp:11:2: error: stray '#' in program
   {
  ^
0_0_27760801_1810.cpp:11:8: error: stray '#' in program
   {
        ^
0_0_27760801_1810.cpp:12:2: error: stray '#' in program
    scanf_s("%d", &d);
  ^
0_0_27760801_1810.cpp:12:8: error: stray '#' in program
    scanf_s("%d", &d);
        ^
0_0_27760801_1810.cpp:12:14: error: stray '#' in program
    scanf_s("%d", &d);
              ^
0_0_27760801_1810.cpp:13:2: error: stray '#' in program
    x = d / 100+x;
  ^
0_0_27760801_1810.cpp:13:8: error: stray '#' in program
    x = d / 100+x;
        ^
0_0_27760801_1810.cpp:13:14: error: stray '#' in program
    x = d / 100+x;
              ^
0_0_27760801_1810.cpp:14:2: error: stray '#' in program
    d = d % 100;
  ^
0_0_27760801_1810.cpp:14:8: error: stray '#' in program
    d = d % 100;
        ^
0_0_27760801_1810.cpp:14:14: error: stray '#' in program
    d = d % 100;
              ^
0_0_27760801_1810.cpp:15:2: error: stray '#' in program
    x = d / 50+x;
  ^
0_0_27760801_1810.cpp:15:8: error: stray '#' in program
    x = d / 50+x;
        ^
0_0_27760801_1810.cpp:15:14: error: stray '#' in program
    x = d / 50+x;
              ^
0_0_27760801_1810.cpp:16:2: error: stray '#' in program
    d = d % 50;
  ^
0_0_27760801_1810.cpp:16:8: error: stray '#' in program
    d = d % 50;
        ^
0_0_27760801_1810.cpp:16:14: error: stray '#' in program
    d = d % 50;
              ^
0_0_27760801_1810.cpp:17:2: error: stray '#' in program
    x = d / 10+x;
  ^
0_0_27760801_1810.cpp:17:8: error: stray '#' in program
    x = d / 10+x;
        ^
0_0_27760801_1810.cpp:17:14: error: stray '#' in program
    x = d / 10+x;
              ^
0_0_27760801_1810.cpp:18:2: error: stray '#' in program
    d = d % 10;
  ^
0_0_27760801_1810.cpp:18:8: error: stray '#' in program
    d = d % 10;
        ^
0_0_27760801_1810.cpp:18:14: error: stray '#' in program
    d = d % 10;
              ^
0_0_27760801_1810.cpp:19:2: error: stray '#' in program
    x = d / 5+x; 
  ^
0_0_27760801_1810.cpp:19:8: error: stray '#' in program
    x = d / 5+x; 
        ^
0_0_27760801_1810.cpp:19:14: error: stray '#' in program
    x = d / 5+x; 
              ^
0_0_27760801_1810.cpp:20:2: error: stray '#' in program
    d = d % 5;
  ^
0_0_27760801_1810.cpp:20:8: error: stray '#' in program
    d = d % 5;
        ^
0_0_27760801_1810.cpp:20:14: error: stray '#' in program
    d = d % 5;
              ^
0_0_27760801_1810.cpp:21:2: error: stray '#' in program
    x = d / 2+x; 
  ^
0_0_27760801_1810.cpp:21:8: error: stray '#' in program
    x = d / 2+x; 
        ^
0_0_27760801_1810.cpp:21:14: error: stray '#' in program
    x = d / 2+x; 
              ^
0_0_27760801_1810.cpp:22:2: error: stray '#' in program
    d = d % 2;
  ^
0_0_27760801_1810.cpp:22:8: error: stray '#' in program
    d = d % 2;
        ^
0_0_27760801_1810.cpp:22:14: error: stray '#' in program
    d = d % 2;
              ^
0_0_27760801_1810.cpp:23:2: error: stray '#' in program
    x = d+x;    
  ^
0_0_27760801_1810.cpp:23:8: error: stray '#' in program
    x = d+x;    
        ^
0_0_27760801_1810.cpp:23:14: error: stray '#' in program
    x = d+x;    
              ^
0_0_27760801_1810.cpp:23:29: error: stray '#' in program
    x = d+x;    
                             ^
0_0_27760801_1810.cpp:23:36: error: stray '#' in program
    x = d+x;    
                                    ^
0_0_27760801_1810.cpp:24:2: error: stray '#' in program
   }
  ^
0_0_27760801_1810.cpp:24:8: error: stray '#' in program
   }
        ^
0_0_27760801_1810.cpp:25:2: error: stray '#' in program
   printf("%d\n", x);
  ^
0_0_27760801_1810.cpp:25:8: error: stray '#' in program
   printf("%d\n", x);
        ^
0_0_27760801_1810.cpp:26:2: error: stray '#' in program
  }
  ^
0_0_27760801_1810.cpp:27:2: error: stray '#' in program
     return 0;
  ^
0_0_27760801_1810.cpp:27:8: error: stray '#' in program
     return 0;
        ^
0_0_27760801_1810.cpp:27:14: error: stray '#' in program
     return 0;
              ^
0_0_27760801_1810.cpp: In function 'int main()':
0_0_27760801_1810.cpp:4:3: error: lvalue required as unary '&' operand
  int n, x,i,d;
   ^
0_0_27760801_1810.cpp:5:3: error: lvalue required as unary '&' operand
  for (;;)
   ^
0_0_27760801_1810.cpp:6:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_27760801_1810.cpp:7:3: error: lvalue required as unary '&' operand
   scanf_s("%d", &n);
   ^
0_0_27760801_1810.cpp:7:9: error: lvalue required as unary '&' operand
   scanf_s("%d", &n);
         ^
0_0_27760801_1810.cpp:7:29: error: 'scanf_s' was not declared in this scope
   scanf_s("%d", &n);
                             ^
0_0_27760801_1810.cpp:8:3: error: lvalue required as unary '&' operand
   if (n == 0)
   ^
0_0_27760801_1810.cpp:8:9: error: lvalue required as unary '&' operand
   if (n == 0)
         ^
0_0_27760801_1810.cpp:9:3: error: lvalue required as unary '&' operand
    break;
   ^
0_0_27760801_1810.cpp:9:9: error: lvalue required as unary '&' operand
    break;
         ^
0_0_27760801_1810.cpp:9:15: error: lvalue required as unary '&' operand
    break;
               ^
0_0_27760801_1810.cpp:9:19: error: break statement not within loop or switch
    break;
                   ^
0_0_27760801_1810.cpp:10:3: error: lvalue required as unary '&' operand
   for (i = 0£¬x=0; i < n; i++)
   ^
0_0_27760801_1810.cpp:10:9: error: lvalue required as unary '&' operand
   for (i = 0£¬x=0; i < n; i++)
         ^
0_0_27760801_1810.cpp:10:25: error: expected ';' before 'x'
   for (i = 0£¬x=0; i < n; i++)
                         ^
0_0_27760801_1810.cpp:11:3: error: lvalue required as unary '&' operand
   {
   ^
0_0_27760801_1810.cpp:11:9: error: lvalue required as unary '&' operand
   {
         ^
0_0_27760801_1810.cpp:12:3: error: lvalue required as unary '&' operand
    scanf_s("%d", &d);
   ^
0_0_27760801_1810.cpp:12:9: error: lvalue required as unary '&' operand
    scanf_s("%d", &d);
         ^
0_0_27760801_1810.cpp:12:15: error: lvalue required as unary '&' operand
    scanf_s("%d", &d);
               ^
0_0_27760801_1810.cpp:13:3: error: lvalue required as unary '&' operand
    x = d / 100+x;
   ^
0_0_27760801_1810.cpp:13:9: error: lvalue required as unary '&' operand
    x = d / 100+x;
         ^
0_0_27760801_1810.cpp:13:15: error: lvalue required as unary '&' operand
    x = d / 100+x;
               ^
0_0_27760801_1810.cpp:14:3: error: lvalue required as unary '&' operand
    d = d % 100;
   ^
0_0_27760801_1810.cpp:14:9: error: lvalue required as unary '&' operand
    d = d % 100;
         ^
0_0_27760801_1810.cpp:14:15: error: lvalue required as unary '&' operand
    d = d % 100;
               ^
0_0_27760801_1810.cpp:15:3: error: lvalue required as unary '&' operand
    x = d / 50+x;
   ^
0_0_27760801_1810.cpp:15:9: error: lvalue required as unary '&' operand
    x = d / 50+x;
         ^
0_0_27760801_1810.cpp:15:15: error: lvalue required as unary '&' operand
    x =


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.000000(s) query 1, Server time : 2025-02-17 12:32:16, Gzip enabled