Borderou de evaluare (job #3247920)

Utilizator PatrikKev75Szucs Patrik - Kevin PatrikKev75 Data 9 octombrie 2024 20:48:51
Problema Muzeu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void lee(short int (*)[250], short int&, Type*, short int&)': main.cpp:57:34: warning: narrowing conversion of '(((int)current.Type::x) + ((int)iranyX[((int)i)]))' from 'int' to 'short int' [-Wnarrowing] 57 | Type uj = {current.x + iranyX[i], current.y + iranyY[i]}; // uj poz | ~~~~~~~~~~^~~~~~~~~~~ main.cpp:57:57: warning: narrowing conversion of '(((int)current.Type::y) + ((int)iranyY[((int)i)]))' from 'int' to 'short int' [-Wnarrowing] 57 | Type uj = {current.x + iranyX[i], current.y + iranyY[i]}; // uj poz | ~~~~~~~~~~^~~~~~~~~~~ At global scope: cc1plus: error: '::main' must return 'int' Non zero exit status: 1

Ceva nu functioneaza?