Problem squidzofrenzic
User aa24codebreaker
Submission Time 2023-11-09 13:47:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squidzofrenzic.cpp:2:7: error: expected nested-name-specifier before ‘namespcace’
2 | using namespcace std;
| ^~~~~~~~~~
squidzofrenzic.cpp:7:26: error: ISO C++ forbids declaration of ‘boolispossible’ with no type [-fpermissive]
7 | boolispossible(int atmost){
| ^
squidzofrenzic.cpp: In function ‘int main()’:
squidzofrenzic.cpp:24:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
24 | cin >> n >> m;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from squidzofrenzic.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
squidzofrenzic.cpp:34:7: error: ‘ispossible’ was not declared in this scope; did you mean ‘boolispossible’?
34 | if (ispossible(mid)) high = mid;