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_39887729_29221.cpp:2:18: error: declaration does not declare anything [-fpermissive]
    2 | #define int long long;
      |                  ^~~~
0_0_39887729_29221.cpp:4:1: note: in expansion of macro 'int'
    4 | int dp[55];
      | ^~~
0_0_39887729_29221.cpp:4:5: error: 'dp' does not name a type
    4 | int dp[55];
      |     ^~
0_0_39887729_29221.cpp: In function 'void pre()':
0_0_39887729_29221.cpp:6:1: error: 'dp' was not declared in this scope
    6 | dp[1] = 1,dp[2] = 2;
      | ^~
0_0_39887729_29221.cpp:2:18: error: declaration does not declare anything [-fpermissive]
    2 | #define int long long;
      |                  ^~~~
0_0_39887729_29221.cpp:7:9: note: in expansion of macro 'int'
    7 |     for(int i = 3;i <= 50;i++){
      |         ^~~
0_0_39887729_29221.cpp:7:13: error: 'i' was not declared in this scope
    7 |     for(int i = 3;i <= 50;i++){
      |             ^
0_0_39887729_29221.cpp:7:26: error: expected ')' before ';' token
    7 |     for(int i = 3;i <= 50;i++){
      |        ~                 ^
      |                          )
0_0_39887729_29221.cpp:7:27: error: 'i' was not declared in this scope
    7 |     for(int i = 3;i <= 50;i++){
      |                           ^
0_0_39887729_29221.cpp: In function 'int main()':
0_0_39887729_29221.cpp:2:18: error: declaration does not declare anything [-fpermissive]
    2 | #define int long long;
      |                  ^~~~
0_0_39887729_29221.cpp:13:5: note: in expansion of macro 'int'
   13 |     int n;
      |     ^~~
0_0_39887729_29221.cpp:13:9: error: 'n' was not declared in this scope
   13 |     int n;
      |         ^
0_0_39887729_29221.cpp:15:17: error: 'dp' was not declared in this scope
   15 |         cout << dp[n] << endl;
      |                 ^~


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-23 08:36:58, Gzip enabled