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_21657911_6864.cpp:1:37: error: stray '#' in program
 <span style="font-size:18px;"><nobr>#include<bits/stdc++.h>
                                     ^
0_0_21657911_6864.cpp:1:1: error: expected unqualified-id before '<' token
 <span style="font-size:18px;"><nobr>#include<bits/stdc++.h>
 ^
0_0_21657911_6864.cpp:4:1: error: '__int64' does not name a type
 __int64 a[maxn],b[maxn],c[maxn];
 ^
0_0_21657911_6864.cpp: In function 'int main()':
0_0_21657911_6864.cpp:8:9: error: '__int64' was not declared in this scope
         __int64 maxr,sum,mod=1e9+7;
         ^
0_0_21657911_6864.cpp:9:29: error: 'scanf' was not declared in this scope
         while(~scanf("%d",&n)){
                             ^
0_0_21657911_6864.cpp:11:40: error: 'a' was not declared in this scope
                         scanf("%I64d",&a[i]);
                                        ^
0_0_21657911_6864.cpp:13:33: error: 'maxr' was not declared in this scope
                         if(i>1) maxr=max(maxr,a[i]);
                                 ^
0_0_21657911_6864.cpp:13:51: error: 'max' was not declared in this scope
                         if(i>1) maxr=max(maxr,a[i]);
                                                   ^
0_0_21657911_6864.cpp:14:30: error: 'maxr' was not declared in this scope
                         else maxr=a[i];
                              ^
0_0_21657911_6864.cpp:16:17: error: 'maxr' was not declared in this scope
                 maxr-=(n+1);
                 ^
0_0_21657911_6864.cpp:18:25: error: 'c' was not declared in this scope
                         c[i]=max(maxr,a[i]);
                         ^
0_0_21657911_6864.cpp:18:39: error: 'a' was not declared in this scope
                         c[i]=max(maxr,a[i]);
                                       ^
0_0_21657911_6864.cpp:18:43: error: 'max' was not declared in this scope
                         c[i]=max(maxr,a[i]);
                                           ^
0_0_21657911_6864.cpp:21:17: error: 'sum' was not declared in this scope
                 sum=0;
                 ^
0_0_21657911_6864.cpp:23:40: error: 'b' was not declared in this scope
                         scanf("%I64d",&b[i]);
                                        ^
0_0_21657911_6864.cpp:24:34: error: 'c' was not declared in this scope
                         sum=(sum+c[b[i]])%mod;
                                  ^
0_0_21657911_6864.cpp:24:43: error: 'mod' was not declared in this scope
                         sum=(sum+c[b[i]])%mod;
                                           ^
0_0_21657911_6864.cpp:26:37: error: 'printf' was not declared in this scope
                 printf("%I64d\n",sum);
                                     ^
0_0_21657911_6864.cpp: At global scope:
0_0_21657911_6864.cpp:29:2: error: expected unqualified-id before '<' token
 }</nobr> 
  ^


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-16 14:58:08, Gzip enabled