Borderou de evaluare (job #2066996)

Utilizator sorina.aldeaAldea Sorina-Theodora sorina.aldea Data 15 noiembrie 2017 19:14:30
Problema Sushi Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:6:31: error: ‘NMAX’ undeclared here (not in a function) int sushi(int x, int y, int v[NMAX]) { ^ user.c: In function ‘main’: user.c:24:4: error: type of formal parameter 3 is incomplete if (sushi(i, j, v) > S) { ^ user.c:25:5: error: type of formal parameter 3 is incomplete S = sushi(i, j, v); ^ user.c:34:4: error: type of formal parameter 3 is incomplete if (sushi(i, j, v) == S) { ^ user.c:45:2: error: type of formal parameter 3 is incomplete printf("%d %d %d\n", p, q, sushi(p, q, v)); ^ user.c:12:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("sushi.in", "r", stdin); ^ user.c:13:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("sushi.out", "w", stdout); ^ user.c:16:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.c:18:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^ user.c:11: confused by earlier errors, bailing out Preprocessed source stored into /tmp/ccUARYM4.out file, please attach this to your bugreport.

Ceva nu functioneaza?