Borderou de evaluare (job #672499)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cifre2 | Compilator | cpp-32 |
Rundă | tema1_5_2022 | Status | evaluat |
Dată | 28 oct. 2022 20:06:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'cin' was not declared in this scope
10 | cin >> N;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
11 | if(N % 2 != 0)
| ^~
main.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
13 | nrmare = 789012345;
| ^~~~~~
main.cpp:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
14 | if(N % 2 == 0)
| ^~
main.cpp:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
16 | nrmare = 234567890;
| ^~~~~~
main.cpp:17:5: error: 'cout' was not declared in this scope
17 | cout << primcf <<" "<< nrmare;
| ^~~~
main.cpp:17:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?