Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66451 杨宸熙 大写转小写 C++ Compile Error 0 MS 0 KB 157 2024-03-09 10:10:45

Tests(0/0):


Code:

#include<iostream> using manespace std; int main() { char 'A'; cin>>'A'; 'A'(int) 'A'+32 cout<<'A'(char)<<endl; return 0; }


Run Info:

Main.cc:2:7: error: expected nested-name-specifier before 'manespace'
 using manespace std;
       ^
Main.cc: In function 'int main()':
Main.cc:5:10: error: expected unqualified-id before 'A'
     char 'A';
          ^
Main.cc:6:5: error: 'cin' was not declared in this scope
     cin>>'A';
     ^
Main.cc:6:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
Main.cc:7:9: error: expected primary-expression before 'int'
     'A'(int)
         ^
Main.cc:7:12: error: expression cannot be used as a function
     'A'(int)
            ^