0_0_36091552_21207.cpp:1:7: error: expected nested-name-specifier before 'System'
using System;
^
0_0_36091552_21207.cpp:7:10: error: expected ':' before 'static'
public static int search(string s,int n){
^
0_0_36091552_21207.cpp:7:28: error: 'string' has not been declared
public static int search(string s,int n){
^
0_0_36091552_21207.cpp:22:10: error: expected ':' before 'static'
public static void Main(string[] args)
^
0_0_36091552_21207.cpp:22:27: error: 'string' has not been declared
public static void Main(string[] args)
^
0_0_36091552_21207.cpp:22:36: error: expected ',' or '...' before 'args'
public static void Main(string[] args)
^
0_0_36091552_21207.cpp:40:2: error: expected ';' after class definition
}
^
0_0_36091552_21207.cpp: In static member function 'static int a1::Program::search(int, int)':
0_0_36091552_21207.cpp:9:8: error: expected unqualified-id before '[' token
char[] ch=s.ToCharArray();
^
0_0_36091552_21207.cpp:11:9: error: request for member 'IndexOf' in 's', which is of non-class type 'int'
a=s.IndexOf("B");
^
0_0_36091552_21207.cpp:13:9: error: 'ch' was not declared in this scope
if(ch[i]=='R') t++;
^
0_0_36091552_21207.cpp:16:9: error: request for member 'IndexOf' in 's', which is of non-class type 'int'
a=s.IndexOf("L");
^
0_0_36091552_21207.cpp:18:9: error: 'ch' was not declared in this scope
if(ch[i]=='Y') t++;
^
0_0_36091552_21207.cpp: In static member function 'static void a1::Program::Main(int*)':
0_0_36091552_21207.cpp:25:4: error: 'string' was not declared in this scope
string str = string.Empty;
^
0_0_36091552_21207.cpp:26:12: error: 'str' was not declared in this scope
while ((str = Console.ReadLine()) != null) {
^
0_0_36091552_21207.cpp:26:18: error: 'Console' was not declared in this scope
while ((str = Console.ReadLine()) != null) {
^
0_0_36091552_21207.cpp:26:41: error: 'null' was not declared in this scope
while ((str = Console.ReadLine()) != null) {
^
0_0_36091552_21207.cpp:27:9: error: 'Convert' was not declared in this scope
n = Convert.ToInt32(str);
^
|