Problem matheletes
User mandy
Submission Time 2025-02-19 15:19:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

matheletes.cpp: In function ‘int main()’:
matheletes.cpp:8:5: error: ‘cin’ was not declared in this scope
8 | cin >> n;
| ^~~
matheletes.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
matheletes.cpp:10:8: error: expected ‘(’ before ‘a’
10 | if a + c = n{
| ^
| (
matheletes.cpp:12:8: error: ‘else’ without a previous ‘if’
12 | }else{
| ^~~~
matheletes.cpp:13:9: error: ‘cout’ was not declared in this scope
13 | cout << 0;
| ^~~~
matheletes.cpp:13:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?