Borderou de evaluare (job #611952)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cooler (clasele 9-10) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 22 oct. 2021 18:58:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:76:12: error: 'n' was not declared in this scope
76 | cin >> n >> k;
| ^
main.cpp:76:17: error: 'k' was not declared in this scope
76 | cin >> n >> k;
| ^
main.cpp:77:16: error: 'INT_MAX' was not declared in this scope
77 | int mini = INT_MAX, maxi = -1;
| ^~~~~~~
main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include <ext/pb_ds/assoc_container.hpp>
+++ |+#include <climits>
4 | #include <ext/pb_ds/tree_policy.hpp>
main.cpp:88:23: error: 'maxi' was not declared in this scope
88 | if(v[i] > maxi) maxi = v[i];
| ^~~~
main.cpp:91:32: error: 'maxi' was not declared in this scope
91 | for(int i = mini; i <= maxi; i++)
| ^~~~
main.cpp:97:21: error: 'maxi' was not declared in this scope
97 | cout << maxi;
| ^~~~
main.cpp: In member function 'char InParser::read_ch()':
main.cpp:20:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fread(buff, 1, 4096, fin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~