Problem | adjmatrix |
---|---|
User | asbx |
Submission Time | 2023-11-10 09:26:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:9:13: error: conversion from ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to ‘long unsigned int’ in a converted constant expression
9 | int arr[pow(n,2)];
| ~~~^~~~~
adjmatrix.cpp:9:13: error: could not convert ‘std::pow<int, int>(n, 2)’ from ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to ‘long unsigned int’
adjmatrix.cpp:9:13: error: size of array ‘arr’ has non-integral type ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’}
adjmatrix.cpp:16:23: error: expected ‘;’ before ‘}’ token
16 | arr[(a-1)+n*(b-1)]=1
| ^
| ;
17 | }
| ~