Problem greeting
User KJF
Submission Time 2026-02-18 22:55:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greeting.cpp: In function ‘int main()’:
greeting.cpp:8:20: error: conversion from ‘int’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
8 | string greeting = ' ni hao, xin nian kuai le!';
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~