Borderou de evaluare (job #3141231)
Utilizator | Data | 13 iulie 2023 13:10:30 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:56:9: error: 'cin' was not declared in this scope
56 | 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 | using namespace std;
main.cpp:57:9: error: 'i' was not declared in this scope
57 | for(i=1;i<=n;++i)
| ^
main.cpp:60:9: error: 'i' was not declared in this scope
60 | for(i=0;i<=m;++i)
| ^
main.cpp:62:14: error: 'q' was not declared in this scope
62 | cin>>q>>x;
| ^
main.cpp:63:18: error: 'cout' was not declared in this scope
63 | if(q==1) cout<<uprb(x)<<'\n';
| ^~~~
main.cpp:63:18: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:64:23: error: 'cout' was not declared in this scope
64 | else if(q==2) cout<<lwrb(x)<<'\n';
| ^~~~
main.cpp:64:23: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:65:14: error: 'cout' was not declared in this scope
65 | else cout<<caut(x);
| ^~~~
main.cpp:65:14: note: 'std::cout' 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 !