Borderou de evaluare (job #1783532)

Utilizator CammieCamelia Lazar Cammie Data 19 octombrie 2016 08:50:50
Problema Reteta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Read()’: user.cpp:9:25: error: ‘n’ was not declared in this scope fscanf(f, "%d %d", &n, &m); ^ user.cpp:9:29: error: ‘m’ was not declared in this scope fscanf(f, "%d %d", &n, &m); ^ user.cpp:12:25: error: ‘Stare’ was not declared in this scope fscanf(f,"%d", &Stare[i].a); ^ user.cpp:14:26: error: ‘Reteta’ was not declared in this scope fscanf(f, "%d", &Reteta[i][0]); ^ user.cpp:20:29: error: expected ‘;’ before ‘)’ token for (int i = i <= n; i++) ^ user.cpp:21:26: error: ‘Pret’ was not declared in this scope fscanf(f, "%d", &Pret[i]); ^ user.cpp: At global scope: user.cpp:24:10: error: ‘punct’ was not declared in this scope bool cum(punct A, punct B) ^ user.cpp:24:19: error: ‘punct’ was not declared in this scope bool cum(punct A, punct B) ^ user.cpp:24:26: error: expression list treated as compound expression in initializer [-fpermissive] bool cum(punct A, punct B) ^ user.cpp:25:1: error: expected ‘,’ or ‘;’ before ‘{’ token { ^ user.cpp: In function ‘void Sortare()’: user.cpp:33:10: error: ‘Stare’ was not declared in this scope sort(Stare+1, Stare+n+1,cum); ^ user.cpp:33:25: error: ‘n’ was not declared in this scope sort(Stare+1, Stare+n+1,cum); ^ user.cpp:33:32: error: ‘sort’ was not declared in this scope sort(Stare+1, Stare+n+1,cum); ^ user.cpp: In function ‘int cond(int)’: user.cpp:38:10: error: ‘Stare’ was not declared in this scope nr = Stare[nr].b; ^ user.cpp:42:13: error: ‘folosit’ was not declared in this scope if (folosit[Stare[nr][i]) ^ user.cpp:42:33: error: expected ‘]’ before ‘)’ token

Ceva nu functioneaza?