Problem eight
User allnighttoiler
Submission Time 2025-06-16 16:25:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eight.cpp:1:2: error: invalid preprocessing directive #incluse; did you mean #include?
1 | #incluse <bits/stdc++.h>
| ^~~~~~~
| include
eight.cpp: In function ‘int main()’:
eight.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> n;
| ^~~
eight.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #incluse <bits/stdc++.h>
eight.cpp:11:9: error: expected ‘;’ before ‘:’ token
11 | ans++:
| ^
| ;
eight.cpp:14:2: error: ‘cout’ was not declared in this scope
14 | cout << ans;
| ^~~~
eight.cpp:14:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?