Problem | fibo |
---|---|
User | Kishan |
Submission Time | 2023-06-19 10:13:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp:4:10: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
4 | int f[2e5+10];
| ~~~^~~
fibo.cpp:4:10: error: could not convert ‘(2.0e+5 + (double)10)’ from ‘double’ to ‘long unsigned int’
fibo.cpp:4:10: error: size of array ‘f’ has non-integral type ‘double’
fibo.cpp:7:1: error: expected ‘,’ or ‘;’ before ‘int’
7 | int fibo(int x) {
| ^~~
fibo.cpp: In function ‘int main()’:
fibo.cpp:17:42: error: ‘fibo’ was not declared in this scope
17 | for (int i = 0; i <= n; i++) cout << fibo(i) << "\n";
| ^~~~