QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#116107#6661. 야유회zhouhuanyi#Compile Error//C++11342b2023-06-28 09:44:592024-05-31 14:20:40

Judging History

你现在查看的是最新测评结果

  • [2024-05-31 14:20:40]
  • 评测
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-06-28 09:44:59]
  • 提交

answer

#include"workshop.h"
#include<iostream>
#include<cstdio>
using namespace std;
void init()
{
    return;
}
int morning(int my_num, int right_num)
{
    return my_num;
}
int afternoon(int left_num, int my_num, int right_num)
{
    return my_sum;
}
int evening(int left_num, int my_num, int right_num)
{
    return my_sum;
}

Details

answer.code: In function ‘int afternoon(int, int, int)’:
answer.code:15:12: error: ‘my_sum’ was not declared in this scope; did you mean ‘my_num’?
   15 |     return my_sum;
      |            ^~~~~~
      |            my_num
answer.code: In function ‘int evening(int, int, int)’:
answer.code:19:12: error: ‘my_sum’ was not declared in this scope; did you mean ‘my_num’?
   19 |     return my_sum;
      |            ^~~~~~
      |            my_num