Borderou de evaluare (job #617520)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dominant (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 23 nov. 2021 09:03:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
1 | #incldue <fstream>
| ^~~~~~~
| include
main.cpp:7:1: error: 'ifstream' does not name a type
7 | ifstream cin("dominant.in");
| ^~~~~~~~
main.cpp:8:1: error: 'ofstream' does not name a type
8 | ofstream cout("dominant.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:28:5: error: 'string' was not declared in this scope
28 | string s;
| ^~~~~~
main.cpp:4:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
3 | #include <map>
+++ |+#include <string>
4 |
main.cpp:29:5: error: 'cin' was not declared in this scope
29 | cin>>cer;
| ^~~
main.cpp:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
3 | #include <map>
+++ |+#include <iostream>
4 |
main.cpp:30:10: error: 's' was not declared in this scope
30 | cin>>s;
| ^
main.cpp:46:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
46 | for(int i=0;i<minSoFar.size();i++)
| ~^~~~~~~~~~~~~~~~
main.cpp:70:9: error: 'cout' was not declared in this scope
70 | cout<<maxx;
| ^~~~
main.cpp:70:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:72:9: error: 'cout' was not declared in this scope
72 | cout<<maxcnt;
| ^~~~
main.cpp:72:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?