Borderou de evaluare (job #769781)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Norocos (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 mar. 2024 12:22:15 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:34:51: error: redeclaration of 'int c'
34 | int c, n, k, i, min = INT_MAX, max = INT_MIN, c = 0;
| ^
main.cpp:34:9: note: 'int c' previously declared here
34 | int c, n, k, i, min = INT_MAX, max = INT_MIN, c = 0;
| ^
main.cpp:49:26: error: 'min' cannot be used as a function
49 | min = min(min, v[i]);
| ~~~^~~~~~~~~~~
main.cpp:50:26: error: 'max' cannot be used as a function
50 | max = max(max, v[i]);
| ~~~^~~~~~~~~~~