QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#199436#2910. Rise and FallMaMengQiCompile Error//C++201.0kb2023-10-04 12:13:592023-10-04 12:13:59

Details

answer.code:31:18: error: stray ‘#’ in program
   31 |                 }#include <cstdio>
      |                  ^
answer.code: In function ‘void solve()’:
answer.code:31:28: error: ‘cstdio’ was not declared in this scope; did you mean ‘stdin’?
   31 |                 }#include <cstdio>
      |                            ^~~~~~
      |                            stdin
answer.code:31:19: error: ‘include’ was not declared in this scope
   31 |                 }#include <cstdio>
      |                   ^~~~~~~
answer.code:34:1: error: expected primary-expression before ‘using’
   34 | using namespace std;
      | ^~~~~
answer.code:35:13: error: a function-definition is not allowed here before ‘{’ token
   35 | void solve(){
      |             ^
answer.code:68:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   68 | int main() {
      |         ^~
answer.code:68:9: note: remove parentheses to default-initialize a variable
   68 | int main() {
      |         ^~
      |         --
answer.code:68:9: note: or replace parentheses with braces to value-initialize a variable
answer.code:68:12: error: a function-definition is not allowed here before ‘{’ token
   68 | int main() {
      |            ^
answer.code:74:17: error: ‘else’ without a previous ‘if’
   74 |                 else{
      |                 ^~~~