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_24418464_21927.cpp:2:1: error: 'LL' does not name a type
 LL sum[10][100010];
 ^
0_0_24418464_21927.cpp: In function 'int main()':
0_0_24418464_21927.cpp:5:12: error: 'mem' was not declared in this scope
     mem(a,0);
            ^
0_0_24418464_21927.cpp:6:9: error: 'sum' was not declared in this scope
     mem(sum,0);
         ^
0_0_24418464_21927.cpp:8:5: error: 'LL' was not declared in this scope
     LL p;
     ^
0_0_24418464_21927.cpp:9:5: error: 'cin' was not declared in this scope
     cin>>n>>p;
     ^
0_0_24418464_21927.cpp:9:13: error: 'p' was not declared in this scope
     cin>>n>>p;
             ^
0_0_24418464_21927.cpp:12:32: error: 'scanf' was not declared in this scope
             scanf("%d",&a[i][j]);
                                ^
0_0_24418464_21927.cpp:16:5: error: 'set' was not declared in this scope
     set <int> s;
     ^
0_0_24418464_21927.cpp:16:10: error: expected primary-expression before 'int'
     set <int> s;
          ^
0_0_24418464_21927.cpp:17:5: error: 's' was not declared in this scope
     s.clear();
     ^
0_0_24418464_21927.cpp:18:8: error: expected ';' before 'ans'
     LL ans=(sum[1][n]+a[2][n]+a[3][n])%p;
        ^
0_0_24418464_21927.cpp:20:12: error: expected ';' before 'temp'
         LL temp=(sum[1][i]-sum[2][i-1]+p)%p;
            ^
0_0_24418464_21927.cpp:21:18: error: 'temp' was not declared in this scope
         s.insert(temp);
                  ^
0_0_24418464_21927.cpp:24:14: error: expected primary-expression before 'int'
         set <int>::iterator it = s.lower_bound(p-temp);
              ^
0_0_24418464_21927.cpp:25:12: error: 'it' was not declared in this scope
         if(it!=s.begin())
            ^
0_0_24418464_21927.cpp:26:13: error: 'ans' was not declared in this scope
             ans=max(ans,(temp+*(--it))%p);
             ^
0_0_24418464_21927.cpp:26:41: error: 'max' was not declared in this scope
             ans=max(ans,(temp+*(--it))%p);
                                         ^
0_0_24418464_21927.cpp:28:5: error: 'cout' was not declared in this scope
     cout<<ans<<endl;
     ^
0_0_24418464_21927.cpp:28:11: error: 'ans' was not declared in this scope
     cout<<ans<<endl;
           ^
0_0_24418464_21927.cpp:28:16: error: 'endl' was not declared in this scope
     cout<<ans<<endl;
                ^


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-01-10 12:12:33, Gzip enabled