Borderou de evaluare (job #584883)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Magic (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 7 mar. 2021 09:24:31 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:12: error: 'a' was not declared in this scope
3 | int minim(a, b) {
| ^
main.cpp:3:15: error: 'b' was not declared in this scope
3 | int minim(a, b) {
| ^
main.cpp:3:16: error: expression list treated as compound expression in initializer [-fpermissive]
3 | int minim(a, b) {
| ^
main.cpp: In function 'int gasire_numar(int, int, int)':
main.cpp:19:32: error: 'minim' cannot be used as a function
19 | l1 = minim(n - lin - 1, col);
| ^
main.cpp:20:32: error: 'minim' cannot be used as a function
20 | l2 = minim(n - col - 1, lin);
| ^
main.cpp:29:24: error: 'minim' cannot be used as a function
29 | min3 = minim(l1, l2);
| ^
main.cpp: In function 'int main()':
main.cpp:55:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
55 | fscanf(fin, "%d%d%d%d", &n, &m, &x, &y);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~