Borderou de evaluare (job #857067)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Culori (clasa a 5-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 7 mar. 2026 16:29:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'cin' was not declared in this scope
8 | cin >> n >> v[1];
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <fstream>
+++ |+#include <iostream>
2 | using namespace std;
main.cpp:9:15: error: 'i' was not declared in this scope
9 | fout << v[i];
| ^