Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
91258 李昊宇 03大写字母转小写字母 C++ Compile Error 0 MS 0 KB 109 2024-09-21 14:49:12

Tests(0/0):


Code:

#include<iostream> using namespace stb; int main(){ char a; cin>>a; a=a+32 cout<<a; }


Run Info:

Main.cc:2:17: error: 'stb' is not a namespace-name
 using namespace stb;
                 ^
Main.cc:2:20: error: expected namespace-name before ';' token
 using namespace stb;
                    ^
Main.cc: In function 'int main()':
Main.cc:5:4: error: 'cin' was not declared in this scope
    cin>>a;
    ^
Main.cc:5:4: 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:4: error: expected ';' before 'cout'
    cout<