Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Assignment 4 v3

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.35 sec, absolute service time: 0,48 sec 
edit mode |  history  | discussion
Error(s):
source_file.c: In function ‘main’:
source_file.c:37:8: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘double’ [-Wformat=]
 printf("The square root of both large and small numbers are %lld and %lld\n", sqrt(a), sqrt(b));
        ^
source_file.c:37:8: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘double’ [-Wformat=]
source_file.c:41:8: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘double’ [-Wformat=]
 printf("The cubic roots of the small and large numbers are %lld and %lld\n", cbrt(a), cbrt(b));
        ^
source_file.c:41:8: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘double’ [-Wformat=]
source_file.c:10:15: warning: variable ‘d’ set but not used [-Wunused-but-set-variable]
     long long d;
               ^
source_file.c:12:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld %lld", &a , &b);
     ^
source_file.c:48:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &year);
     ^
/tmp/ccuhUHEc.o: In function `main':
source.c:(.text.startup+0x112): undefined reference to `cbrt'
source.c:(.text.startup+0x126): undefined reference to `cbrt'
source.c:(.text.startup+0x1f5): undefined reference to `sqrt'
source.c:(.text.startup+0x205): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status

        

    
                
λ
.NET NoSQL database for rapid development