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_37673192_28607.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37673192_28607.cpp:5:1: note: in expansion of macro 'int'
 int dp[N][N][N];
 ^
0_0_37673192_28607.cpp:5:5: error: 'dp' does not name a type
 int dp[N][N][N];
     ^
0_0_37673192_28607.cpp: In function 'void ycc()':
0_0_37673192_28607.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37673192_28607.cpp:8:9: note: in expansion of macro 'int'
     for(int i=0; i<=20; i++)
         ^
0_0_37673192_28607.cpp:8:13: error: 'i' was not declared in this scope
     for(int i=0; i<=20; i++)
             ^
0_0_37673192_28607.cpp:8:23: error: expected ')' before ';' token
     for(int i=0; i<=20; i++)
                       ^
0_0_37673192_28607.cpp:8:25: error: 'i' was not declared in this scope
     for(int i=0; i<=20; i++)
                         ^
0_0_37673192_28607.cpp:9:17: error: 'j' was not declared in this scope
         for(int j=0; j<=20; j++)
                 ^
0_0_37673192_28607.cpp:10:21: error: 'k' was not declared in this scope
             for(int k=0; k<=20; k++)
                     ^
0_0_37673192_28607.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37673192_28607.cpp:19:5: note: in expansion of macro 'int'
     int a,b,c,ans;
     ^
0_0_37673192_28607.cpp:19:9: error: 'a' was not declared in this scope
     int a,b,c,ans;
         ^
0_0_37673192_28607.cpp:19:11: error: 'b' was not declared in this scope
     int a,b,c,ans;
           ^
0_0_37673192_28607.cpp:19:13: error: 'c' was not declared in this scope
     int a,b,c,ans;
             ^
0_0_37673192_28607.cpp:19:15: error: 'ans' was not declared in this scope
     int a,b,c,ans;
               ^
0_0_37673192_28607.cpp:25:17: error: 'dp' was not declared in this scope
             ans=dp[0][0][0];
                 ^
0_0_37673192_28607.cpp:27:17: error: 'dp' was not declared in this scope
             ans=dp[20][20][20];
                 ^
0_0_37673192_28607.cpp:28:18: error: 'dp' was not declared in this scope
         else ans=dp[a][b][c];
                  ^


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-23 09:29:47, Gzip enabled