Fibonačio seka

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:5:12: error: lvalue required as left operand of assignment 5 | if (a=1||a=2) return 1; | ~^~~ 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.resulttimemessage