Borderou de evaluare (job #683443)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dragoni | Compilator | cpp-32 |
Rundă | lasm_21_12_2022_cl12 | Status | evaluat |
Dată | 21 dec. 2022 16:26:15 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:18:31: error: a function-definition is not allowed here before '{' token
18 | string who_wins(int N, int K) {
| ^
main.cpp:26:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
26 | int main() {
| ^~
main.cpp:26:9: note: remove parentheses to default-initialize a variable
26 | int main() {
| ^~
| --
main.cpp:26:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:26:12: error: a function-definition is not allowed here before '{' token
26 | int main() {
| ^