复制
收藏
提问
全网

Main.cc: In function ‘int main()’: Main.cc:6:15: error: conversion from ‘int’ to non-scalar type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ requested string s=i; ^ Main.cc:12:9: error: ‘cut’ was not declared in this scope if(cut==i){ ^

cfdcf4885
2个月前
全网
文档
学术
百科
知识库
时间不限
自动

理解问题Main.cc: In function ‘int main()’: Main.cc:6:15: error: conversion from ‘int’ to non-scalar type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ requested string s=i; ^ Main.cc:12:9: error: ‘cut’ was not declared in this scope if(cut==i){ ^

已完成理解Main.cc: In function ‘int main()’: Main.cc:6:15: error: conversion from ‘int’ to non-scalar type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ requested string s=i; ^ Main.cc:12:9: error: ‘cut’ was not declared in this scope if(cut==i){ ^

展开阅读网页

更专业一些
转笔记
专业
Main.cc: In function ‘int main()’: Main.cc:6:15: error: conversion from ‘int’ to non-scalar type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ requested string s=i; ^ Main.cc:12:9: error: ‘cut’ was not declared in this scope if(cut==i){ ^
不在提醒

更专业内容正在努力生成中
知识树
Main.cc: In function ‘int main()’: Main.cc:6:15: error: conversion from ‘int’ to non-scalar type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ requested string s=i; ^ Main.cc:12:9: error: ‘cut’ was not declared in this scope if(cut==i){ ^
C++中如何避免类型转换错误?
C++中有哪些常见的未声明标识符错误?
C++中字符串和整数如何相互转换?

以上内容由AI搜集生成,仅供参考

在线客服