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

Swap.c

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.12 sec, absolute running time: 10.55 sec, cpu time: 0 sec, memory peak: 0 Mb, absolute service time: 10,86 sec 
edit mode |  history  | discussion
Warning(s):
1631170475/source.c: In function ‘main’:
1631170475/source.c:11:23: warning: format ‘%ld’ expects a matching ‘long int’ argument [-Wformat=]
     printf("%ld*%ld=%ld\n",n,n*i);
                     ~~^
1631170475/source.c:9:1: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
 for(i=0;i<=10;i++)
 ^~~
1631170475/source.c:12:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
     return 0;
     ^~~~~~
1631170475/source.c:8:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%ld",&n);
 ^~~~~~~~~~~~~~~
Error(s):
Process killed, because it ran longer than 10 seconds. Is your code waiting for keyboard input which is not supplied?
None 5.209616 3916

        

    
                
λ
.NET NoSQL database for rapid development