Borderou de evaluare (job #594847)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Zaphod1 (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 apr. 2021 09:20:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'cin' was not declared in this scope
10 | cin>>n;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <queue>
+++ |+#include <iostream>
3 | using namespace std;
main.cpp:11:19: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
11 | for(int i=2; i<=n; i++) {
| ~^~~
main.cpp:20:5: error: 'cout' was not declared in this scope
20 | cout<<q.back();
| ^~~~
main.cpp:20:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?