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_30018135_14318.cpp:8:8: error: 'll' does not name a type
 inline ll getint()
        ^
0_0_30018135_14318.cpp:16:8: error: 'll' was not declared in this scope
 vector<ll>ans[maxn];
        ^
0_0_30018135_14318.cpp:16:10: error: template argument 1 is invalid
 vector<ll>ans[maxn];
          ^
0_0_30018135_14318.cpp:16:10: error: template argument 2 is invalid
0_0_30018135_14318.cpp:16:20: error: invalid type in declaration before ';' token
 vector<ll>ans[maxn];
                    ^
0_0_30018135_14318.cpp:17:1: error: 'll' does not name a type
 ll n,k,pos[maxn],a[maxn],ne[maxn],T;
 ^
0_0_30018135_14318.cpp: In function 'bool check()':
0_0_30018135_14318.cpp:22:9: error: 'n' was not declared in this scope
     if (n==1 && k==1) return 1;
         ^
0_0_30018135_14318.cpp:22:17: error: 'k' was not declared in this scope
     if (n==1 && k==1) return 1;
                 ^
0_0_30018135_14318.cpp:23:9: error: 'n' was not declared in this scope
     if (n==k) return 0;
         ^
0_0_30018135_14318.cpp:23:12: error: 'k' was not declared in this scope
     if (n==k) return 0;
            ^
0_0_30018135_14318.cpp:24:11: error: 'n' was not declared in this scope
     if (((n*n+n)/2)%k!=0) return 0; else return 1;
           ^
0_0_30018135_14318.cpp:24:21: error: 'k' was not declared in this scope
     if (((n*n+n)/2)%k!=0) return 0; else return 1;
                     ^
0_0_30018135_14318.cpp: In function 'void work1()':
0_0_30018135_14318.cpp:29:5: error: 'll' was not declared in this scope
     ll cnt=0;
     ^
0_0_30018135_14318.cpp:30:13: error: expected ';' before 'i'
     for (ll i=1;i<=n;i+=k)
             ^
0_0_30018135_14318.cpp:30:17: error: 'i' was not declared in this scope
     for (ll i=1;i<=n;i+=k)
                 ^
0_0_30018135_14318.cpp:30:20: error: 'n' was not declared in this scope
     for (ll i=1;i<=n;i+=k)
                    ^
0_0_30018135_14318.cpp:30:25: error: 'k' was not declared in this scope
     for (ll i=1;i<=n;i+=k)
                         ^
0_0_30018135_14318.cpp:32:9: error: 'cnt' was not declared in this scope
         cnt++;
         ^
0_0_30018135_14318.cpp:35:16: error: expected ';' before 'pos'
             ll pos=i;
                ^
0_0_30018135_14318.cpp:36:21: error: expected ';' before 'j'
             for (ll j=1;j<=k;j++) ans[j].push_back(pos++);
                     ^
0_0_30018135_14318.cpp:36:25: error: 'j' was not declared in this scope
             for (ll j=1;j<=k;j++) ans[j].push_back(pos++);
                         ^
0_0_30018135_14318.cpp:36:52: error: 'pos' was not declared in this scope
             for (ll j=1;j<=k;j++) ans[j].push_back(pos++);
                                                    ^
0_0_30018135_14318.cpp:40:16: error: expected ';' before 'pos'
             ll pos=i+k;
                ^
0_0_30018135_14318.cpp:41:21: error: expected ';' before 'j'
             for (ll j=1;j<=k;j++) ans[j].push_back(--pos);
                     ^
0_0_30018135_14318.cpp:41:25: error: 'j' was not declared in this scope
             for (ll j=1;j<=k;j++) ans[j].push_back(--pos);
                         ^
0_0_30018135_14318.cpp:41:54: error: 'pos' was not declared in this scope
             for (ll j=1;j<=k;j++) ans[j].push_back(--pos);
                                                      ^
0_0_30018135_14318.cpp: In function 'void work2()':
0_0_30018135_14318.cpp:48:9: error: 'n' was not declared in this scope
     if (n==1 && k==1) 
         ^
0_0_30018135_14318.cpp:48:17: error: 'k' was not declared in this scope
     if (n==1 && k==1) 
                 ^
0_0_30018135_14318.cpp:50:16: error: request for member 'push_back' in 'ans[1]', which is of non-class type 'int'
         ans[1].push_back(1);
                ^
0_0_30018135_14318.cpp:53:10: error: 'll' was not declared in this scope
     for (ll i=1;i<=k/2+1;i++) ne[i]=i+i-1,pos[i]=i+k/2;
          ^
0_0_30018135_14318.cpp:53:17: error: 'i' was not declared in this scope
     for (ll i=1;i<=k/2+1;i++) ne[i]=i+i-1,pos[i]=i+k/2;
                 ^
0_0_30018135_14318.cpp:53:20: error: 'k' was not declared in this scope
     for (ll i=1;i<=k/2+1;i++) ne[i]=i+i-1,pos[i]=i+k/2;
                    ^
0_0_30018135_14318.cpp:53:31: error: 'ne' was not declared in this scope
     for (ll i=1;i<=k/2+1;i++) ne[i]=i+i-1,pos[i]=i+k/2;
                               ^
0_0_30018135_14318.cpp:53:43: error: 'pos' was not declared in this scope
     for (ll i=1;i<=k/2+1;i++) ne[i]=i+i-1,pos[i]=i+k/2;
                                           ^
0_0_30018135_14318.cpp:54:5: error: 'll' was not declared in this scope
     ll v=0;
     ^
0_0_30018135_14318.cpp:55:13: error: expected ';' before 'i'
     for (ll i=k;i>k/2+1;i--) ne[i]=i-(++v),pos[i]=i-(k/2+1);
             ^
0_0_30018135_14318.cpp:55:17: error: 'i' was not declared in this scope
     for (ll i=k;i>k/2+1;i--) ne[i]=i-(++v),pos[i]=i-(k/2+1);
                 ^
0_0_30018135_14318.cpp:55:19: error: 'k' was not declared in this scope
     for (ll i=k;i>k/2+1;i--) ne[i]=i-(++v),pos[i]=i-(k/2+1);
                   ^
0_0_30018135_14318.cpp:55:30: error: 'ne' was not declared in this scope
     for (ll i=k;i>k/2+1;i--) ne[i]=i-(++v),pos[i]=i-(k/2+1);
                              ^
0_0_30018135_14318.cpp:55:41: error: 'v' was not declared in this scope
     for (ll i=k;i>k/2+1;i--) ne[i]=i-(++v),pos[i]=i-(k/2+1);
                                         ^
0_0_30018135_14318.cpp:55:44: error: 'pos' was not declared in this scope
     for (ll i=k;i>k/2+1;i--) ne[i]=i-(++v),pos[i]=i-(k/2+1);
                                            ^
0_0_30018135_14318.cpp:56:13: error: expected ';' before 'i'
     for (ll i=1;i<=k;i++) {a[i]=i; ans[i].push_back(i);}
             ^
0_0_30018135_14318.cpp:56:17: error: 'i' was not declared in this scope
     for (ll i=1;i<=k;i++) {a[i]=i; ans[i].push_back(i);}
                 ^
0_0_30018135_14318.cpp:56:20: error: 'k' was not declared in this scope
     for (ll i=1;i<=k;i++) {a[i]=i; ans[i].push_back(i);}
                    ^
0_0_30018135_14318.cpp:56:28: error: 'a' was not declared in this scope
     for (ll i=1;i<=k;i++) {a[i]=i; ans[i].push_back(i);}
                            ^
0_0_30018135_14318.cpp:57:13: error: expected ';' before 'cs'
     for (ll cs=1;cs<n/k-1;cs++)
             ^
0_0_30018135_14318.cpp:57:18: error: 'cs' was not declared in this scope
     for (ll cs=1;cs<n/k-1;cs++)
                  ^
0_0_30018135_14318.cpp:57:21: error: 'n' was not declared in this scope
     for (ll cs=1;cs<n/k-1;cs++)
                     ^
0_0_30018135_14318.cpp:57:23: error: 'k' was not declared in this scope
     for (ll cs=1;cs<n/k-1;cs++)
                       ^
0_0_30018135_14318.cpp:59:17: error: expected ';' before 'i'
         for (ll i=1;i<=k;i++)
                 ^
0_0_30018135_14318.cpp:59:21: error: 'i' was not declared in this scope
         for (ll i=1;i<=k;i++)
                     ^
0_0_30018135_14318.cpp:60:30: error: 'pos' was not declared in this scope
             ans[i].push_back(pos[a[i]]+(cs)*k);
                              ^
0_0_30018135_14318.cpp:60:34: error: 'a' was not declared in this scope
             ans[i].push_back(pos[a[i]]+(cs)*k);
                                  ^
0_0_30018135_14318.cpp:61:17: error: expected ';' before 'i'
         for (ll i=1;i<=k;i++)
                 ^
0_0_30018135_14318.cpp:61:21: error: 'i' was not declared in this scope
         for (ll i=1;i<=k;i++)
                     ^
0_0_30018135_14318.cpp:62:13: error: 'a' was not declared in this scope
             a[i]=ne[a[i]];
             ^
0_0_30018135_14318.cpp:62:18: error: 'ne' was not declared in this scope
             a[i]=ne[a[i]];
                  ^
0_0_30018135_14318.cpp:64:13: error: expected ';' before 'i'
     for (ll i=1;i<=k;i++)
             ^
0_0_30018135_14318.cpp:64:17: error: 'i' was not declared in this scope
     for (ll i=1;i<=k;i++)
                 ^
0_0_30018135_14318.cpp:64:20: error: 'k' was not declared in this scope
     for (ll i=1;i<=k;i++)
                    ^
0_0_30018135_14318.cpp:65:27: error: 'n' was not declared in this scope
         ans[i].push_back((n/k-1)*k+(k+1-a[i]));
                           ^
0_0_30018135_14318.cpp:65:41: error: 'a' was not declared in this scope
         ans[i].push_back((n/k-1)*k+(k+1-a[i]));
                                         ^
0_0_30018135_14318.cpp: In function 'int main()':
0_0_30018135_14318.cpp:70:10: error: 'T' was not declared in this scope
     cin>>T;
          ^
0_0_30018135_14318.cpp:73:9: error: 'n' was not declared in this scope
         n=getint(),k=getint();
         ^
0_0_30018135_14318.cpp:73:18: error: 'getint' was not declared in this scope
         n=getint(),k=getint();
                  ^
0_0_30018135_14318.cpp:73:20: error: 'k' was not declared in this scope
         n=getint(),k=getint();
                    ^
0_0_30018135_14318.cpp:82:14: error: 'll' was not declared in this scope
         for (ll i=1;i<=k;i++)
              ^
0_0_30018135_14318.cpp:82:21: error: 'i' was not declared in this scope
         for (ll i=1;i<=k;i++)
                     ^
0_0_30018135_14318.cpp:84:16: error: expected ';' before 'w'
             ll w=ans[i].size();
                ^
0_0_30018135_14318.cpp:85:21: error: expected ';' before 'j'
             for (ll j=0;j<w;j++) printf("%lld ",ans[i][j]);
                     ^
0_0_30018135_14318.cpp:85:25: error: 'j' was not declared in thi


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-25 15:22:05, Gzip enabled