Borderou de evaluare (job #728298)

Utilizator avatar victor_vatasescu Vatasescu Victor victor_vatasescu IP ascuns
Problemă Fotbal3 (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 9 aug. 2023 14:36:16 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:14: error: expected unqualified-id before ')' token 6 | struct punct() | ^ main.cpp:10:2: error: 'v' does not name a type 10 | }v[100001]; | ^ main.cpp:12:16: error: 'a' has incomplete type 12 | bool gdb(punct a, punct b) | ~~~~~~^ main.cpp:6:8: note: forward declaration of 'struct punct' 6 | struct punct() | ^~~~~ main.cpp:12:25: error: 'b' has incomplete type 12 | bool gdb(punct a, punct b) | ~~~~~~^ main.cpp:6:8: note: forward declaration of 'struct punct' 6 | struct punct() | ^~~~~ main.cpp: In function 'bool gdb(punct, punct)': main.cpp:15:1: warning: no return statement in function returning non-void [-Wreturn-type] 15 | } | ^ main.cpp: In function 'int main()': main.cpp:58:32: error: 'F' was not declared in this scope 58 | cin >> F >> M >> A; | ^ main.cpp:58:37: error: 'M' was not declared in this scope 58 | cin >> F >> M >> A; | ^ main.cpp:58:42: error: 'A' was not declared in this scope 58 | cin >> F >> M >> A; | ^ main.cpp:63:33: error: 'v' was not declared in this scope 63 | v[i].vav = x; | ^ main.cpp:66:30: error: 'v' was not declared in this scope 66 | sort(v + 1, v + n, gdb); | ^