Problem 7up
User chenyuming
Submission Time 2026-11-03 14:44:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

7up.cpp: In function ‘int main()’:
7up.cpp:9:6: error: ‘i’ was not declared in this scope
9 | for(i = 0; i < K; i++){
| ^
7up.cpp:10:14: error: conversion from ‘<unresolved overloaded function type>’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
10 | string y = to_string X;
| ^~~~~~~~~
7up.cpp:11:22: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘contains’
11 | if(X % 7 != 0 && y.contains('7')){
| ^~~~~~~~