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

1234

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.22 sec, absolute running time: 0.15 sec, cpu time: 0.01 sec, memory peak: 6 Mb, absolute service time: 0,53 sec 
edit mode |  history
Warning(s):
468286234/source.c:8:7: warning: variable 'n' is uninitialized when used here [-Wuninitialized]
int A[n][n], B[n][n];
      ^
468286234/source.c:6:10: note: initialize the variable 'n' to silence this warning
int  m, n, i, j ;
         ^
          = 0
1 warning generated.
Error(s):
468286234/source.c:8:7: runtime error: variable length array bound evaluates to non-positive value 0
468286234/source.c:8:10: runtime error: variable length array bound evaluates to non-positive value 0
468286234/source.c:8:16: runtime error: variable length array bound evaluates to non-positive value 0
468286234/source.c:8:19: runtime error: variable length array bound evaluates to non-positive value 0
468286234/source.c:30:31: runtime error: index 1 out of bounds for type 'int [n]'
468286234/source.c:30:31: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:38:17: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:38:17: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:44:13: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:44:13: runtime error: load of address 0x7ffee9c3be10 with insufficient space for an object of type 'int'
0x7ffee9c3be10: note: pointer points here
 00 00 00 00  00 80 40 28 04 00 00 00  00 00 00 00 00 00 00 00  00 80 00 0a 04 00 00 00  dd 7e 42 00
              ^ 
468286234/source.c:44:3: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:44:3: runtime error: store to address 0x7ffee9c3be10 with insufficient space for an object of type 'int'
0x7ffee9c3be10: note: pointer points here
 00 00 00 00  00 80 40 28 04 00 00 00  00 00 00 00 00 00 00 00  00 80 00 0a 04 00 00 00  dd 7e 42 00
              ^ 
468286234/source.c:46:12: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:46:12: runtime error: load of address 0x7ffee9c3be10 with insufficient space for an object of type 'int'
0x7ffee9c3be10: note: pointer points here
 00 00 00 00  00 80 40 28 04 00 00 00  00 00 00 00 00 00 00 00  00 80 00 0a 04 00 00 00  dd 7e 42 00
              ^ 
468286234/source.c:46:24: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:46:24: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:46:24: runtime error: load of address 0x7ffee9c3be10 with insufficient space for an object of type 'int'
0x7ffee9c3be10: note: pointer points here
 00 00 00 00  00 80 40 28 04 00 00 00  00 00 00 00 00 00 00 00  00 80 00 0a 04 00 00 00  dd 7e 42 00
              ^ 
468286234/source.c:46:2: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:46:2: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:46:2: runtime error: store to address 0x7ffee9c3be10 with insufficient space for an object of type 'int'
0x7ffee9c3be10: note: pointer points here
 00 00 00 00  00 80 40 28 04 00 00 00  00 00 00 00 00 00 00 00  00 80 00 0a 04 00 00 00  dd 7e 42 00
              ^ 
468286234/source.c:46:12: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:46:22: runtime error: signed integer overflow: 1350631424 + 1350631424 cannot be represented in type 'int'
468286234/source.c:49:12: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:49:24: runtime error: index 1 out of bounds for type 'int [n]'
468286234/source.c:49:22: runtime error: signed integer overflow: 1107558400 + 1107558400 cannot be represented in type 'int'
468286234/source.c:49:2: runtime error: index 1 out of bounds for type 'int [n]'
468286234/source.c:53:13: runtime error: index 1 out of bounds for type 'int [n]'
468286234/source.c:53:25: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:53:25: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:53:37: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:53:51: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:53:51: runtime error: index 1 out of bounds for type 'int [n]'
468286234/source.c:53:3: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:53:3: runtime error: index 1 out of bounds for type 'int [n]'
468286234/source.c:53:23: runtime error: signed integer overflow: 1082130432 + 1082130432 cannot be represented in type 'int'
468286234/source.c:53:35: runtime error: signed integer overflow: -2130706432 - 1082130432 cannot be represented in type 'int'
468286234/source.c:53:49: runtime error: signed integer overflow: 1082130432 + 1082130432 cannot be represented in type 'int'
468286234/source.c:53:13: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:53:37: runtime error: index 1 out of bounds for type 'int [n][n]'
468286234/source.c:59:18: runtime error: index 0 out of bounds for type 'int [n]'
468286234/source.c:59:18: runtime error: index 1 out of bounds for type 'int [n][n]'
Enter m: 
Enter n:
use random values:Y/N 

Input elements of array:
Input A[0][0] = Input A[0][1] = Input A[0][2] = Input A[0][3] = Input A[1][0] = Input A[1][1] = Input A[1][2] = Input A[1][3] = Input A[2][0] = Input A[2][1] = Input A[2][2] = Input A[2][3] = Input A[3][0] = Input A[3][1] = Input A[3][2] = Input A[3][3] =  
Matrix A:
675315712 675315712 675315712 675315712 
675315712 675315712 675315712 675315712 
675315712 675315712 675315712 675315712 
675315712 675315712 675315712 675315712 

Matrix B:
1073741824 1073741824 1073741824 1073741824 
1073741824 1073741824 1073741824 1073741824 
1073741824 1073741824 1073741824 1073741824 
1073741824 1073741824 1073741824 1073741824 

    
                
λ
.NET NoSQL database for rapid development