Borderou de evaluare (job #688244)

Utilizator avatar arinac Arina Coroliuc arinac IP ascuns
Problemă Popas (clasa a 8-a) Compilator cpp-32
Rundă lasm_18_01_2023_clasa12 Status evaluat
Dată 18 ian. 2023 17:18:39 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int sortRowWise(int, int)': main.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type] 17 | } | ^ main.cpp: In function 'int main()': main.cpp:20:16: warning: variable 'r' set but not used [-Wunused-but-set-variable] 20 | int n, i, k, j,r, t,u ; | ^ main.cpp:21:6: warning: unused variable 'ok' [-Wunused-variable] 21 | bool ok=true; | ^~ main.cpp: At global scope: main.cpp:47:5: error: 'p' does not name a type 47 | p = P[0][0]; | ^ main.cpp:48:5: error: expected unqualified-id before 'for' 48 | for (int i = 1; i < n; i++){ | ^~~ main.cpp:48:21: error: 'i' does not name a type 48 | for (int i = 1; i < n; i++){ | ^ main.cpp:48:28: error: 'i' does not name a type 48 | for (int i = 1; i < n; i++){ | ^ main.cpp:54:1: error: 'cout' does not name a type 54 | cout<<p<<nr; | ^~~~ main.cpp:56:1: error: expected unqualified-id before 'return' 56 | return 0; | ^~~~~~ main.cpp:57:1: error: expected declaration before '}' token 57 | } | ^ main.cpp: In function 'int main()': main.cpp:22:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | freopen("popas.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:23:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 23 | freopen("popas.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~