QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#682657#9528. New Energy Vehicleucup-team4777#Compile Error//C++201.9kb2024-10-27 16:43:062024-10-27 16:43:07

Details

answer.code:4:13: error: ‘long long long’ is too long for GCC
    4 | #define int long long
      |             ^~~~
answer.code:10:11: note: in expansion of macro ‘int’
   10 | long long int judge(long long n,long long m){
      |           ^~~
answer.code:4:18: error: ‘long long long’ is too long for GCC
    4 | #define int long long
      |                  ^~~~
answer.code:10:11: note: in expansion of macro ‘int’
   10 | long long int judge(long long n,long long m){
      |           ^~~
answer.code: In function ‘long long int judge(long long int, long long int)’:
answer.code:4:13: error: ‘long long long’ is too long for GCC
    4 | #define int long long
      |             ^~~~
answer.code:11:15: note: in expansion of macro ‘int’
   11 |     long long int sum=0,now;
      |               ^~~
answer.code:4:18: error: ‘long long long’ is too long for GCC
    4 | #define int long long
      |                  ^~~~
answer.code:11:15: note: in expansion of macro ‘int’
   11 |     long long int sum=0,now;
      |               ^~~
answer.code:13:18: error: ‘a’ was not declared in this scope
   13 |             sum+=a[i];
      |                  ^
answer.code:4:13: error: ‘long long long’ is too long for GCC
    4 | #define int long long
      |             ^~~~
answer.code:17:19: note: in expansion of macro ‘int’
   17 |         long long int x,y;
      |                   ^~~
answer.code:4:18: error: ‘long long long’ is too long for GCC
    4 | #define int long long
      |                  ^~~~
answer.code:17:19: note: in expansion of macro ‘int’
   17 |         long long int x,y;
      |                   ^~~
answer.code:27:47: error: ‘a’ was not declared in this scope
   27 |             now=now+min(x-last[y],min(sum-now,a[y]));
      |                                               ^
answer.code:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
answer.code: In function ‘void solve()’:
answer.code:45:13: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}[int]’ for array subscript
   45 |         b[i][0]=x,b[i][1]=y;
      |             ^
answer.code:45:23: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}[int]’ for array subscript
   45 |         b[i][0]=x,b[i][1]=y;
      |                       ^