QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#216380 | #5106. Islands from the Sky | ZhaoZiLong | Compile Error | / | / | C++98 | 7.6kb | 2023-10-15 17:49:31 | 2023-10-15 17:49:31 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:11:21: error: ‘>>’ should be ‘> >’ within a nested template argument list 11 | vector<vector<double>> tangentPoints(double x0, double y0,double z0,double m,double theta){ | ^~ | > > answer.code: In function ‘std::vector<std::vector<double> > tangentPoints(double, double, double, double, double)’: answer.code:12:25: error: ‘>>’ should be ‘> >’ within a nested template argument list 12 | vector<vector<double>> res; | ^~ | > > answer.code:23:31: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 23 | res = {{x1,y1},{x2,y2}}; | ^ answer.code:23:31: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ answer.code:23:31: error: no match for ‘operator=’ (operand types are ‘std::vector<std::vector<double> >’ and ‘<brace-enclosed initializer list>’) In file included from /usr/include/c++/11/vector:72, from /usr/include/c++/11/queue:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86, from answer.code:1: /usr/include/c++/11/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::vector<double>; _Alloc = std::allocator<std::vector<double> >]’ 198 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/vector.tcc:199:42: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::vector<std::vector<double> >&’ 199 | operator=(const vector<_Tp, _Alloc>& __x) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ answer.code:33:31: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 33 | res = {{x0,y1},{x0,y2}}; | ^ answer.code:33:31: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ answer.code:33:31: error: no match for ‘operator=’ (operand types are ‘std::vector<std::vector<double> >’ and ‘<brace-enclosed initializer list>’) In file included from /usr/include/c++/11/vector:72, from /usr/include/c++/11/queue:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86, from answer.code:1: /usr/include/c++/11/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::vector<double>; _Alloc = std::allocator<std::vector<double> >]’ 198 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/vector.tcc:199:42: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::vector<std::vector<double> >&’ 199 | operator=(const vector<_Tp, _Alloc>& __x) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ answer.code: At global scope: answer.code:37:21: error: ‘>>’ should be ‘> >’ within a nested template argument list 37 | vector<vector<double>> cameraView(double theta,int in){ | ^~ | > > answer.code: In function ‘std::vector<std::vector<double> > cameraView(double, int)’: answer.code:47:25: error: ‘>>’ should be ‘> >’ within a nested template argument list 47 | vector<vector<double>> fromPoints = tangentPoints(x1,y1,z1,m,theta); | ^~ | > > answer.code:52:25: error: ‘>>’ should be ‘> >’ within a nested template argument list 52 | vector<vector<double>> toPoints = tangentPoints(x2,y2,z2,m,theta); | ^~ | > > answer.code:57:12: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 57 | return {xPoints,yPoints}; | ^ answer.code: In function ‘std::vector<double> intersect(double, double, double, double, double, double)’: answer.code:158:27: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 158 | res = {X,Y}; | ^ answer.code:158:27: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ answer.code:165:23: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 165 | res = {X,Y}; | ^ answer.code:165:23: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ answer.code: In function ‘double minAngle()’: answer.code:226:29: error: ‘>>’ should be ‘> >’ within a nested template argument list 226 | vector<vector<double>> view = cameraView(minAngle+0.000005,i); | ^~ | > > In file included from...