Borderou de evaluare (job #3284945)
Utilizator | Data | 12 martie 2025 13:10:44 | |
---|---|---|---|
Problema | Elementul majoritar | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void read()':
main.cpp:8:5: error: 'cin' was not declared in this scope
8 | cin>> n;
| ^~~
main.cpp:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
3 | #include<algorithm>
+++ |+#include <iostream>
4 | using namespace std;
main.cpp: In function 'void solve()':
main.cpp:19:9: error: 'cout' was not declared in this scope
19 | cout<< v[n/2]<< ' '<< cnt;
| ^~~~
main.cpp:19:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp: In function 'int main()':
main.cpp:25:5: error: 'cin' was not declared in this scope
25 | cin.tie(0);
| ^~~
main.cpp:25:5: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !