Problem | gcd |
---|---|
User | Rndm123 |
Submission Time | 2023-04-05 16:16:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp:4:21: error: expected ‘)’ before ‘;’ token
4 | void gcd(int a,int b;){
| ~ ^
| )
gcd.cpp:4:22: error: expected unqualified-id before ‘)’ token
4 | void gcd(int a,int b;){
| ^
gcd.cpp: In function ‘int main()’:
gcd.cpp:28:6: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘void’)
28 | cout<<gcd(a,b);
| ~~~~^~~~~~~~~~
| | |
| | void
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from gcd.cpp:1:
/usr/include/c++/9/o