Borderou de evaluare (job #836372)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Complot (clasa a 7-a) | Compilator | cpp |
| Rundă | lasm_16_10_2025_clasa11 | Status | evaluat |
| Dată | 16 oct. 2025 10:50:06 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:34:36: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
34 | k += (long long)(right - left);
| ~~~~~~^~~~~~
main.cpp:31:13: warning: unused variable 'st' [-Wunused-variable]
31 | int st = max(a, c);
| ^~
main.cpp:32:13: warning: unused variable 'dr' [-Wunused-variable]
32 | int dr = min(b, d);
| ^~
main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | freopen("complot.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:9:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | freopen("complot.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~