online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
using System; using System.IO; class HelloWorld { static void Main() { string[] data = File.ReadAllLines("identyfikator.txt"); int temp = 0; foreach (string line in data) { string digits = line.Substring(3); int total = 0; for (int i=0; i<digits.Length; i++) total += (int)digits[i] - '0'; if (total > temp) { Console.WriteLine("{0} {1}", total, line); temp = total; } } } }
ACD364321 FYH766322 ERT492157 UCF086201 SER030271 TRE320041 HGJ264015 YIK288424 LOP631028 RFT075953

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue