QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#654533 | #9313. Make Max | ZhaoZiLong | Compile Error | / | / | C++98 | 1.1kb | 2024-10-18 21:44:44 | 2024-10-18 21:44:45 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solution()’: answer.code:13:20: error: ISO C++ forbids declaration of ‘it’ with no type [-fpermissive] 13 | for (auto &it : a)cin >> it; | ^~ answer.code:13:25: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 13 | for (auto &it : a)cin >> it; | ^ answer.code:13:25: error: forming reference to reference type ‘std::vector<int>&’ answer.code:16:28: error: ‘>>’ should be ‘> >’ within a nested template argument list 16 | stack<pair<int, int>>st, stt; | ^~ | > > answer.code:24:25: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 24 | st.push({a[i], i}); | ^ answer.code:24:24: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 24 | st.push({a[i], i}); | ~~~~~~~^~~~~~~~~~~ answer.code:34:26: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 34 | stt.push({a[i], i}); | ^ answer.code:34:25: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 34 | stt.push({a[i], i}); | ~~~~~~~~^~~~~~~~~~~