Fibonačio seka
- [1] 2024-11-09 14:38 (0)
- [2] 2024-11-09 14:41 (0)
- [3] 2024-11-09 14:42 (0)
- [4] 2024-11-09 14:43 (100)
Taškai: 0
Compile: FAIL
mazasfib.cpp:2:7: error: expected nested-name-specifier before ‘namsepace’ 2 | using namsepace std; | ^~~~~~~~~ mazasfib.cpp: In function ‘int F(int)’: mazasfib.cpp:6:14: error: ‘n’ was not declared in this scope 6 | return F(n-1)+F(n-2); | ^ mazasfib.cpp: In function ‘int main()’: mazasfib.cpp:10:1: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’? 10 | cin>>n; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from mazasfib.cpp:1: /usr/include/c++/11/iostream:60:18: note: ‘std::cin’ declared here 60 | extern istream cin; /// Linked to standard input | ^~~ mazasfib.cpp:11:1: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? 11 | cout<<F(n); | ^~~~ | std::cout In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from mazasfib.cpp:1: /usr/include/c++/11/iostream:61:18: note: ‘std::cout’ declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~
nr. | result | time | message |
---|