Problem platonic10
User JoelToh
Submission Time 2026-02-09 16:18:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic10.cpp: In function ‘int main()’:
platonic10.cpp:5:7: error: expected ‘;’ before ‘cin’
5 | a = 0
| ^
| ;
6 | cin >> a
| ~~~
platonic10.cpp:10:2: error: ‘else’ without a previous ‘if’
10 | else {
| ^~~~
platonic10.cpp:11:3: error: ‘cout’ was not declared in this scope
11 | cout << "No"
| ^~~~
platonic10.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
platonic10.cpp:12:1: error: expected ‘}’ at end of input
12 | }
| ^
platonic10.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^