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_16818654_11465.cpp:1:518: 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, r, k, i;    char b[33];    while (scanf("%d %d", &n, &r) == 2){        if (n == 0){            printf("0\n");            continue;        }        if (n < 0){            printf("-");            n *= -1;        }        k = 0;        while (n){            b[k++] = n%r;            n /= r;        }        for (i=k-1; i>=0; i--){            if (b[i] > 9) b[i] += 'A'-10;            else b[i] += '0';            printf("%c", b[i]);        }        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-11-25 00:07:28, Gzip enabled