genetics.cpp: In function 'int main()':
genetics.cpp:41:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
41 | scanf("%d %d %d", &N, &M, &K);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
genetics.cpp:41:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
41 | scanf("%d %d %d", &N, &M, &K);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
genetics.cpp:41:16: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'll*' {aka 'long long int*'} [-Wformat=]
41 | scanf("%d %d %d", &N, &M, &K);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
genetics.cpp:47:13: warning: array subscript has type 'char' [-Wchar-subscripts]
47 | DNA[corr[buf]][i][j] = 1;
| ^~~
genetics.cpp:72:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
72 | printf("%d\n", comp);
| ~^ ~~~~
| | |
| int ll {aka long long int}
| %lld
genetics.cpp:41:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | scanf("%d %d %d", &N, &M, &K);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
genetics.cpp:46:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
46 | scanf(" %c", &buf);
| ~~~~~^~~~~~~~~~~~~