Problem | foodchain |
---|---|
User | YH |
Submission Time | 2024-02-11 17:32:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
foodchain.cpp:3:7: error: expected nested-name-specifier before ‘namepsace’
3 | using namepsace std;
| ^~~~~~~~~
foodchain.cpp: In function ‘int main()’:
foodchain.cpp:8:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | cin >> a >> b >> c >> d >> e;
| ^~~
| std::cin
In file included from foodchain.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
foodchain.cpp:13:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
13 | cout << ((a%f) * (b%f) * (c%f) * (d%f) * (e%f));
| ^~~~
| std::cout
In file included from foodchain.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~