Suma

Taškai: 0

Compile: FAIL

suma.cpp: In function ‘int main()’: suma.cpp:4:1: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’? 4 | cin>>n; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from suma.cpp:1: /usr/include/c++/11/iostream:60:18: note: ‘std::cin’ declared here 60 | extern istream cin; /// Linked to standard input | ^~~ suma.cpp:4:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’? 4 | cin>>n; | ^ | yn suma.cpp:5:13: error: a function-definition is not allowed here before ‘{’ token 5 | int S(int a){ | ^

nr.resulttimemessage