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_32776689_20144.cpp:46:2: error: stray '\243' in program
  double L;
  ^
0_0_32776689_20144.cpp:46:2: error: stray '\273' in program
0_0_32776689_20144.cpp:78:4: error: stray '\243' in program
    cout << "Good job,rabbit!" << endl;
    ^
0_0_32776689_20144.cpp:78:4: error: stray '\273' in program
0_0_32776689_20144.cpp: In function 'double Min(double, double)':
0_0_32776689_20144.cpp:43:2: error: named return values are no longer supported
  return x > y ? y : x;
  ^
0_0_32776689_20144.cpp:47:2: error: expected initializer before 'int'
  int n, i, j;
  ^
0_0_32776689_20144.cpp:51:16: error: 'L' was not declared in this scope
  while (cin >> L)//输入跑道长度 {
                ^
0_0_32776689_20144.cpp:52:10: error: 'n' was not declared in this scope
   cin >> n >> electricity_l >> electricity_t;//输入加电站的个数、电动车最大行驶距离、电动车的充电时间
          ^
0_0_32776689_20144.cpp:54:8: error: 'i' was not declared in this scope
   for (i = 1; i <= n; i++)//输入各个加电站距离起点的位置
        ^
0_0_32776689_20144.cpp:54:20: error: 'n' was not declared in this scope
   for (i = 1; i <= n; i++)//输入各个加电站距离起点的位置
                    ^
0_0_32776689_20144.cpp:56:5: error: 'n' was not declared in this scope
   s[n + 1] = L;//把第n+1个加电站设为终点,长度为L
     ^
0_0_32776689_20144.cpp:56:14: error: 'L' was not declared in this scope
   s[n + 1] = L;//把第n+1个加电站设为终点,长度为L
              ^
0_0_32776689_20144.cpp:59:8: error: 'i' was not declared in this scope
   for (i = 1; i <= n + 1; i++){
        ^
0_0_32776689_20144.cpp:61:9: error: 'j' was not declared in this scope
    for (j = 0; j < i; j++){
         ^
0_0_32776689_20144.cpp:79:2: error: expected ';' before '}' token
  }
  ^
0_0_32776689_20144.cpp: At global scope:
0_0_32776689_20144.cpp:80:2: error: expected unqualified-id before 'return'
  return 0;
  ^
0_0_32776689_20144.cpp:81:1: error: expected declaration before '}' token
 }
 ^


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-12-02 09:30:21, Gzip enabled