Borderou de evaluare (job #2072277)
Utilizator | Data | 21 noiembrie 2017 17:49:30 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:9:21: warning: unused variable ‘nr_b’ [-Wunused-variable]
int *a, *b, nr_a, nr_b;
^
user.c:9:15: warning: unused variable ‘nr_a’ [-Wunused-variable]
int *a, *b, nr_a, nr_b;
^
user.c: At top level:
user.c:48:1: error: expected identifier or ‘(’ before ‘--’ token
--------------------------------------------------------------------------------
^
user.c:153:5: error: redefinition of ‘main’
int main(void)
^
user.c:5:5: note: previous definition of ‘main’ was here
int main ()
^
user.c: In function ‘main’:
user.c:161:2: warning: implicit declaration of function ‘get_matrix’ [-Wimplicit-function-declaration]
matrix = get_matrix(n, m);
^
user.c:161:9: warning: assignment makes pointer from integer without a cast [enabled by default]
matrix = get_matrix(n, m);
^
user.c: In function ‘main’:
user.c:11:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &nr);
^
user.c:15:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.c: In function ‘read_matrix’:
user.c:98:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &mat[i][j]);
^
user.c: In function ‘main’:
user.c:159:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &m, &line);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !