Borderou de evaluare (job #710652)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | 235 (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 23 mar. 2023 20:00:09 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:27:9: error: 'cin' was not declared in this scope
27 | cin >> x;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <vector>
+++ |+#include <iostream>
3 | using namespace std;
main.cpp:60:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
60 | for(int i=0; i < v.size()-1; i++)
| ~~^~~~~~~~~~~~
main.cpp:65:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
65 | for(int j=i+1; j < v.size(); j++)
| ~~^~~~~~~~~~
main.cpp:19:22: warning: unused variable 'sizev' [-Wunused-variable]
19 | int n, p, x, cx, sizev, nrsecvente=0, y;
| ^~~~~