fork download
  1. @model Model.Contest
  2. @Html.Hidden("NotifierEntity", (object)ViewBag.NotifierEntity)
  3. <table id="Standings" class="table table-bordered table-hover">
  4. <h1>Standings</h1>
  5. @if (Model.Participants != null)
  6. {
  7. char a = 'A';
  8. <thead>
  9. <tr>
  10. <th>Rank</th>
  11. <th>Name</th>
  12. <th>Score</th>
  13.  
  14. @foreach (var item in Model.Problems.OrderBy(x => x.ProblemName))
  15. {
  16. <th>
  17. @a
  18. </th>
  19. a++;
  20. }
  21.  
  22. </tr>
  23. </thead>
  24.  
  25. <tbody>
  26. @{ int i = 0;}
  27. @foreach (var item in Model.Standings.OrderByDescending(p => p.score))
  28. {
  29. i++;
  30. <tr>
  31. <td>@i</td>
  32. <td>@item.Participant.Id</td>
  33. <td>
  34. @item.score
  35. </td>
  36. @foreach (var mal in Model.Problems.OrderBy(x => x.ProblemName))
  37. {
  38.  
  39. <td>
  40. <button type="button" class="btn btn-success">
  41. @if (@Model.Submissions.Where(c => c.Participant.Id == item.Participant.Id && c.Problem.Id == mal.Id && c.CompilerComment == "Accepted") != null)
  42. {
  43. @Model.Submissions.Where(c => c.Participant.Id == item.Participant.Id && c.Problem.Id == mal.Id && c.CompilerComment == "Accepted").Count()
  44. ;
  45. }
  46. else
  47. {
  48. <p>0</p>
  49. }
  50.  
  51. </button>
  52.  
  53. <br />
  54. <button type="button" class="btn btn-danger">
  55. @if (@Model.Submissions.Where(c => c.Participant.Id == item.Participant.Id && c.Problem.Id == mal.Id && c.CompilerComment != "Accepted") != null)
  56. {
  57. @Model.Submissions.Where(c => c.Participant.Id == item.Participant.Id && c.Problem.Id == mal.Id && c.CompilerComment != "Accepted").Count()
  58. }
  59. else
  60. {
  61. <p>0</p>
  62. }
  63.  
  64. </button>
  65.  
  66. </td>
  67. }
  68. @*<td>
  69. @Html.DisplayFor(modelItem => item.TimeLimit)
  70. </td>
  71. <td></td>*@
  72.  
  73. </tr>
  74. }
  75. </tbody>
  76. }
  77.  
  78. </table>
  79.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,1): error CS1525: Unexpected symbol `model'
prog.cs(26,18): error CS1646: Keyword, identifier, or string expected after verbatim specifier: @
prog.cs(68,26): error CS1646: Keyword, identifier, or string expected after verbatim specifier: @
prog.cs(72,0): error CS1646: Keyword, identifier, or string expected after verbatim specifier: @
Compilation failed: 4 error(s), 0 warnings
stdout
Standard output is empty