Borderou de evaluare (job #788903)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Paznici (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 oct. 2024 21:31:31 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int paznici()':
main.cpp:40:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
40 | int main() {
| ^~
main.cpp:40:9: note: remove parentheses to default-initialize a variable
40 | int main() {
| ^~
| --
main.cpp:40:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:40:12: error: a function-definition is not allowed here before '{' token
40 | int main() {
| ^
main.cpp:46:2: error: expected '}' at end of input
46 | }
| ^
main.cpp:20:15: note: to match this '{'
20 | int paznici() {
| ^
main.cpp:46:2: warning: control reaches end of non-void function [-Wreturn-type]
46 | }
| ^