Borderou de evaluare (job #687538)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Skyline (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 ian. 2023 15:37:00 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:5: error: ISO C++ forbids declaration of 'operator<' with no type [-fpermissive]
14 | operator<(block v2){
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:39:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<block>::size_type' {aka 'unsigned int'} [-Wsign-compare]
39 | for(int i = 0; i < skylines.size(); i++){
| ~~^~~~~~~~~~~~~~~~~
main.cpp:51:29: warning: integer overflow in expression of type 'long int' results in '-2' [-Woverflow]
51 | ll min_h = LONG_MAX + LONG_MAX;
| ^
main.cpp:26:21: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | std::freopen("skyline.in" , "r", stdin);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:27:21: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | std::freopen("skyline.out" , "w", stdout);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~