Borderou de evaluare (job #2485054)
Utilizator | Data | 31 octombrie 2019 22:11:08 | |
---|---|---|---|
Problema | Vase | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:26:17: error: unknown type name 'nod'
void adaugarest(nod * & a, int x, int y) {
^~~
main.c:45:17: error: unknown type name 'nod'
void adaugaredr(nod* &p , int x, int y) {
^~~
main.c:60:1: error: unknown type name 'nod'
nod *p;
^~~
main.c:60:1: note: use 'struct' keyword to refer to the type
main.c: In function 'main':
main.c:78:13: warning: implicit declaration of function 'adaugarest' [-Wimplicit-function-declaration]
adaugarest(p, x, i+1);
^~~~~~~~~~
main.c:80:13: warning: implicit declaration of function 'adaugaredr' [-Wimplicit-function-declaration]
adaugaredr(p, x, i+1);
^~~~~~~~~~
main.c:86:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
fprintf(out, "%I64d\n", s);
^
main.c:88:14: error: request for member 'c' in something not a structure or union
if (p->c == m) {
^~
main.c:89:59: error: request for member 'nr' in something not a structure or union
fprintf(out, "%I64d %c\n%I64d %c", modul(s - p->nr), semn(s - p->nr, s), modul(s), semn(s, s - p->nr));
^~
main.c:89:76: error: request for member 'nr' in something not a structure or union
fprintf(out, "%I64d %c\n%I64d %c", modul(s - p->nr), semn(s - p->nr, s), modul(s), semn(s, s - p->nr));
^~
main.c:89:109: error: request for member 'nr' in something not a structure or union
fprintf(out, "%I64d %c\n%I64d %c", modul(s - p->nr), semn(s - p->nr, s), modul(s), semn(s, s - p->nr));
^~
main.c:92:19: error: request for member 'nr' in something not a structure or union
s -= p->nr;
^~
main.c:94:14: error: request for member 'urm' in something not a structure or union
p = p->urm;
^~
main.c:70:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &n);
^~~~~~~~~~~~~~~~~~~~
main.c:73:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &x);
^~~~~~~~~~~~~~~~~~~~
main.c:74:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%c", &c);
^~~~~~~~~~~~~~~~~~~~
main.c:75:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%c", &c);
^~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !