QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#631628#9435. Welcome to NPCAPCucup-team2454#Compile Error//C++201.1kb2024-10-12 09:17:222024-10-12 09:17:23

Details

answer.code: In constructor ‘Mtx::Mtx()’:
answer.code:9:11: error: ‘memset’ was not declared in this scope
    9 |     Mtx(){memset(f,0,sizeof(f));}
      |           ^~~~~~
answer.code:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
  +++ |+#include <cstring>
    1 | 
answer.code: In member function ‘void Mtx::clr()’:
answer.code:11:9: error: ‘memset’ was not declared in this scope
   11 |         memset(f,0,sizeof(f));
      |         ^~~~~~
answer.code:11:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
answer.code: In function ‘void solve()’:
answer.code:24:5: error: ‘scanf’ was not declared in this scope
   24 |     scanf("%lld",&n);
      |     ^~~~~
answer.code:31:5: error: ‘printf’ was not declared in this scope
   31 |     printf("%lld\n",T.f[0][0][6][6]);
      |     ^~~~~~
answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
  +++ |+#include <cstdio>
    1 | 
answer.code: In function ‘int main()’:
answer.code:42:11: error: ‘scanf’ was not declared in this scope
   42 |     int t;scanf("%lld",&t);
      |           ^~~~~