prog.cpp:3:7: error: expected nested-name-specifier before ‘System’
using System;
^~~~~~
prog.cpp:5:7: error: expected nested-name-specifier before ‘System’
using System.Collections.Generic;
^~~~~~
prog.cpp:6:7: error: expected nested-name-specifier before ‘System’
using System.Text;
^~~~~~
prog.cpp:12:26: error: ‘string’ has not been declared
static void Main(string[] args)
^~~~~~
prog.cpp:12:35: error: expected ‘,’ or ‘...’ before ‘args’
static void Main(string[] args)
^~~~
prog.cpp:61:5: error: expected ‘;’ after class definition
}
^
prog.cpp: In static member function ‘static void PiramideAsteriscos::Program::Main(int*)’:
prog.cpp:15:13: error: ‘Console’ was not declared in this scope
Console.WriteLine("8");
^~~~~~~
prog.cpp:20:29: error: expected primary-expression before ‘int’
int nivel = int.Parse(Console.ReadLine());
^~~
prog.cpp:28:25: error: ‘StringBuilder’ was not declared in this scope
StringBuilder final = new StringBuilder();
^~~~~~~~~~~~~
prog.cpp:33:29: error: ‘final’ was not declared in this scope
final.Append(" ");
^~~~~
prog.cpp:36:29: error: ‘final’ was not declared in this scope
final.Append("*");
^~~~~
prog.cpp:38:43: error: ‘final’ was not declared in this scope
Console.WriteLine(final.ToString());
^~~~~
prog.cpp:44:21: error: ‘System’ was not declared in this scope
System.Console.Clear();
^~~~~~
prog.cpp:49:20: error: ‘Exception’ does not name a type
catch (Exception )
^~~~~~~~~
prog.cpp:51:17: error: ‘System’ was not declared in this scope
System.Console.Clear();
^~~~~~
prog.cpp:57:34: error: invalid operands of types ‘const char [1]’ and ‘const char [2]’ to binary ‘operator+’
Console.WriteLine("" + "\n" + "Programa creado por LAURA");
~~~^~~~~~
prog.cpp:58:34: error: invalid operands of types ‘const char [1]’ and ‘const char [2]’ to binary ‘operator+’
Console.WriteLine("" + "\n" + "Aprieta una tecla para salir");
~~~^~~~~~