QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#212774 | #4184. Amusement Arcade | GuanYunchang | Compile Error | / | / | C++17 | 378b | 2023-10-13 20:28:56 | 2023-10-13 20:28:57 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:16:9: error: ‘cin’ was not declared in this scope 16 | cin >> n; | ^~~ answer.code:5:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? 4 | #include<string.h> +++ |+#include <iostream> 5 | using namespace std; answer.code:21:25: error: ‘cout’ was not declared in this scope 21 | cout << i; | ^~~~ answer.code:21:25: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? answer.code:25:9: error: ‘cout’ was not declared in this scope 25 | cout << "impossible"; | ^~~~ answer.code:25:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?