Borderou de evaluare (job #3169374)
Utilizator | Data | 14 noiembrie 2023 21:39:34 | |
---|---|---|---|
Problema | Dreptunghi | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:2: error: expected initializer before 'if'
7 | if (m == 0)
| ^~
main.cpp:9:2: error: expected unqualified-id before 'return'
9 | return gcd(m, n % m);
| ^~~~~~
main.cpp:10:1: error: expected declaration before '}' token
10 | }
| ^
main.cpp: In function 'int main()':
main.cpp:18:17: error: 'gcd' was not declared in this scope
18 | cout << n + m - gcd(n, m);
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !