评测信息

运行ID: 51878
src.cpp: In function 'int main()':
src.cpp:7:13: error: invalid conversion from 'char' to 'char*' [-fpermissive]
gets(str[i]);
^
In file included from src.cpp:1:0:
E:/OpenJudger2/Compilers/mingw/include/stdio.h:357:39: note: initializing argument 1 of 'char* gets(char*)'
_CRTIMP char* __cdecl __MINGW_NOTHROW gets (char*);
^
src.cpp:9:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
if(strcmp(str[0],str[1])>0){
^
In file included from src.cpp:2:0:
E:/OpenJudger2/Compilers/mingw/include/string.h:43:37: note: initializing argument 1 of 'int strcmp(const char*, const char*)'
_CRTIMP int __cdecl __MINGW_NOTHROW strcmp (const char*, const char*) __MINGW_ATTRIB_PURE;
^
src.cpp:9:24: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
if(strcmp(str[0],str[1])>0){
^
In file included from src.cpp:2:0:
E:/OpenJudger2/Compilers/mingw/include/string.h:43:37: note: initializing argument 2 of 'int strcmp(const char*, const char*)'
_CRTIMP int __cdecl __MINGW_NOTHROW strcmp (const char*, const char*) __MINGW_ATTRIB_PURE;
^
src.cpp:10:18: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
if(strcmp(str[0],str[2])>0)
^
In file included from src.cpp:2:0:
E:/OpenJudger2/Compilers/mingw/include/string.h:43:37: note: initializing argument 1 of 'int strcmp(const char*, const char*)'
_CRTIMP int __cdecl __MINGW_NOTHROW strcmp (const char*, const char*) __MINGW_ATTRIB_PURE;
^
src.cpp:10:25: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
if(strcmp(str[0],str[2])>0)
^
In file included from src.cpp:2:0:
E:/OpenJudger2/Compilers/mingw/include/string.h:43:37: note: initializing argument 2 of 'int strcmp(const char*, const char*)'
_CRTIMP int __cdecl __MINGW_NOTHROW strcmp (const char*, const char*) __MINGW_ATTRIB_PURE;
^
src.cpp:11:4: error: 'm1' was not declared in this scope
m1=str[0];
^
src.cpp:12:7: error: 'a' was not declared in this scope
if(a[1]>a[2]){
^
src.cpp:13:5: error: 'm2' was not declared in this scope
m2=a[1];
^
src.cpp:14:5: error: 'm3' was not declared in this scope
m3=a[2];
^
src.cpp:18:10: error: expected '}' at end of input
return 0;
^