Borderou de evaluare (job #1302901)

Utilizator vrabievictorvictor vrabie vrabievictor Data 27 decembrie 2014 14:21:10
Problema Sarac Sau Rege Status done
Runda Happy Birthday Infoarena 2014 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read(int&)’: user.cpp:21:8: error: ‘y’ was not declared in this scope if(y) ^ user.cpp: In function ‘int main()’: user.cpp:54:10: error: ‘n’ was not declared in this scope read(n); read(M); ^ user.cpp:64:14: error: ‘a’ was not declared in this scope read(a); read(b); ^ user.cpp:64:23: error: ‘b’ was not declared in this scope read(a); read(b); ^ user.cpp: In function ‘void Update(int, int, int)’: user.cpp:87:22: error: ‘angry’ was not declared in this scope MaxArb[nod] = Ma(angry) MaxArb[2*nod], MaxArb[2*nod+1] ); ^ user.cpp:87:27: error: ‘Ma’ was not declared in this scope MaxArb[nod] = Ma(angry) MaxArb[2*nod], MaxArb[2*nod+1] ); ^ user.cpp:87:29: error: expected ‘;’ before ‘MaxArb’ MaxArb[nod] = Ma(angry) MaxArb[2*nod], MaxArb[2*nod+1] ); ^ user.cpp: In function ‘void Query(int, int, int)’: user.cpp:94:20: error: ‘angry’ was not declared in this scope maxim = Ma(angry) maxim, MaxArb[nod] ); ^ user.cpp:94:25: error: ‘Ma’ was not declared in this scope maxim = Ma(angry) maxim, MaxArb[nod] ); ^ user.cpp:94:27: error: expected ‘;’ before ‘maxim’ maxim = Ma(angry) maxim, MaxArb[nod] ); ^ user.cpp: In function ‘void read(int&)’: user.cpp:33:48: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread( buffer, 1, buffSize, stdin ); ^ user.cpp:42:48: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread( buffer, 1, buffSize, stdin ); ^ user.cpp: In function ‘int main()’: user.cpp:53:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(inf,"r", stdin); freopen(outf,"w",stdout); ^ user.cpp:53:54: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(inf,"r", stdin); freopen(outf,"w",stdout); ^

Ceva nu functioneaza?