Problem iqtest2
User LimCheeHann
Submission Time 2026-05-10 15:29:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

iqtest2.cpp: In function ‘int main()’:
iqtest2.cpp:4:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
4 | cin >> T;
| ^~~
| std::cin
In file included from iqtest2.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
iqtest2.cpp:8:4: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
8 | cout << p-1 << "\n";
| ^~~~
| std::cout
In file included from iqtest2.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
iqtest2.cpp:11:4: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
11 | cout << "0\n";
| ^~~~
| std::cout
In file included from iqtest2.cpp:1: