Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155842 杨宸铭 03大写字母转小写字母 C++ Compile Error 0 MS 0 KB 134 2026-06-14 10:20:59

Tests(0/0):


Code:

#include<bits/stdc++.h> usingnamespacestd; intmain() { chara,n; cin>>n; a=n+32; cout<<a<<endl; return0; }


Run Info:

Main.cc:2:1: error: 'usingnamespacestd' does not name a type
 usingnamespacestd;
 ^
Main.cc:3:9: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
 intmain()
         ^
Main.cc: In function 'int intmain()':
Main.cc:5:5: error: 'chara' was not declared in this scope
     chara,n;
     ^
Main.cc:5:11: error: 'n' was not declared in this scope
     chara,n;
           ^
Main.cc:6:5: error: 'cin' was not declared in this scope
     cin>>n;
     ^
Main.cc:6:5: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
                 from Main.cc:1:
/usr/include/c++/5/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
Main.cc:7:5: error: 'a' was not declared in this scope
     a=n+32;
     ^
Main.cc:8:5: error: 'cout' was not declared in this scope
     cout<& __os)
     ^
Main.cc:9:5: error: 'return0' was not declared in this scope
     return0;
     ^
Main.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^