QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#541505#4990. Coffee Cup ComboZhaoZiLongCompile Error//C++98740b2024-08-31 19:46:152024-08-31 19:46:15

详细

answer.code: In function ‘int main()’:
answer.code:15:19: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   15 |     for (char c : s) {
      |                   ^
answer.code:15:19: error: forming reference to reference type ‘std::__cxx11::basic_string<char>&’