Borderou de evaluare (job #608452)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Parola 1 (clasa 7-8) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 oct. 2021 14:05:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool cmp(std::string, std::string)':
main.cpp:9:18: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare]
9 | for(int i=0;i<min(a.size(),b.size());i++)
| ~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:21:5: error: 'cin' was not declared in this scope
21 | cin>>n>>m;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <algorithm>
+++ |+#include <iostream>
3 |
main.cpp:68:5: error: 'cout' was not declared in this scope
68 | cout<<v[0];
| ^~~~
main.cpp:68:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:20:19: warning: unused variable 'cnt2' [-Wunused-variable]
20 | int n,m,cnt=0,cnt2=0;
| ^~~~