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