Borderou de evaluare (job #741474)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Dreptunghiuri | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 30 oct. 2023 18:48:27 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:26:9: error: 'fopen_s' was not declared in this scope; did you mean 'fopen64'?
26 | if (fopen_s(&input, "drept.in", "r") != 0) {
| ^~~~~~~
| fopen64
main.cpp:31:9: error: 'fscanf_s' was not declared in this scope; did you mean 'fscanf'?
31 | if (fscanf_s(input, "%d", &N) == 0) {
| ^~~~~~~~
| fscanf
main.cpp:38:13: error: 'fscanf_s' was not declared in this scope; did you mean 'fscanf'?
38 | if (fscanf_s(input, "%d %d", &drepturi[i].L, &drepturi[i].l) == 0) {
| ^~~~~~~~
| fscanf
main.cpp:52:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<drept>::size_type' {aka 'unsigned int'} [-Wsign-compare]
52 | for (int i = 0; i < drepturi.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~