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_32748788_10663.c:3:1: error: unknown type name 'using'
 using namespace std;
 ^
0_0_32748788_10663.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^
0_0_32748788_10663.c: In function 'fun':
0_0_32748788_10663.c:4:22: error: expected expression before '/' token
 long long fun(int n){//求阶乘 
                      ^
0_0_32748788_10663.c:4:22: error: stray '\307' in program
0_0_32748788_10663.c:4:22: error: stray '\363' in program
0_0_32748788_10663.c:4:22: error: stray '\275' in program
0_0_32748788_10663.c:4:22: error: stray '\327' in program
0_0_32748788_10663.c:4:22: error: stray '\263' in program
0_0_32748788_10663.c:4:22: error: stray '\313' in program
0_0_32748788_10663.c: In function 'combination':
0_0_32748788_10663.c:8:37: error: expected expression before '/' token
 long long combination(int n, int m){//求组合数 
                                     ^
0_0_32748788_10663.c:8:37: error: stray '\307' in program
0_0_32748788_10663.c:8:37: error: stray '\363' in program
0_0_32748788_10663.c:8:37: error: stray '\327' in program
0_0_32748788_10663.c:8:37: error: stray '\351' in program
0_0_32748788_10663.c:8:37: error: stray '\272' in program
0_0_32748788_10663.c:8:37: error: stray '\317' in program
0_0_32748788_10663.c:8:37: error: stray '\312' in program
0_0_32748788_10663.c:8:37: error: stray '\375' in program
0_0_32748788_10663.c: In function 'main':
0_0_32748788_10663.c:16:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i = 3; i <= 20; i++){
     ^
0_0_32748788_10663.c:16:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_32748788_10663.c:20:10: error: redefinition of 'i'
  for(int i = 0; i < num; i++){
          ^
0_0_32748788_10663.c:16:13: note: previous definition of 'i' was here
     for(int i = 3; i <= 20; i++){
             ^
0_0_32748788_10663.c:20:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i = 0; i < num; i++){
  ^
0_0_32748788_10663.c:22:3: error: 'cout' undeclared (first use in this function)
   cout << dp[n] * combination(n, m) << endl;
   ^
0_0_32748788_10663.c:22:3: note: each undeclared identifier is reported only once for each function it appears in
0_0_32748788_10663.c:22:40: error: 'endl' undeclared (first use in this function)
   cout << dp[n] * combination(n, m) << 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-02 06:53:00, Gzip enabled