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_13904486_14178.cpp:1:631: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdio.h>in: Invalid argument
 #include<stdio.h>int main(){ int n; int f[1001][101] = {0}; f[0][1] = 1; f[1][1] = 1; f[2][1] = 2; f[3][1] = 4; for(int i = 4; i < 1001; ++i){  for(int j = 1; j < 101; ++j){   f[i][j] += f[i - 1][j] + f[i - 2][j] + f[i - 4][j]; //数组的每一位相加   f[i][j + 1] += f[i][j] / 10000; //超过4位的部分保存至数组下一位中   f[i][j] %= 10000; //每位数组只保存其中4位  } } while(scanf("%d", &n) != EOF){  int k = 100;  while(!f[n][k--]); //排除前面为空的数组  printf("%d", f[n][k + 1]); //输出结果的前四位  for(; k > 0; --k){   printf("%04d", f[n][k]); //输出其余的所有四位数字,若数字小于四位,则前面用0填充  }  printf("\n"); } return 0;}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
compilation terminated.


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 03:50:20, Gzip enabled