Problem retrenchment
User abdullahmazlan13
Submission Time 2026-06-25 10:03:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

retrenchment.cpp:3:6: error: ‘cin’ in namespace ‘std’ does not name a type
3 | std::cin >> N >> x;
| ^~~
In file included from retrenchment.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
retrenchment.cpp:5:1: error: expected unqualified-id before ‘while’
5 | while (N = > 0, N/x)
| ^~~~~
retrenchment.cpp:8:9: error: ‘number’ was not declared in this scope
8 | int y = number loops;
| ^~~~~~
retrenchment.cpp:10:1: error: ‘cout’ does not name a type
10 | cout >> int y;
| ^~~~