Borderou de evaluare (job #759050)

Utilizator avatar Razvan23 Razvan Mosanu Razvan23 IP ascuns
Problemă Flota Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 28 ian. 2024 20:09:47 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:11: error: duplicate 'unsigned' 2 | #define t unsigned short | ^~~~~~~~ main.cpp:14:3: note: in expansion of macro 't' 14 | t t[50005], n; | ^ main.cpp:2:20: error: duplicate 'short' 2 | #define t unsigned short | ^~~~~ main.cpp:14:3: note: in expansion of macro 't' 14 | t t[50005], n; | ^ main.cpp:14:5: error: expected identifier before numeric constant 14 | t t[50005], n; | ^~~~~ main.cpp:14:5: error: expected ']' before numeric constant 14 | t t[50005], n; | ^~~~~ | ] main.cpp:14:4: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 14 | t t[50005], n; | ^ main.cpp:14:4: error: structured binding declaration cannot have type 'short unsigned int' main.cpp:14:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' main.cpp:14:4: error: empty structured binding declaration main.cpp:14:11: error: expected initializer before ',' token 14 | t t[50005], n; | ^ main.cpp: In function 'short unsigned int FindRoot(short unsigned int)': main.cpp:26:12: error: expected unqualified-id before '[' token 26 | while(t[rad] != 0) | ^ main.cpp:2:11: error: expected primary-expression before 'unsigned' 2 | #define t unsigned short | ^~~~~~~~ main.cpp:27:15: note: in expansion of macro 't' 27 | rad = t[rad]; | ^ main.cpp:2:11: error: expected primary-expression before 'unsigned' 2 | #define t unsigned short | ^~~~~~~~ main.cpp:30:13: note: in expansion of macro 't' 30 | y = t[x]; | ^ main.cpp:31:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 31 | t[x] = rad; | ^ main.cpp:31:10: error: structured binding declaration cannot have type 'short unsigned int' 31 | t[x] = rad; | ^~~