Problem ultimateifelse
User ilovepythonandhatecplusplus
Submission Time 2024-02-28 17:49:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:5:1: error: ‘str’ was not declared in this scope; did you mean ‘std’?
5 | str timeline;
| ^~~
| std
ultimateifelse.cpp:6:19: error: ‘timeline’ was not declared in this scope; did you mean ‘timezone’?
6 | std::cin>>number>>timeline;
| ^~~~~~~~
| timezone
ultimateifelse.cpp:7:5: error: ‘n’ was not declared in this scope
7 | if (n==1){
| ^
ultimateifelse.cpp:8:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
8 | cout<<"one";
| ^~~~
| std::cout
In file included from ultimateifelse.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
ultimateifelse.cpp:22:16: error: expected ‘}’ at end of input
22 | cout<