Borderou de evaluare (job #1822733)
Utilizator | Andrei Udriste 1475369147896537415369 | Data | 5 decembrie 2016 14:48:35 |
---|---|---|---|
Problema | Cruce | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:3:15: error: ‘a’ undeclared (first use in this function)
#define SWAP (a, b){\
^
user.c:37:1: note: in expansion of macro ‘SWAP’
SWAP(M, N);
^
user.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
#define SWAP (a, b){\
^
user.c:37:1: note: in expansion of macro ‘SWAP’
SWAP(M, N);
^
user.c:3:18: error: ‘b’ undeclared (first use in this function)
#define SWAP (a, b){\
^
user.c:37:1: note: in expansion of macro ‘SWAP’
SWAP(M, N);
^
user.c:3:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
#define SWAP (a, b){\
^
user.c:37:1: note: in expansion of macro ‘SWAP’
SWAP(M, N);
^
user.c:3:20: error: expected ‘;’ before ‘{’ token
#define SWAP (a, b){\
^
user.c:37:1: note: in expansion of macro ‘SWAP’
SWAP(M, N);
^
user.c:34:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(file1, "%d", &M);
^
user.c:35:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(file1, "%d", &N);
^
user.c:41:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(file1, "%c", &matrix[i][j]);
^
user.c:43:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(file1, "%c", &matrix[i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !