답안 #200455

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
200455 2020-02-06T21:08:14 Z mohamedsobhi777 Martian DNA (IOI16_dna) C++14
컴파일 오류
0 ms 0 KB
#include "dna.h"

#include <bits/stdc++.h>



std::string analyse(int n, int t) {
    string ret = "";
  return "0" ; 
}

Compilation message

dna.cpp: In function 'std::__cxx11::string analyse(int, int)':
dna.cpp:8:5: error: 'string' was not declared in this scope
     string ret = "";
     ^~~~~~
dna.cpp:8:5: note: suggested alternatives:
In file included from /usr/include/c++/7/string:39:0,
                 from dna.h:3,
                 from dna.cpp:1:
/usr/include/c++/7/bits/stringfwd.h:74:33: note:   'std::__cxx11::string'
   typedef basic_string<char>    string;
                                 ^~~~~~
/usr/include/c++/7/bits/stringfwd.h:74:33: note:   'std::__cxx11::string'
grader.cpp: In function 'bool make_test(std::__cxx11::string)':
grader.cpp:14:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < p.size(); i++) {
                  ~~^~~~~~~~~~
grader.cpp:23:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 1; i <= ss.size(); i++) {
                  ~~^~~~~~~~~~~~
grader.cpp:28:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (pr[i] == p.size()) {