Borderou de evaluare (job #839568)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Șir munte | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 2 nov. 2025 12:24:29 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:32: error: 'cin' was not declared in this scope
13 | for (int i=0; i<n; i++) { cin>>a[i]; }
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include <fstream>
+++ |+#include <iostream>
3 | //