Borderou de evaluare (job #767803)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Piramide (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 mar. 2024 14:32:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:10: error: 'n' was not declared in this scope
10 | fin>>n>>x;
| ^
main.cpp:10:13: error: 'x' was not declared in this scope
10 | fin>>n>>x;
| ^
main.cpp:11:5: error: 's' was not declared in this scope
11 | s=0;
| ^
main.cpp:12:5: error: 'p' was not declared in this scope
12 | p=1;
| ^
main.cpp:19:5: error: 'cout' was not declared in this scope
19 | cout<<p-1;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | using namespace std;