Problem | GSS |
---|---|
User | god |
Submission Time | 2025-07-10 10:20:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
GSS.cpp: In function ‘int main()’:
GSS.cpp:4:12: error: expected ‘;’ before ‘x’
4 | int x; cin x;
| ^~
| ;
GSS.cpp:9:23: error: ‘a’ was not declared in this scope
9 | sort(array, array+x, a>b);
| ^
GSS.cpp:9:25: error: ‘b’ was not declared in this scope
9 | sort(array, array+x, a>b);
| ^
GSS.cpp:9:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
9 | sort(array, array+x, a>b);
| ^~~~
| qsort
GSS.cpp:13:24: error: request for member ‘at’ in ‘array’, which is of non-class type ‘int [x]’
13 | to_be_paid += array.at(i*4) + array.at(i*4+1) + array.at(i*4+2);
| ^~
GSS.cpp:13:40: error: request for member ‘at’ in ‘array’, which is of non-class type ‘int [x]’
13 | to_be_paid += array.at(i*4) + array.at(i*4+1) + array.at(i*4+2);
|