QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#253972#7110. Kuririn MIRACLEucup-team2454Compile Error//C++201.4kb2023-11-17 21:01:242023-11-17 21:01:25

Details

answer.code: In function ‘long long int read()’:
answer.code:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%lld", &ans);
      |     ~~~~~^~~~~~~~~~~~~~
answer.code: In function ‘int fuck()’:
answer.code:36:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   36 |     freopen("data", "r", stdin);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~
answer.code:39:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   39 |         scanf("%lf %lf %lf", &v, &R, &d);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status