Borderou de evaluare (job #663132)

Utilizator avatar RobertAc Acatrinei Robert-Marian RobertAc IP ascuns
Problemă Zapada (clasele 11 și 12) Compilator cpp-32 | vezi sursa
Rundă Arhiva de probleme Status evaluat
Dată 21 sept. 2022 11:02:19 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int16_t, int16_t, int16_t)': main.cpp:96:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'int16_t' {aka 'short int'} 96 | maxim(r,nod,i.first,i.second); | ^~~ main.cpp:32:28: note: initializing argument 2 of 'void maxim(muchie&, int&, int&, int&)' 32 | void maxim(muchie &A, int &a, int &b, int &c) | ~~~~~^ main.cpp: In function 'int main()': main.cpp:157:14: error: 'ttmp' was not declared in this scope; did you mean 'tmp'? 157 | if(!(ttmp==tmp)) | ^~~~ | tmp main.cpp:117:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | fscanf(in,"%i %i %i",&n,&m,&k); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:128:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 128 | fscanf(in,"%i %i %i",&x,&y,&c); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:150:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 150 | fscanf(in,"%i %i %i",&a,&b,&c); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~