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.
|