0_0_21601102_13371.cpp:1:31: error: stray '#' in program
<span style="font-size:18px;">#include<iostream>
^
0_0_21601102_13371.cpp:12:39: error: stray '#' in program
for(int i=0;i<len;i++) b[i]=a[i]-'0';
^
0_0_21601102_13371.cpp:12:45: error: stray '#' in program
for(int i=0;i<len;i++) b[i]=a[i]-'0';
^
0_0_21601102_13371.cpp:1:1: error: expected unqualified-id before '<' token
<span style="font-size:18px;">#include<iostream>
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:43:0,
from 0_0_21601102_13371.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable
__is_null_pointer(std::nullptr_t)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:155:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
__is_null_pointer(_Type)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:21: error: 'nullptr_t' is not a member of 'std'
__is_null_pointer(std::nullptr_t)
^
0_0_21601102_13371.cpp: In function 'int gcd(char*, int)':
0_0_21601102_13371.cpp:12:40: error: lvalue required as unary '&' operand
for(int i=0;i<len;i++) b[i]=a[i]-'0';
^
0_0_21601102_13371.cpp: In function 'int main()':
0_0_21601102_13371.cpp:22:11: error: 'cin' was not declared in this scope
while(cin>>a>>m)
^
0_0_21601102_13371.cpp:24:9: error: 'cout' was not declared in this scope
cout<<gcd(a,m)<<endl;
^
0_0_21601102_13371.cpp:24:25: error: 'endl' was not declared in this scope
cout<<gcd(a,m)<<endl;
^
0_0_21601102_13371.cpp: At global scope:
0_0_21601102_13371.cpp:28:1: error: expected unqualified-id before '<' token
</span>
^
|