Problem permutationgrid
User Hijackedsoul
Submission Time 2024-12-08 13:36:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:5:5: error: ‘ios_base’ has not been declared
5 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
permutationgrid.cpp:6:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin.tie(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from permutationgrid.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
permutationgrid.cpp:36:13: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
36 | cout << "NO";
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from permutationgrid.cpp:1:
/usr/include/c++/9/io