Problem ultimateifelse
User hpesoj
Submission Time 2023-01-17 09:19:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp:9:8: error: ‘string’ does not name a type; did you mean ‘stdin’?
9 | int n; string s;
| ^~~~~~
| stdin
ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:12:2: error: ‘ios’ has not been declared
12 | ios::sync_with_stdio(0), cin.tie(0);
| ^~~
ultimateifelse.cpp:12:27: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
12 | ios::sync_with_stdio(0), cin.tie(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from ultimateifelse.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
ultimateifelse.cpp:13:14: error: ‘s’ was not declared in this scope
13 | cin >> n >> s;
| ^