Problem 3nplus1II
User LXYSGP
Submission Time 2024-06-04 14:07:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int findTobleroneLength(int, int)’:
3nplus1II.cpp:8:13: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
8 | cout << "-1";
| ^~~~
| std::cout
In file included from 3nplus1II.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:25:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
25 | cout << number;
| ^~~~
| std::cout
In file included from 3nplus1II.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
3nplus1II.cpp:25:10: error: ‘number’ was not declared in this scope
25 | cout << number;<